C.1 Codes

Below, we list some of the parameters defined above and means of obtaining their values from the mesh and field-variable methods

  1. boundary width : Mesh::getBoundaryWidth()
  2. stencil width (alternatively, width of the ghost-cell halo) : Mesh::getStecilWidth()
  3. size of the domain i.e Lx, Ly : Mesh::getDistances()
  4. resolution of the domain i.e. Nx, Ny : Mesh::getShape()
  5. lower bounding box corner of a patch : FieldVar::getLowerCorner()
  6. upper bounding box corner of a patch :FieldVar::getUpperCorner()
  7. shape of the array living on that patch : FieldVar::getShape()
  8. number of different field variables in that array : FieldVar::getNVars()
  9. the pointer to the data: FieldVar::get_data_raw(in int time, in int patchID, )

2010-08-11