releasedExamples/MultiDimPhase/advectSrc/OldPatchGodunov.cpp
// Generate default names for the conserved variables, "variable#"
Generate default names for the conserved variables, "variable#"
Generate default names for the conserved variables " variable# "
Vector<string> OldPatchGodunov::stateNames()
{
  Vector<string> retval;
  int cnum = numConserved();
  for (int ivar = 0; ivar < cnum; ivar++)
  {
    char varNameChar[80];
    sprintf(varNameChar,"variable%d",ivar);
    retval.push_back(string(varNameChar));
  }
  return retval;
}
Vector < string > OldPatchGodunov :: stateNames ( ) { Vector < string > retval ; int cnum = numConserved ( ) ; for ( int ivar = 0 ; ivar < cnum ; ivar ++ ) { char varNameChar [ 80 ] ; sprintf ( varNameChar , " " , ivar ) ; retval . push_back ( string ( varNameChar ) ) ; } return retval ; }
Generate default names for the conserved variables, "variable#"
Generate default names for the conserved variables " variable# "