next up previous contents
Next: Periodic Boundary Conditions Up: PUGH Previous: Compilation   Contents

Grid Size

The number of grid points used for a simulation can be set in PUGH either globally (that is, the total number of points across all processors), or locally (that is, the number of points on each processor).

To set the global size of a N-D grid to be 40 grid points in each direction use

  PUGH::global_nsize = 40

To set the global size of a 2D grid to be $40\times 20$ use

  PUGH::global_nx = 40
  PUGH::global_ny = 20

To set the local size of a 2D grid to be $40\times 20$ on each processor, use

  PUGH::local_nx = 40
  PUGH::local_ny = 20