![]() ![]() ![]() ![]() Next: Example for Scalar Output Up: Examples Previous: Examples Contents Example for Info OutputThe following parameter settings request info output for variables grid::r, wavetoy::phi (both are CCTK grid functions) and mythorn::complex (a complex CCTK scalar) at every other iteration.
The minimum and maximum of grid::r is printed according to the list
of default reductions for info output (parameter IOBasic::outInfo_reductions). This list is overridden for wavetoy::phi where only the L2 norm
is output as specified in the option string for this variable. You can also
add other reduction operators within the For the scalar variable mythorn::complex both the real and imaginary part are printed. IOBasic::outInfo_every = 2 IOBasic::outInfo_vars = "grid::r wavetoy::phi{reductions = 'norm2'} mythorn::complex" IOBasic::outInfo_reductions = "minimum maximum"The resulting screen output would look like this: --------------------------------------------------------------------------------------------- it | | GRID::r | WAVETOY::phi | MYTHORN::complex | | t | minimum | maximum | norm2 | real part | imag part | --------------------------------------------------------------------------------------------- 0 | 0.000 | 0.02986294 | 0.86602540 | 0.04217014 | 6.90359593 | 0.00000000 | 2 | 0.034 | 0.02986294 | 0.86602540 | 0.00934749 | 6.90359593 | 0.00000000 | 4 | 0.069 | 0.02986294 | 0.86602540 | 0.02989811 | 6.90359593 | 0.00000000 | 6 | 0.103 | 0.02986294 | 0.86602540 | 0.05899959 | 6.90359593 | 0.00000000 | 8 | 0.138 | 0.02986294 | 0.86602540 | 0.07351147 | 6.90359593 | 0.00000000 | 10 | 0.172 | 0.02986294 | 0.86602540 | 0.07781795 | 6.90359593 | 0.00000000 | |