releasedExamples/AMRGodunov/srcPolytropic/PolytropicPhysics.cpp
// Compute the primitive variables from the conserved variables
Compute the primitive variables from the conserved variables
Compute the primitive variables from the conserved variables
void PolytropicPhysics::consToPrim(FArrayBox&       a_W,
                                   const FArrayBox& a_U,
                                   const Box&       a_box)
{
  CH_assert(isDefined());
  CH_assert(a_U.box().contains(a_box));
  CH_assert(a_W.box().contains(a_box));
  FORT_CONSTOPRIMF(CHF_FRA(a_W),
                   CHF_CONST_FRA(a_U),
                   CHF_BOX(a_box));
}
void PolytropicPhysics :: consToPrim ( FArrayBox & a_W , const FArrayBox & a_U , const Box & a_box ) { CH_assert ( isDefined ( ) ) ; CH_assert ( a_U . box ( ) . contains ( a_box ) ) ; CH_assert ( a_W . box ( ) . contains ( a_box ) ) ; FORT_CONSTOPRIMF ( CHF_FRA ( a_W ) , CHF_CONST_FRA ( a_U ) , CHF_BOX ( a_box ) ) ; }
Compute the primitive variables from the conserved variables
Compute the primitive variables from the conserved variables