releasedExamples/MultiDimPhase/advectSrc/OldPatchGodunov.cpp
// Flag the use of artificial viscosity and set the coefficient
Flag the use of artificial viscosity and set the coefficient
Flag the use of artificial viscosity and set the coefficient
void OldPatchGodunov::setArtificialViscosity(bool a_useArtificialViscosity,
                                             Real a_artificialViscosity)
{
  CH_assert(!a_useArtificialViscosity || (a_artificialViscosity > 0.0));
  m_useArtificialViscosity = a_useArtificialViscosity;
  m_artificialViscosity = a_artificialViscosity;
  m_isArtViscSet = true;
}
void OldPatchGodunov :: setArtificialViscosity ( bool a_useArtificialViscosity , Real a_artificialViscosity ) { CH_assert ( ! a_useArtificialViscosity || ( a_artificialViscosity > 0.0 ) ) ; m_useArtificialViscosity = a_useArtificialViscosity ; m_artificialViscosity = a_artificialViscosity ; m_isArtViscSet = true ; }
Flag the use of artificial viscosity and set the coefficient
Flag the use of artificial viscosity and set the coefficient
// Artificial viscosity coefficient must be greater than zero // Store the artificial viscosity flag and coefficient