releasedExamples/AMRGodunov/srcPolytropic/PolytropicPhysics.cpp
// Interval within the primitive variables corresponding to the velocities
Interval within the primitive variables corresponding to the velocities
Interval within the primitive variables corresponding to the velocities
Interval PolytropicPhysics::velocityInterval()
{
  CH_assert(isDefined());
#if CH_SPACEDIM==1
  Interval retval(WVELX,WVELX);
#elif CH_SPACEDIM==2
  Interval retval(WVELX,WVELY);
#elif CH_SPACEDIM==3
  Interval retval(WVELX,WVELZ);
#else
  Interval retval(WRHO+1, WPRES-1);
#endif
  return retval;
}
Interval PolytropicPhysics :: velocityInterval ( ) { CH_assert ( isDefined ( ) ) ; #if CH_SPACEDIM == 1 Interval retval ( WVELX , WVELX ) ; #elif CH_SPACEDIM == 2 Interval retval ( WVELX , WVELY ) ; #elif CH_SPACEDIM == 3 Interval retval ( WVELX , WVELZ ) ; #else Interval retval ( WRHO + 1 , WPRES - 1 ) ; #endif return retval ; }
Interval within the primitive variables corresponding to the velocities
Interval within the primitive variables corresponding to the velocities
// bogus_spacedim();