src/SPH/SPHHydroBaseGSRZ.cc
//------------------------------------------------------------------------------
// Register the state we need/are going to evolve.
//------------------------------------------------------------------------------
Register the state we need/are going to evolve.
Register the state we need / are going to evolve .
void
SPHHydroBaseGSRZ::
registerState(DataBase<Dim<2> >& dataBase,
              State<Dim<2> >& state) {
  typedef State<Dimension>::PolicyPointer PolicyPointer;
  SPHHydroBase<Dim<2> >::registerState(dataBase, state);
  if (mCompatibleEnergyEvolution) {
    FieldList<Dimension, Scalar> specificThermalEnergy = dataBase.fluidSpecificThermalEnergy();
    PolicyPointer thermalEnergyPolicy(new RZNonSymmetricSpecificThermalEnergyPolicy(dataBase));
    state.enroll(specificThermalEnergy, thermalEnergyPolicy);
  }
}
void SPHHydroBaseGSRZ :: registerState ( DataBase < Dim < 2 > > & dataBase , State < Dim < 2 > > & state ) { typedef State < Dimension > :: PolicyPointer PolicyPointer ; SPHHydroBase < Dim < 2 > > :: registerState ( dataBase , state ) ; if ( mCompatibleEnergyEvolution ) { FieldList < Dimension , Scalar > specificThermalEnergy = dataBase . fluidSpecificThermalEnergy ( ) ; PolicyPointer thermalEnergyPolicy ( new RZNonSymmetricSpecificThermalEnergyPolicy ( dataBase ) ) ; state . enroll ( specificThermalEnergy , thermalEnergyPolicy ) ; } }
Register the state we need/are going to evolve.
Register the state we need / are going to evolve .
// The base class does most of it. // Are we using the compatible energy evolution scheme? // If so we need to override the ordinary energy registration with a specialized version.