-
Notifications
You must be signed in to change notification settings - Fork 99
refactor: Remove getDataContext duplication #3895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
… link between GEOS_THROW_CTX_IF and LVARRAY_THROW_IF_TEST( EXP, MSG, TYPE )
… in try/catch statements Problem: Retrieves everything that was thrown, so not just the message.
…/catch in main)": remove useless try/catch
…y spaces. The previous condition checked whether an argument was present and whether the option was immediately followed by a value like -test"value", which excluded valid cases like -test "value" et -test "value".
src/coreComponents/physicsSolvers/NonlinearSolverParameters.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/surfaceGeneration/SurfaceGenerator.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/fieldSpecification/EquilibriumInitialCondition.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/fieldSpecification/PerfectlyMatchedLayer.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/fieldSpecification/TractionBoundaryCondition.cpp
Outdated
Show resolved
Hide resolved
|
@arng40 requested a lot of unmeaningful catalog-name / prefixes deletion as:
|
src/coreComponents/fieldSpecification/EquilibriumInitialCondition.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/fieldSpecification/PerfectlyMatchedLayer.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/wells/CompositionalMultiphaseWell.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/wells/CompositionalMultiphaseWell.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/wells/WellControls.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/multiphysics/PoromechanicsSolver.hpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/CompositionalMultiphaseHybridFVM.cpp
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/wells/CompositionalMultiphaseWell.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/wells/WellControls.cpp
Outdated
Show resolved
Hide resolved
MelReyCG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
dkachuma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Are you able to add in the description an example of the change in the output message - just curious.
Remove all getDataContext() / getWrapperDataContext() / getName() written directly in the error message strings (getDataContext() << “: blabla”).
Add missing DataContexts when they are not present in the error DataContext parameters (GEOS_ERROR*, GEOS_ASSERT*, GEOS_WARNING*, GEOS_THROW*)