-
Notifications
You must be signed in to change notification settings - Fork 96
fix: FieldSpeciaficationManager log corrections #3749
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
@@ -250,5 +250,19 @@ stdVector< STRING_T > wrapTextToMaxLength( stdVector< STRING_T > const & lines, | |||
template stdVector< string > wrapTextToMaxLength( stdVector< string > const &, size_t & ); | |||
template stdVector< string_view > wrapTextToMaxLength( stdVector< string_view > const &, size_t & ); | |||
|
|||
string_array splitStringWithDelim( string const & s, char const delim ) |
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.
Isn't there already a tokenize
method to do this?
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.
CONTAINER< string > tokenize( string const & str, |
FieldSpecificationBase::viewKeyStruct::fieldNameString(), | ||
fs.getFieldName(), fs.getObjectPath() );; | ||
|
||
string_array const splitPath = stringutilities::splitStringWithDelim( fs.getObjectPath(), '/' ); |
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'm not sure about these path manipulations. Feels like something that should be handled by dataRepository
. Is it possible to use
template< typename REGIONTYPE = ElementRegionBase, typename ... REGIONTYPES, typename LOOKUP_CONTAINER, typename LAMBDA >
void ElementRegionManager::forElementRegions( LOOKUP_CONTAINER const & targetRegions, LAMBDA && lambda ) const
Or additionally/alternatively the subRegion
version of this.
* @param delim The character used as the delimiter for splitting the string. | ||
* @return A vector containing the substrings obtained from the input string. | ||
*/ | ||
string_array splitStringWithDelim( string const & s, char const delim ); |
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.
CONTAINER< string > tokenize( string const & str, |
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.
prefer existing tokenize over a redundant implementation, other than that this is fine
src/coreComponents/fieldSpecification/FieldSpecificationManager.cpp
Outdated
Show resolved
Hide resolved
seems resolved |
This PR aim to correct and update some log introduced with #3658
objectpath="ElementRegions"
with an invalid fieldNameExample with one of our test deck
Currently we have
With the correction
Before
Now we got this message