Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2790,6 +2790,14 @@ void CompositionalMultiphaseBase::resetStateToBeginningOfStep( DomainPartition &

// update porosity, permeability
updatePorosityAndPermeability( subRegion );
// discard any warm-started state held by the fluid model (e.g. K-values
// used to seed the flash) so the rolled-back step does not inherit
// iterate-dependent state from the failed Newton attempt.
{
string const & fluidName = subRegion.template getReference< string >( viewKeyStruct::fluidNamesString() );
MultiFluidBase const & fluid = getConstitutiveModel< MultiFluidBase >( subRegion, fluidName );
fluid.initializeState();
}
// update all fluid properties
updateFluidState( subRegion );
// for thermal simulations, update solid internal energy
Expand Down
Loading