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