Skip to content

Commit

Permalink
Docs: Update info on print_state to include ng (AMReX-Codes#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet authored Jan 24, 2022
1 parent 3a2a74f commit 874ccc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Docs/sphinx_documentation/source/Debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ in ``AMReX_VisMF.H`` and examining it with ``Amrvis`` (section

::

void print_state(const MultiFab& mf, const IntVect& cell, const int n=-1);
void print_state(const MultiFab& mf, const IntVect& cell, const int n=-1,
const IntVect& ng = IntVect::TheZeroVector());

can output the data for a single cell.
can output the data for a single cell. ``n`` is the component, with the default being
to print all components. ``ng`` is the number of ghost cells to include.

Valgrind is one of our favorite debugging tools. For MPI runs, one can
tell Valgrind to output to different files for different processes.
Expand Down

0 comments on commit 874ccc6

Please sign in to comment.