Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
c846586
creation of an object header that logs errors and warnings in a yaml …
amandinehry Apr 25, 2025
f1713fa
Set up ErrorHandling
amandinehry Apr 30, 2025
4e5250f
traits errors commented (to treat)
amandinehry Apr 30, 2025
94b775c
Set up test
amandinehry Apr 30, 2025
1cb8aa3
Modification to properly format the yaml so that it can be parsed if …
amandinehry Apr 30, 2025
9d5e16a
Test to add variadic arguments
amandinehry May 2, 2025
2f7660c
draft: retrieve data contexts info
amandinehry May 5, 2025
6036551
Added additional information in the yaml - not functional missing the…
amandinehry May 5, 2025
46b4904
First attempt at outputting exceptions
amandinehry May 7, 2025
e1aed93
Complete: code for outputting errors into yaml
amandinehry May 9, 2025
bc953be
Manage the text contained in the potential exception
amandinehry May 12, 2025
1a434bc
First attempt: Handling the text contained in the potential exception…
amandinehry May 14, 2025
acf4d99
Complete: yaml output for PVT tables error
amandinehry May 16, 2025
ee58884
YAML error message well formatted
amandinehry May 19, 2025
32a0237
Fix duplication error
amandinehry May 19, 2025
589270f
Add variadic parameters to GEOS_THROW_CTX_IF
amandinehry May 21, 2025
9b65581
Reorganization after operational tests
amandinehry May 21, 2025
b13f0a6
Apply the output error functionality in yaml to all geos errors
amandinehry May 21, 2025
6de2c6a
Latest update for exception handling (try/catch in main)
amandinehry May 27, 2025
5830aee
Add priority to the error message into the yaml file
amandinehry May 27, 2025
2b27c41
Update of the commit named "latest update for exception handling (try…
amandinehry May 27, 2025
86f793e
set priority
amandinehry May 27, 2025
8a8117e
errors cli modification: add --errors-output
amandinehry May 27, 2025
2c0f5aa
errors cli modification: add --errors-output
amandinehry May 27, 2025
eb2f691
Replace original macros
amandinehry May 27, 2025
7b5f293
Correction: replace original macros
amandinehry May 27, 2025
c07b502
Modification of the Optional function to accept arguments separated b…
amandinehry Jun 2, 2025
670ddfa
Reacting with the command line option -e / --errors-output
amandinehry Jun 2, 2025
d08a30f
Add the rank on which the error is catch for error and warning outputs
amandinehry Jun 3, 2025
5a6c1a0
Unit test to check if the contents of the yaml file match exactly wha…
amandinehry Jun 3, 2025
4928dcd
Add the "Exception" field into the message type enumeration
amandinehry Jun 4, 2025
02dcf50
Modify the macros corresponding to throw to allow the exception to be…
amandinehry Jun 4, 2025
59ac94d
Remove ASSERT dependency on LvArray
amandinehry Jun 4, 2025
835e444
Remove GEOS_THROW_(...) and GEOS_ERROR_(...) dependency on LvArray
amandinehry Jun 4, 2025
10a2627
Restore to its original state an input file that I used for my tests
amandinehry Jun 4, 2025
9bd9f30
Delete additionnal spaces
amandinehry Jun 4, 2025
c9fea30
Syntax fixes
amandinehry Jun 4, 2025
7fa2b74
Syntax fixes
amandinehry Jun 4, 2025
8a9ff29
xsd + revert comment
amandinehry Jun 4, 2025
c1e001e
xsd + check includes
amandinehry Jun 4, 2025
e31f17c
Merge remote-tracking branch 'upstream/develop' into feature/amandine…
amandinehry Jun 4, 2025
a0eefd2
Compilation error fix
amandinehry Jun 5, 2025
5caa099
Remove vscode config files
amandinehry Jun 5, 2025
7aee0c6
Remove empty comment lines and commented code
amandinehry Jun 10, 2025
80bb07b
Changes in macros names
amandinehry Jun 10, 2025
149789e
Change the loop syntax ito a for-each syntax to solve the issue of in…
amandinehry Jun 10, 2025
74de273
Add comments
amandinehry Jun 10, 2025
92e6854
Reorganization of declarations
amandinehry Jun 10, 2025
f910d0e
add g_ before global variables + add comment to the addToMsg() method
amandinehry Jun 10, 2025
67fce43
Fix in writing the stack trace in the yaml
amandinehry Jun 11, 2025
387687d
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
amandinehry Jun 11, 2025
5c801a5
Add an error msg when the call stack is not formatted as expected + r…
amandinehry Jun 11, 2025
e34c90d
Add comment in the write() function
amandinehry Jun 11, 2025
5c4fbcb
Modification of the streamMultilineYamlAttribute() function: no longe…
amandinehry Jun 11, 2025
75eff27
Modification of the streamMultilineYamlAttribute() method: take the i…
amandinehry Jun 11, 2025
dab2da5
Fix null pointer access on parent by using instance field instead
amandinehry Jun 11, 2025
0a95296
Add comments
amandinehry Jun 11, 2025
c4a002e
Just silently kill GEOS when a NotAnError is raised
amandinehry Jun 11, 2025
cbc5102
Removed the pointer to an Error Logger object (this is no longer usef…
amandinehry Jun 12, 2025
3318d85
Minor syntax modification
amandinehry Jun 12, 2025
343b830
Renaming ContextInfo in ErrorContext + minor correction on the format…
amandinehry Jun 12, 2025
e22e538
Minor modifications on the GEOS_THROW_IF_GT_MSG message
amandinehry Jun 12, 2025
8de9060
Using GEOS_LOG_RANK instead of GEOS_LOG
amandinehry Jun 12, 2025
6c762e7
Add an enumeration to secure the keys that can be entered for the map…
amandinehry Jun 12, 2025
d288490
Improved code comments
amandinehry Jun 13, 2025
99d9b5b
reverse the change from GEOS_LOG to GEOS_LOG_RANK +empty the object a…
amandinehry Jun 13, 2025
f929f97
minor changes syntax + remove isValidStackTrace() method and replace …
amandinehry Jun 13, 2025
709d8a4
Minor changes: string to string_view when it was possible + add an ad…
amandinehry Jun 16, 2025
051e85b
Remove try/catch in the createFile() and the flushCurrentErrorMsg() m…
amandinehry Jun 16, 2025
517782b
Renaming: flushCurrentErrorMsg() into flushErrorMsg()
amandinehry Jun 16, 2025
2e0e396
Change GEOS_LOG() to GEOS_LOG_RANK()
amandinehry Jun 18, 2025
a83a3a1
initialize the error message line by default
amandinehry Jun 19, 2025
9fe289a
Doxygen comments
amandinehry Jun 24, 2025
da7dc82
Comments added
amandinehry Jun 24, 2025
260133e
Sort contextual information by decreasing priority
amandinehry Jun 24, 2025
e0c876f
Simplification of the for loop which write context information
amandinehry Jun 24, 2025
e1a2128
Changes following comments received on my PR
amandinehry Jun 25, 2025
4811b6c
Unit test implemented
amandinehry Jun 25, 2025
4a8ea5b
evaluate MSG only one time in macros
amandinehry Jul 4, 2025
2b38577
Merge commit '7e85e747ec65cd498ba0e9e4730f79d2692ed0bd' into feature/…
MelReyCG Jul 8, 2025
127f38e
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry Jul 21, 2025
e9508f5
Merge remote-tracking branch 'upstream/develop' into feature/amandine…
amandinehry Jul 21, 2025
7fc0ced
🔊 warn the deveveloppers that a yamlFile should not be written if not…
MelReyCG Jul 21, 2025
35f7686
🐛 ⏪ set the --errorsOutput mandatory because of bug + revert optionpa…
MelReyCG Jul 23, 2025
31842a5
✏️ typo
MelReyCG Jul 25, 2025
a1105e4
🎨 uncrustify
MelReyCG Aug 1, 2025
c118dd4
🎨 docs alignement
MelReyCG Aug 1, 2025
4215fad
🎨 format
MelReyCG Aug 1, 2025
507ac66
builder pattern for addContextInfo
MelReyCG Aug 1, 2025
7b4ec52
♻️ refactor of the test: keeping only necessary testing, separated te…
MelReyCG Aug 1, 2025
a01d8ac
🐛 bugfix for test, wrong global instance impacting
MelReyCG Aug 1, 2025
d4c465b
🎨 format
MelReyCG Aug 1, 2025
1e32d65
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Aug 1, 2025
6d10e3a
⏪ restored "Rank N:" if error messages
MelReyCG Aug 1, 2025
e9cd64c
test
amandinehry Aug 7, 2025
c7031bf
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry Aug 7, 2025
e07d0b7
uncomment the rmoveFile() function
amandinehry Aug 21, 2025
785636b
stack trace management
amandinehry Aug 21, 2025
dd3b844
Merge remote-tracking branch 'amandinehryFork/develop' into feature/a…
MelReyCG Aug 26, 2025
e0bad67
♻️ ✅ New GEOS_ERROR macros with context included + new unit macro uni…
MelReyCG Sep 15, 2025
ab40edc
✅ ♻️ Simplifying + testing macros (GEOS_ERROR_* and GEOS_ASSERT_*) + …
MelReyCG Sep 18, 2025
faa84fa
📝 adding macro docs
MelReyCG Sep 18, 2025
dd97f0e
✨ ✅ adding error cause in unit test
MelReyCG Sep 18, 2025
d708cac
♻️ reordered error & throw macro to group them
MelReyCG Sep 18, 2025
66ab5cb
♻️ ✅ uniformized warning macros
MelReyCG Sep 19, 2025
e6135b1
✅ 🐛 ⚡️ bugfix when callstack is empty + disable callstack for perfs
MelReyCG Sep 19, 2025
589fcfe
♻️ ✅ uniformized throw macros
MelReyCG Sep 19, 2025
6fc4b30
✅ removing _CTX macros from unit test
MelReyCG Sep 22, 2025
77f9fcb
🐛 use streamed cause string to support mpi pointers formatting (not s…
MelReyCG Sep 22, 2025
5747e7f
🐛 last mistake?
MelReyCG Sep 22, 2025
10eb969
♻️ removing all GEOS_*_CTX macros (as GEOS_ERROR, GEOS_WARNING, GEOS_…
MelReyCG Sep 22, 2025
2c5c5f5
🎨 UNCRUSTIFY
MelReyCG Sep 23, 2025
d1642e6
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Sep 23, 2025
b3cbb99
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Sep 23, 2025
5781a78
✨ allowing to re-throw with GEOS_THROW* macros
MelReyCG Sep 23, 2025
db75e45
📦 shema
MelReyCG Sep 23, 2025
e07ab72
♻️ removing unintended BASE::
MelReyCG Sep 23, 2025
1913059
🎨 uncrustify
MelReyCG Sep 25, 2025
6692dd2
🐛 fix stream reset
MelReyCG Sep 25, 2025
29f6fbe
⚰️ unused variable
MelReyCG Sep 25, 2025
d17972f
✨ removing last LVARRAY_* error logging macros
MelReyCG Sep 25, 2025
759e9bb
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Sep 25, 2025
1b755b5
✨ removing last LVARRAY_* error logging macros
MelReyCG Sep 25, 2025
3786db4
✅ adapting test with error cause addition
MelReyCG Sep 25, 2025
efa89d8
🐛 GPU Macros Support
MelReyCG Sep 25, 2025
7915205
🎨 uncrustify
MelReyCG Sep 26, 2025
14eefee
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Sep 26, 2025
500bbfd
🐛 GPU forgotten instruction
MelReyCG Sep 26, 2025
fa8fa54
🐛 added pragmas to manual shadow global logger instance
MelReyCG Sep 26, 2025
a29510b
Merge branch 'feature/amandinehry/create-yaml-file-and-structure-2' o…
MelReyCG Sep 26, 2025
c501a0f
🐛 wrong conversion on GPU
MelReyCG Sep 29, 2025
a07810f
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Sep 29, 2025
c3faad6
🐛 control only line index of oneliner macros for GPU compiler support
MelReyCG Sep 30, 2025
c5fec68
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Sep 30, 2025
01e75b6
📝 doc fixes
MelReyCG Oct 1, 2025
78ef785
🐛 unsupported string_view usage on GPU (lacks --expt-relaxed-constexpr)
MelReyCG Oct 1, 2025
ea8c125
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Oct 1, 2025
28867bd
🐛 explicit inclusion for GPU
MelReyCG Oct 1, 2025
4b86fd1
Merge branch 'feature/amandinehry/create-yaml-file-and-structure-2' o…
MelReyCG Oct 1, 2025
7adce63
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Oct 2, 2025
16a8522
🐛 solve a warning on GPU (dispatching on unsigned type)
MelReyCG Oct 2, 2025
56b13e6
🐛 compil bugfix attempt for debug target clang10, cuda11.8.89
MelReyCG Oct 3, 2025
1211de6
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Oct 3, 2025
966e396
🐛 solve macro evaluation issue
MelReyCG Oct 3, 2025
bb54f06
📦 🐛 schema
MelReyCG Oct 3, 2025
399a54e
🐛 new attempt
MelReyCG Oct 3, 2025
d62d59b
🐛 tell compiler that variables may be unused
MelReyCG Oct 6, 2025
9b10107
🐛 silly test
MelReyCG Oct 7, 2025
e4685dc
Merge branch 'feature/amandinehry/create-yaml-file-and-structure-2' o…
MelReyCG Oct 7, 2025
53b37f1
🐛 silly test 2
MelReyCG Oct 7, 2025
3a89aae
🐛 2458463564th try to solve the clang cuda debug build: removal of al…
MelReyCG Oct 7, 2025
7da5144
🐛 forgotten ref
MelReyCG Oct 7, 2025
d0b9029
redefinition issue
MelReyCG Oct 7, 2025
11d12c2
🐛 redefine logger instance in unit test
MelReyCG Oct 7, 2025
976b469
🧪 testing resolved macro
MelReyCG Oct 7, 2025
1069205
Revert "🧪 testing resolved macro"
MelReyCG Oct 8, 2025
c2cfa19
🐛 changing type of CUDA format string
MelReyCG Oct 8, 2025
f0caa9f
🐛 🧪 removing potencially reserved blockIdx cuda keyword
MelReyCG Oct 8, 2025
850e4fd
🧪 disabling most of the jobs
MelReyCG Oct 8, 2025
837c7fb
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Oct 8, 2025
7e25c50
🧪 disabling most of the jobs 2
MelReyCG Oct 8, 2025
60f2483
🧪 disabling most of the jobs 3
MelReyCG Oct 8, 2025
7e51e4e
⏪ revert nasty fix
MelReyCG Oct 8, 2025
2d7d300
🐛 fix rank displaying
MelReyCG Oct 8, 2025
f96fcf2
📝 return type docs
MelReyCG Oct 8, 2025
741c2bd
⏪ re enable all ci targets
MelReyCG Oct 8, 2025
7d0e307
solving strange linking issue
MelReyCG Oct 10, 2025
579aadd
🧪 re disable working ci targets
MelReyCG Oct 10, 2025
0aff50f
Revert "🧪 re disable working ci targets"
MelReyCG Oct 10, 2025
b5d5373
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Oct 10, 2025
e3a68a6
🐛 ♻️ making rank parameter mandatory & clearer (try to fix CUDA CI ta…
MelReyCG Oct 10, 2025
2fe5021
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Oct 13, 2025
fd6b06b
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Oct 14, 2025
3519ed2
🐛 fixing variable shadowing
MelReyCG Oct 14, 2025
529ab10
📦 schema \o/
MelReyCG Oct 14, 2025
b124508
⏪ revert geos::logger::internal variables->functions refactor (becaus…
MelReyCG Oct 15, 2025
b1fdcf9
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Oct 20, 2025
8cd54ab
💚 removing "make install" in ci jobs
MelReyCG Oct 22, 2025
fa283db
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG Oct 23, 2025
5579881
📦 schema
MelReyCG Oct 23, 2025
7f11fbb
💡 TODO reenable cmake install
MelReyCG Oct 23, 2025
316214c
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG Oct 27, 2025
f244e8f
first pass
arng40 Oct 31, 2025
873eb58
2nd pass
arng40 Nov 3, 2025
a51aedb
Merge remote-tracking branch 'origin/develop' into feat/dudes/display…
arng40 Nov 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/ci_build_and_test_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ if [[ "${BUILD_EXE_ONLY}" = true ]]; then
or_die cmake --build . -j $NPROC --target geosx
else
or_die cmake --build . -j $NPROC
# TODO: for the moment, installation is disabled to save some space on the runner, but must be re-enabled in the future.
#or_die cmake --install .

if [[ ! -z "${DATA_BASENAME_WE}" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void HydraulicApertureTable::validateApertureTable( TableFunction const & apertu

GEOS_THROW_IF( coords.size() == 0,
getFullName() << ": Empty aperture table.",
InputError );
InputError,getDataContext() );

GEOS_THROW_IF( coords.size() > 1,
getFullName() << ": Aperture limiter table cannot be greater than a 1D table.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,33 +83,27 @@ void ParticleFluid::postInputInitialization()
ParticleFluidBase::postInputInitialization();

GEOS_ERROR_IF( m_proppantDensity < 500.0,
"Invalid proppantDensity in ParticleFluid "
<< getDataContext() << ", which must >= 500.0 ",
"Invalid proppantDensity in ParticleFluid which must >= 500.0 ",
getDataContext() );

GEOS_ERROR_IF( m_proppantDiameter < 10e-6,
"Invalid proppantDiameter in ParticleFluid "
<< getDataContext() << ", which must >= 10e-6 ",
"Invalid proppantDiameter in ParticleFluid, which must >= 10e-6 ",
getDataContext() );

GEOS_ERROR_IF( m_hinderedSettlingCoefficient< 0.0 || m_hinderedSettlingCoefficient > 10.0,
"Invalid hinderedSettlingCoefficient in ParticleFluid "
<< getDataContext() << ", which must between 0 and 10 ",
"Invalid hinderedSettlingCoefficient in ParticleFluid, which must between 0 and 10 ",
getDataContext() );

GEOS_ERROR_IF( m_collisionAlpha < 1.0,
"Invalid collisionAlpha in ParticleFluid "
<< getDataContext() << ", which must >= 1 ",
"Invalid collisionAlpha in ParticleFluid , which must >= 1 ",
getDataContext() );

GEOS_ERROR_IF( m_collisionBeta < 0.0,
"Invalid collisionBeta in ParticleFluid "
<< getDataContext() << ", which must >= 0",
"Invalid collisionBeta in ParticleFluid , which must >= 0",
getDataContext() );

GEOS_ERROR_IF( m_slipConcentration > 0.3,
"Invalid slipConcentration in ParticleFluid "
<< getDataContext() << ", which must <= 0.3",
"Invalid slipConcentration in ParticleFluid, which must <= 0.3",
getDataContext() );

m_packPermeabilityCoef = pow( m_sphericity * m_proppantDiameter, 2.0 ) / 180.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void PressurePermeability::postInputInitialization()
for( localIndex i=0; i < 3; i++ )
{
GEOS_ERROR_IF( std::abs( m_pressureDependenceConstants[i] ) < 1e-15 && m_presModelType == PressureModelType::Hyperbolic,
getDataContext() << ": the pressure dependent constant at component " << i << " is too close to zero, which is not allowed for the hyperbolic model.",
"The pressure dependent constant at component " << i << " is too close to zero, which is not allowed for the hyperbolic model.",
getDataContext() );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ TableRelativePermeabilityHelpers::validateRelativePermeabilityTable( TableFuncti
ArrayOfArraysView< real64 const > coords = relPermTable.getCoordinates();

GEOS_THROW_IF_NE_MSG( relPermTable.getInterpolationMethod(), TableFunction::InterpolationType::Linear,
GEOS_FMT( "{}: TableFunction '{}' interpolation method must be linear",
fullConstitutiveName, relPermTable.getDataContext() ),
InputError );
GEOS_FMT( "{}: TableFunction interpolation method must be linear", fullConstitutiveName ),
InputError, relPermTable.getDataContext() );
GEOS_THROW_IF_NE_MSG( relPermTable.numDimensions(), 1,
GEOS_FMT( "{}: TableFunction '{}' must have a single independent coordinate",
fullConstitutiveName, relPermTable.getDataContext() ),
InputError );
GEOS_FMT( "{}: TableFunction must have a single independent coordinate", fullConstitutiveName ),
InputError, relPermTable.getDataContext() );
GEOS_THROW_IF_LT_MSG( coords.sizeOfArray( 0 ), 2,
GEOS_FMT( "{}: TableFunction `{}` must contain at least two values",
fullConstitutiveName, relPermTable.getDataContext() ),
InputError );
GEOS_FMT( "{}: TableFunction must contain at least two values", fullConstitutiveName ),
InputError, relPermTable.getDataContext() );

arraySlice1d< real64 const > phaseVolFrac = coords[0];
arrayView1d< real64 const > const relPerm = relPermTable.getValues();
Expand All @@ -59,23 +56,21 @@ TableRelativePermeabilityHelpers::validateRelativePermeabilityTable( TableFuncti

// note that the TableFunction class has already checked that coords.sizeOfArray( 0 ) == relPerm.size()
GEOS_THROW_IF( !isZero( relPerm[0] ),
GEOS_FMT( "{}: TableFunction '{}' first value must be equal to 0",
fullConstitutiveName, relPermTable.getDataContext() ),
GEOS_FMT( "{}: TableFunction first value must be equal to 0", fullConstitutiveName ),
InputError, relPermTable.getDataContext() );
for( localIndex i = 1; i < coords.sizeOfArray( 0 ); ++i )
{
// check phase volume fraction
GEOS_THROW_IF( phaseVolFrac[i] < 0 || phaseVolFrac[i] > 1,
GEOS_FMT( "{}: TableFunction '{}' values must be between 0 and 1",
fullConstitutiveName, relPermTable.getDataContext() ),
GEOS_FMT( "{}: TableFunction values must be between 0 and 1", fullConstitutiveName ),
InputError, relPermTable.getDataContext() );

// note that the TableFunction class has already checked that the coordinates are monotone

// check phase relative permeability
GEOS_THROW_IF( !isZero( relPerm[i] ) && (relPerm[i] - relPerm[i-1]) < 1e-15,
GEOS_FMT( "{}: TableFunction '{}' values must be strictly increasing (|Delta kr| > 1e-15 between two non-zero values)",
fullConstitutiveName, relPermTable.getDataContext() ),
GEOS_FMT( "{}: TableFunction values must be strictly increasing (|Delta kr| > 1e-15 between two non-zero values)",
fullConstitutiveName ),
InputError, relPermTable.getDataContext() );

if( isZero( relPerm[i-1] ) && !isZero( relPerm[i] ) )
Expand Down
16 changes: 8 additions & 8 deletions src/coreComponents/constitutive/solid/Damage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ void Damage< BASE >::postInputInitialization()
BASE::postInputInitialization();

GEOS_ERROR_IF( m_extDrivingForceFlag != 0 && m_extDrivingForceFlag!= 1,
this->getDataContext() << ": invalid external driving force flag option - must"
" be 0 or 1",
"invalid external driving force flag option - must"
" be 0 or 1",
this->getDataContext() );
GEOS_ERROR_IF( m_extDrivingForceFlag == 1 && m_defaultTensileStrength <= 0.0,
this->getDataContext() << ": tensile strength must be input and positive when the"
" external driving force flag is turned on",
"tensile strength must be input and positive when the"
" external driving force flag is turned on",
this->getDataContext() );
GEOS_ERROR_IF( m_extDrivingForceFlag == 1 && m_defaultCompressiveStrength <= 0.0,
this->getDataContext() << ": compressive strength must be input and positive when the"
" external driving force flag is turned on",
"compressive strength must be input and positive when the"
" external driving force flag is turned on",
this->getDataContext() );
GEOS_ERROR_IF( m_extDrivingForceFlag == 1 && m_defaultDeltaCoefficient < 0.0,
this->getDataContext() << ": delta coefficient must be input and non-negative when the"
" external driving force flag is turned on",
"delta coefficient must be input and non-negative when the"
" external driving force flag is turned on",
this->getDataContext() );

// set results as array default values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@ void PVTDriver::postInputInitialization()
{
// Validate some inputs
GEOS_ERROR_IF( m_outputMassDensity != 0 && m_outputMassDensity != 1,
getWrapperDataContext( viewKeyStruct::outputMassDensityString() ) <<
": option can be either 0 (false) or 1 (true)",
viewKeyStruct::outputMassDensityString() <<
"option can be either 0 (false) or 1 (true)",
getWrapperDataContext( viewKeyStruct::outputMassDensityString() ) );

GEOS_ERROR_IF( m_outputCompressibility != 0 && m_outputCompressibility != 1,
getWrapperDataContext( viewKeyStruct::outputCompressibilityString() ) <<
": option can be either 0 (false) or 1 (true)",
viewKeyStruct::outputCompressibilityString() <<
"option can be either 0 (false) or 1 (true)",
getWrapperDataContext( viewKeyStruct::outputCompressibilityString() ) );

GEOS_ERROR_IF( m_outputPhaseComposition != 0 && m_outputPhaseComposition != 1,
getWrapperDataContext( viewKeyStruct::outputPhaseCompositionString() ) <<
": option can be either 0 (false) or 1 (true)",
viewKeyStruct::outputPhaseCompositionString() <<
"option can be either 0 (false) or 1 (true)",
getWrapperDataContext( viewKeyStruct::outputPhaseCompositionString() ) );

GEOS_WARNING_IF( m_precision < minPrecision,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ void TriaxialDriver::postInputInitialization()
// may overwrite it.

GEOS_THROW_IF( !isEqual( m_initialStress, m_table( 0, SIG0 ), 1e-6 ),
getDataContext() << ": Initial stress values indicated by initialStress and axialFunction(time=0) appear inconsistent",
"Initial stress values indicated by initialStress and axialFunction(time=0) appear inconsistent",
InputError, getDataContext() );

GEOS_THROW_IF( !isEqual( m_initialStress, m_table( 0, SIG1 ), 1e-6 ),
getDataContext() << ": Initial stress values indicated by initialStress and radialFunction(time=0) appear inconsistent",
"Initial stress values indicated by initialStress and radialFunction(time=0) appear inconsistent",
InputError, getDataContext() );
}

Expand Down
5 changes: 2 additions & 3 deletions src/coreComponents/dataRepository/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ WrapperBase & Group::registerWrapper( std::unique_ptr< WrapperBase > wrapper )
void Group::deregisterWrapper( string const & name )
{
GEOS_ERROR_IF( !hasWrapper( name ),
"Wrapper " << name << " doesn't exist in Group" << getDataContext() << '.',
"Wrapper " << name << " doesn't exist in Group.",
getDataContext() );
m_wrappers.erase( name );
m_conduitNode.remove( name );
Expand Down Expand Up @@ -250,8 +250,7 @@ void Group::processInputFile( xmlWrapper::xmlNode const & targetNode,
GEOS_FMT( "Error in {}: XML Node at '{}' contains unused attribute '{}'.\n"
"Valid attributes are:\n{}\nFor more details, please refer to documentation at:\n"
"http://geosx-geosx.readthedocs-hosted.com/en/latest/docs/sphinx/userGuide/Index.html",
getDataContext(), targetNode.path(), attributeName,
dumpInputOptions() ),
targetNode.path(), attributeName, dumpInputOptions() ),
InputError, getDataContext() );
}
}
Expand Down
10 changes: 4 additions & 6 deletions src/coreComponents/events/PeriodicEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,16 @@ void PeriodicEvent::validate() const
constexpr auto determinesTimeStepSize = ExecutableGroup::TimesteppingBehavior::DeterminesTimeStepSize;

GEOS_THROW_IF( m_timeFrequency > 0 && target->getTimesteppingBehavior() == determinesTimeStepSize,
GEOS_FMT( "`{}`: This event targets an object that automatically selects the time "
GEOS_FMT( "This event targets an object that automatically selects the time "
"step size. Therefore, `{}` cannot be used here. However, forcing a "
"constant time step size can still be achived with `{}`.",
getDataContext(), viewKeyStruct::timeFrequencyString(),
EventBase::viewKeyStruct::forceDtString() ),
viewKeyStruct::timeFrequencyString(), EventBase::viewKeyStruct::forceDtString() ),
InputError, getDataContext() );
GEOS_THROW_IF( m_cycleFrequency != 1 && target->getTimesteppingBehavior() == determinesTimeStepSize,
GEOS_FMT( "`{}`: This event targets an object that automatically selects the time "
GEOS_FMT( "This event targets an object that automatically selects the time "
"step size. Therefore, `{}` cannot be used here. However, forcing a "
"constant time step size can still be achived with `{}`.",
getDataContext(), viewKeyStruct::cycleFrequencyString(),
EventBase::viewKeyStruct::forceDtString() ),
viewKeyStruct::cycleFrequencyString(), EventBase::viewKeyStruct::forceDtString() ),
InputError, getDataContext() );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ AquiferBoundaryCondition::AquiferBoundaryCondition( string const & name, Group *
void AquiferBoundaryCondition::postInputInitialization()
{
GEOS_THROW_IF_LE_MSG( m_permeability, 0.0,
getCatalogName() << " " << getDataContext() <<
": the aquifer permeability cannot be equal to zero or negative",
InputError );
getCatalogName() << ": the aquifer permeability cannot be equal to zero or negative",
InputError, getDataContext() );

if( m_pressureInfluenceFunctionName.empty() )
{
Expand All @@ -127,37 +126,34 @@ void AquiferBoundaryCondition::postInputInitialization()
{
FunctionManager const & functionManager = FunctionManager::getInstance();
GEOS_THROW_IF( !functionManager.hasGroup( m_pressureInfluenceFunctionName ),
getCatalogName() << " " << getDataContext() <<
": the pressure influence table " << m_pressureInfluenceFunctionName << " could not be found",
getCatalogName() << " : the pressure influence table " << m_pressureInfluenceFunctionName << " could not be found",
InputError, getDataContext() );

TableFunction const & pressureInfluenceFunction = functionManager.getGroup< TableFunction >( m_pressureInfluenceFunctionName );
GEOS_THROW_IF( pressureInfluenceFunction.getInterpolationMethod() != TableFunction::InterpolationType::Linear,
getCatalogName() << " " << getDataContext() <<
": The interpolation method for the pressure influence function table " <<
pressureInfluenceFunction.getDataContext() <<
getCatalogName() << " : The interpolation method for the pressure influence function table " <<
" should be TableFunction::InterpolationType::Linear",
InputError, getDataContext() );
InputError, pressureInfluenceFunction.getDataContext(), getDataContext() );
}

computeTimeConstant();
computeInfluxConstant();

GEOS_THROW_IF_LE_MSG( m_timeConstant, 0.0,
getCatalogName() << " " << getDataContext() <<
": the aquifer time constant is equal to zero or negative, the simulation cannot procede",
InputError );
getCatalogName() <<
" : the aquifer time constant is equal to zero or negative, the simulation cannot procede",
InputError, getDataContext() );

GEOS_THROW_IF_LE_MSG( m_influxConstant, 0.0,
getCatalogName() << " " << getDataContext() <<
": the aquifer influx constant is equal to zero or negative, the simulation cannot procede",
InputError );
getCatalogName() <<
" : the aquifer influx constant is equal to zero or negative, the simulation cannot procede",
InputError, getDataContext() );

GEOS_THROW_IF_NE_MSG( m_phaseComponentFraction.size(), LvArray::integerConversion< int >( m_phaseComponentNames.size() ),
getCatalogName() << " " << getDataContext() <<
": the sizes of " << viewKeyStruct::aquiferWaterPhaseComponentFractionString() <<
getCatalogName() <<
" : the sizes of " << viewKeyStruct::aquiferWaterPhaseComponentFractionString() <<
" and " << viewKeyStruct::aquiferWaterPhaseComponentNamesString() << " are inconsistent",
InputError );
InputError, getDataContext() );

}

Expand Down
Loading
Loading