releasedExamples/MultiDimPhase/advectSrc/PatchAdvection.cpp
// Update the conserved variable using fluxes and a scaling factor
Update the conserved variable using fluxes and a scaling factor
Update the conserved variable using fluxes and a scaling factor
void PatchAdvection::updateCons(FArrayBox&       a_U,
                                const FArrayBox& a_F,
                                const Real&      a_scale,
                                const int&       a_dir,
                                const Box&       a_box)
{
  CH_assert(isDefined());
  CH_assert (cellVelPtr() != NULL);
  const FArrayBox& cellVel = *cellVelPtr();
  CH_assert (cellVel.box().contains(a_box));
  FORT_UPDATECONSADF(CHF_FRA(a_U),
                     CHF_CONST_FRA(a_F),
                     CHF_CONST_FRA(cellVel),
                     CHF_CONST_REAL(a_scale),
                     CHF_CONST_INT(a_dir),
                     CHF_BOX(a_box));
}
void PatchAdvection :: updateCons ( FArrayBox & a_U , const FArrayBox & a_F , const Real & a_scale , const int & a_dir , const Box & a_box ) { CH_assert ( isDefined ( ) ) ; CH_assert ( cellVelPtr ( ) != NULL ) ; const FArrayBox & cellVel = * cellVelPtr ( ) ; CH_assert ( cellVel . box ( ) . contains ( a_box ) ) ; FORT_UPDATECONSADF ( CHF_FRA ( a_U ) , CHF_CONST_FRA ( a_F ) , CHF_CONST_FRA ( cellVel ) , CHF_CONST_REAL ( a_scale ) , CHF_CONST_INT ( a_dir ) , CHF_BOX ( a_box ) ) ; }
Update the conserved variable using fluxes and a scaling factor
Update the conserved variable using fluxes and a scaling factor