-
Notifications
You must be signed in to change notification settings - Fork 97
feat: Input error when a box does not select anything #3808
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
Conversation
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.
i am ok with the change but you will need to update all the hydrofrac inputs...
src/coreComponents/fieldSpecification/FieldSpecificationManager.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/fieldSpecification/FieldSpecificationManager.cpp
Outdated
Show resolved
Hide resolved
…hen-box-select-nothing
|
@castelletto1 @corbett5 @bd713 : this one needs your help because the CI does not pass, and @arng40 does not understand why. Thank you! |
When comparing with the reference result, the CI detects that we have introduced a new |
…hen-box-select-nothing
|
@arng40 |
|
As @bd713 pointed out, all integrated tests have restart hdf5 files that show a structural change due to addition of The only two tests that show numerical diffs are:
Given the PR description:
... it’s not surprising to see numerical diffs in these two tests. Unless I am missing something, I would say we are good to go. |
|
With the revert of thermalLeakyWell and the script set to "errorSetMode" I've got |
This reverts commit 874186b.
…hen-box-select-nothing
| { | ||
| GEOS_LOG( string( indent, '\t' ) << "-> " << view.second->getName() << " : " | ||
| << LvArray::system::demangleType( *view.second ) ); | ||
| << LvArray::system::demangleType( *view.second ) << " size : "<<view.second->size()); |
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.
add spaces to keep formatting consistent
| registerWrapper( viewKeyStruct::errorSetModeString(), &m_emptySetErrorMode ). | ||
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setApplyDefaultValue( SetErrorMode::error ). | ||
| setDescription( "Set the log state when we a “set” does not target any region\n" |
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.
remove "we"
| setDescription( "Set the log state when we a “set” does not target any region\n" | ||
| "When set to \"silent\", no output\n" | ||
| "When set to \"warning\", output an error\n" | ||
| "When set to \"error\", output a throw\n" ); |
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.
????
and "error" above
| /// The name of a function used to turn on and off the boundary condition. | ||
| string m_bcApplicationFunctionName; | ||
|
|
||
| /// Value indicating whether we converts an error into a warning |
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.
grammar
| void FieldSpecificationManager::validateBoundaryConditions( MeshLevel & mesh ) const | ||
| { | ||
| DomainPartition const & domain = this->getGroupByPath< DomainPartition >( "/Problem/domain" ); | ||
| Group const & meshBodies = domain.getMeshBodies(); |
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.
is this needed?
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.
removed the duplication and let this one
| targetGroup.getName() == MeshLevel::groupStructKeys::faceManagerString() ) // the field names of the face BCs are not always | ||
| // registered on | ||
| // the faceManager... | ||
| if( targetGroup.hasWrapper( fieldName ) ||flag == InputFlags::FALSE || |
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.
formatting
oh i see it was indeed updated... |
…hen-box-select-nothing
…hen-box-select-nothing
When a box (usually a user-defined volume) is not selected and the deck does not involve a
SurfaceGenerator, the simulation is stopped and output an error.The user can precise this error state by adding a
errorSetModein the targetedFieldSpecificationwrapper with "silent|warning|error".Also update the example on 5 units tests where the box defined didn't include the targeted mesh.
Edited the Thermal Leaky Well example. The smoke version of this was not implementing the boundary conditions correctly. These have been changed from element based to face based boundary conditions so that they are applicable to both the smoke and benchmark cases. This case has also changed similar to issue #3660. The images have therefore been updated to the current values.