Skip to content

Commit

Permalink
revert and give up
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Tomin committed Jul 5, 2024
1 parent 90923b9 commit fa97b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,11 @@ void SinglePhaseBase::initializePostInitialConditionsPreSubGroups()
subRegion.getWrapper< real64_array >( fields::flow::hydraulicAperture::key() ).
setApplyDefaultValue( region.getDefaultAperture() );

SingleFluidBase & fluid =
getConstitutiveModel< SingleFluidBase >( subRegion, subRegion.getReference< string >( FlowSolverBase::viewKeyStruct::fluidNamesString() ) );
real64 const defaultDensity = fluid.defaultDensity();
subRegion.getWrapper< real64_array >( FaceElementSubRegion::viewKeyStruct::creationMassString() ).
setApplyDefaultValue( 0.0 );
setApplyDefaultValue( defaultDensity * region.getDefaultAperture() );
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,6 @@ void HydrofractureSolver< POROMECHANICS_SOLVER >::initializePostInitialCondition
{
Base::initializePostInitialConditionsPreSubGroups();

DomainPartition & domain = this->template getGroupByPath< DomainPartition >( "/Problem/domain" );
forDiscretizationOnMeshTargets( domain.getMeshBodies(), [&]( string const &,
MeshLevel & mesh,
arrayView1d< string const > const & regionNames )
{
mesh.getElemManager().forElementRegions< SurfaceElementRegion >( regionNames,
[&]( localIndex const,
SurfaceElementRegion & region )
{
region.forElementSubRegions< FaceElementSubRegion >( [&]( FaceElementSubRegion & subRegion )
{
SingleFluidBase & fluid =
this->template getConstitutiveModel< SingleFluidBase >( subRegion, subRegion.getReference< string >( FlowSolverBase::viewKeyStruct::fluidNamesString() ) );
real64 const defaultDensity = fluid.defaultDensity();
subRegion.getWrapper< real64_array >( FaceElementSubRegion::viewKeyStruct::creationMassString() ).
setApplyDefaultValue( defaultDensity * region.getDefaultAperture() );
} );
} );
} );
}

template< typename POROMECHANICS_SOLVER >
Expand Down

0 comments on commit fa97b6a

Please sign in to comment.