@@ -189,10 +189,8 @@ real64 HydrofractureSolver< POROMECHANICS_SOLVER >::fullyCoupledSolverStep( real
189189 int const cycleNumber,
190190 DomainPartition & domain )
191191{
192- if ( cycleNumber == 0 && time_n <= 0 )
193- {
194- initializeNewFractureFields ( domain );
195- }
192+ // for initial fracture initialization in case when surface generator was called outside of the solver
193+ initializeNewFractureFields ( domain );
196194
197195 real64 dtReturn = dt;
198196
@@ -379,11 +377,11 @@ void HydrofractureSolver< POROMECHANICS_SOLVER >::updateHydraulicApertureAndFrac
379377 maxHydraulicAperture = MpiWrapper::max ( maxHydraulicAperture );
380378
381379 GEOS_LOG_LEVEL_INFO_RANK_0 ( logInfo::Solution, GEOS_FMT ( " {}: Max aperture change: {} m, max hydraulic aperture change: {} m" ,
382- this ->getName (), fmt::format ( " {:.{}f }" , maxApertureChange, 6 ), fmt::format ( " {:.{}f }" , maxHydraulicApertureChange, 6 ) ) );
380+ this ->getName (), fmt::format ( " {:.{}e }" , maxApertureChange, 6 ), fmt::format ( " {:.{}e }" , maxHydraulicApertureChange, 6 ) ) );
383381 GEOS_LOG_LEVEL_INFO_RANK_0 ( logInfo::Solution, GEOS_FMT ( " {}: Min aperture: {} m, max aperture: {} m" ,
384- this ->getName (), fmt::format ( " {:.{}f }" , minAperture, 6 ), fmt::format ( " {:.{}f }" , maxAperture, 6 ) ) );
382+ this ->getName (), fmt::format ( " {:.{}e }" , minAperture, 6 ), fmt::format ( " {:.{}e }" , maxAperture, 6 ) ) );
385383 GEOS_LOG_LEVEL_INFO_RANK_0 ( logInfo::Solution, GEOS_FMT ( " {}: Min hydraulic aperture: {} m, max hydraulic aperture: {} m" ,
386- this ->getName (), fmt::format ( " {:.{}f }" , minHydraulicAperture, 6 ), fmt::format ( " {:.{}f }" , maxHydraulicAperture, 6 ) ) );
384+ this ->getName (), fmt::format ( " {:.{}e }" , minHydraulicAperture, 6 ), fmt::format ( " {:.{}e }" , maxHydraulicAperture, 6 ) ) );
387385}
388386template < typename POROMECHANICS_SOLVER >
389387void HydrofractureSolver< POROMECHANICS_SOLVER >::setupCoupling( DomainPartition const & domain,
@@ -750,7 +748,6 @@ assembleForceResidualDerivativeWrtPressure( DomainPartition & domain,
750748 for ( localIndex kf=0 ; kf<2 ; ++kf )
751749 {
752750 localIndex const faceIndex = elemsToFaces[kfe][kf];
753-
754751 for ( localIndex a=0 ; a<numNodesPerFace; ++a )
755752 {
756753
@@ -1173,7 +1170,6 @@ void HydrofractureSolver< POROMECHANICS_SOLVER >::initializeNewFractureFields( D
11731170 }
11741171 } );
11751172 }
1176-
11771173 subRegion.m_recalculateConnectionsFor2dFaces .clear ();
11781174 subRegion.m_newFaceElements .clear ();
11791175 } );
0 commit comments