src/task_list/time_integrator.cpp
//----------------------------------------------------------------------------------------
// Functions to communicate conserved variables between MeshBlocks
Functions to communicate conserved variables between MeshBlocks
Functions to communicate conserved variables between MeshBlocks
enum TaskStatus TimeIntegratorTaskList::HydroSend(MeshBlock *pmb, int step)
{
  if(step == 1) {
    pmb->pbval->SendCellCenteredBoundaryBuffers(pmb->phydro->u1, HYDRO_CONS);
  } else if(step == 2) {
    pmb->pbval->SendCellCenteredBoundaryBuffers(pmb->phydro->u, HYDRO_CONS);
  } else {
    return TASK_FAIL;
  }
  return TASK_SUCCESS;
}
enum TaskStatus TimeIntegratorTaskList :: HydroSend ( MeshBlock * pmb , int step ) { if ( step == 1 ) { pmb -> pbval -> SendCellCenteredBoundaryBuffers ( pmb -> phydro -> u1 , HYDRO_CONS ) ; } else if ( step == 2 ) { pmb -> pbval -> SendCellCenteredBoundaryBuffers ( pmb -> phydro -> u , HYDRO_CONS ) ; } else { return TASK_FAIL ; } return TASK_SUCCESS ; }
Functions to communicate conserved variables between MeshBlocks
Functions to communicate conserved variables between MeshBlocks