next up previous contents
Next: Comments Up: Examples Previous: Example for Info Output   Contents

Example for Scalar Output

The following parameter settings request scalar output for all grid function variables in the group grid::coordinates and for the scalar variable grid::coarse_dx.
Output occurs every 10th iteration. gnuplot output style is selected for the ASCII files which are placed into a subdirectory scalar_output. The minimum and maximum of grid::r is printed according to the list of default reductions for scalar output (parameter IOBasic::outScalar_reductions). This list is overridden for wavetoy::phi where only the L1 norm is output as specified in the option string for this variable. You can also add other reduction operators within the $\{\}$ braces.

  IOBasic::outScalar_every      = 10
  IOBasic::outScalar_vars       = "grid::coordinates grid::coarse_dx wavetoy::phi{'norm1'}"
  IOBasic::outScalar_reductions = "minimum maximum"
  IOBasic::outScalar_style      = "gnuplot"
  IOBasic::out_dir              = "scalar_output"
This would create the following ASCII files:
  ~/Cactus/par> ls scalar_output
  coarse_dx.asc  r_minimum.asc  x_minimum.asc  y_minimum.asc  z_minimum.asc
  r_maximum.asc  x_maximum.asc  y_maximum.asc  z_maximum.asc  phi_norm1.asc