-
Notifications
You must be signed in to change notification settings - Fork 89
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
refactor: address some code analysis issues #3456
base: develop
Are you sure you want to change the base?
Changes from all commits
c81a651
cbb1c29
b2f6fde
8af5c59
099f5ac
494c184
70cb8ce
fc96431
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -429,7 +429,6 @@ size_t findAttribute( string const & attName, string const & xmlBuffer, size_t c | |
{ | ||
return candidatePos; | ||
} | ||
searchStart = candidatePos + attName.size(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not used |
||
} | ||
} | ||
catch( std::regex_error const & ) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,9 +189,6 @@ dataRepository::Group const * HistoryCollectionBase::getTargetObject( DomainPart | |
} | ||
else | ||
{ | ||
string const targetTokensStr = stringutilities::join( targetTokens.begin(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not used |
||
targetTokens.begin()+pathLevel, | ||
'/' ); | ||
GEOS_THROW( targetTokens[pathLevel] << " not found in path " << | ||
objectPath << std::endl << targetGroup->dumpSubGroupsNames(), | ||
std::domain_error ); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ class SolutionScalingAndCheckingKernelBase | |
|
||
StackVariables( real64 _localMinVal ) | ||
: | ||
localRow( -1 ), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a question: why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
localMinVal( _localMinVal ) | ||
{ } | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,8 +403,8 @@ void HydrofractureSolver< POROMECHANICS_SOLVER >::setupCoupling( DomainPartition | |
regions.emplace_back( region.getName() ); | ||
} ); | ||
|
||
dispMeshTargets[std::make_pair( meshBodyName, solidDiscretizationName )] = std::move( regions ); | ||
presMeshTargets[std::make_pair( meshBodyName, flowDiscretizationName )] = std::move( regions ); | ||
dispMeshTargets[std::make_pair( meshBodyName, solidDiscretizationName )] = regions; | ||
presMeshTargets[std::make_pair( meshBodyName, flowDiscretizationName )] = regions; | ||
Comment on lines
+406
to
+407
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How did the previous code worked?? Good catch! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't think using moved is a big deal here but better not to use it |
||
} ); | ||
|
||
dofManager.addCoupling( solidMechanics::totalDisplacement::key(), | ||
|
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.
reassigned below, down in the code