-
Notifications
You must be signed in to change notification settings - Fork 97
fix: error in MappedVector::insert #3610
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?
Changes from all commits
23b6510
4511ce5
59fc3d3
728060c
3da4a6e
6f5eadf
4356899
23fa30a
95fe965
8133922
6a1804f
653ee13
12db88d
fd8f913
a22944d
f2e3f87
c2b55b9
6525094
98e3a89
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 |
|---|---|---|
|
|
@@ -25,13 +25,4 @@ | |
| xMin="{ -0.01, -0.01, 100.99 }" | ||
| xMax="{ 101.01, 101.01, 101.01 }"/> | ||
| </Geometry> | ||
|
|
||
| <!-- The free surface condition the domain --> | ||
|
Contributor
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. This is already present in the included base file. |
||
| <FieldSpecifications> | ||
| <FieldSpecification | ||
| name="zposFreeSurface" | ||
| objectPath="mesh/FE2/faceManager" | ||
| fieldName="FreeSurface" | ||
| setNames="{ zpos }"/> | ||
| </FieldSpecifications> | ||
| </Problem> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,7 +53,7 @@ void ConstitutiveBase::allocateConstitutiveData( Group & parent, localIndex cons | |
| if( wrapper.second->sizedFromParent() ) | ||
| { | ||
| string const wrapperName = makeFieldName( this->getName(), wrapper.first ); | ||
| parent.registerWrapper( wrapper.second->clone( wrapperName, parent ) ). | ||
| parent.registerWrapper( wrapper.second->clone( wrapperName, parent ), true ). | ||
|
Contributor
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. These sorts of changes |
||
| setRestartFlags( RestartFlags::NO_WRITE ); | ||
| } | ||
| } | ||
|
|
@@ -64,7 +64,7 @@ void ConstitutiveBase::allocateConstitutiveData( Group & parent, localIndex cons | |
| if( wrapper.second->sizedFromParent() ) | ||
| { | ||
| string const wrapperName = makeFieldName( this->getName(), wrapper.first ); | ||
| parent.registerWrapper( wrapper.second->clone( wrapperName, parent ) ). | ||
| parent.registerWrapper( wrapper.second->clone( wrapperName, parent ), true ). | ||
| setRestartFlags( RestartFlags::NO_WRITE ); | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,12 +41,14 @@ ConstitutiveManager::~ConstitutiveManager() | |
| {} | ||
|
|
||
|
|
||
| Group * ConstitutiveManager::createChild( string const & childKey, string const & childName ) | ||
| Group * ConstitutiveManager::createChild( string const & childKey, | ||
| string const & childName, | ||
| bool const allowExistence ) | ||
|
Comment on lines
+44
to
+46
Contributor
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. There were some places where |
||
| { | ||
| GEOS_LOG_RANK_0( GEOS_FMT( "{}: adding {} {}", getName(), childKey, childName ) ); | ||
| std::unique_ptr< ConstitutiveBase > material = | ||
| ConstitutiveBase::CatalogInterface::factory( childKey, getDataContext(), childName, this ); | ||
| return ®isterGroup< ConstitutiveBase >( childName, std::move( material ) ); | ||
| return ®isterGroup< ConstitutiveBase >( std::move( material ), allowExistence ); | ||
|
Contributor
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 also made it so that methods such as these, which register an existing |
||
| } | ||
|
|
||
|
|
||
|
|
@@ -92,7 +94,7 @@ ConstitutiveManager::hangConstitutiveRelation( string const & constitutiveRelati | |
| numConstitutivePointsPerParentIndex ) ); | ||
|
|
||
| ConstitutiveBase & | ||
| materialGroup = constitutiveGroup->registerGroup< ConstitutiveBase >( constitutiveRelationInstanceName, std::move( material ) ); | ||
| materialGroup = constitutiveGroup->registerGroup< ConstitutiveBase >( std::move( material ) ); | ||
| materialGroup.setSizedFromParent( 1 ); | ||
| materialGroup.resize( constitutiveGroup->size() ); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,16 +37,16 @@ MultiFluidBase::MultiFluidBase( string const & name, Group * const parent ) | |
|
|
||
| registerWrapper( viewKeyStruct::componentNamesString(), &m_componentNames ). | ||
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setDescription( "List of component names" ); | ||
| setDescription( "List of fluid components (e.g. CH4, H2O, C5H12)" ); | ||
|
|
||
| registerWrapper( viewKeyStruct::componentMolarWeightString(), &m_componentMolarWeight ). | ||
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setDescription( "Component molar weights" ); | ||
| setDescription( "Molar weights of components" ); | ||
|
|
||
| registerWrapper( viewKeyStruct::phaseNamesString(), &m_phaseNames ). | ||
| setRTTypeName( rtTypes::CustomTypes::groupNameRefArray ). | ||
| setInputFlag( InputFlags::OPTIONAL ). | ||
| setDescription( "List of fluid phases" ); | ||
| setDescription( "List of fluid phases (e.g. gas, water, oil)" ); | ||
|
Comment on lines
-40
to
+49
Contributor
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. These obviously weren't required, but I copied the slightly more detailed description from the duplicate registration in |
||
|
|
||
| registerWrapper( viewKeyStruct::useMassString(), &m_useMass ). | ||
| setRestartFlags( RestartFlags::NO_WRITE ). | ||
|
|
||
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.
This is already present in the included base file.