Skip to content

Commit

Permalink
CarpetX: print min and max norm on stdout
Browse files Browse the repository at this point in the history
The min and max is printed every time out_norm is called. Min/max printed for all variables listed in 'out_norm_vars'
  • Loading branch information
shankar-1729 committed Apr 26, 2024
1 parent 7b621fc commit 9ccdefb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CarpetX/src/io_norm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ void OutputNorms(const cGH *restrict cctkGH) {
for (int d = 0; d < dim; ++d)
file << sep << red.maxloc[d];
}

printf("Output norm %s: min = %15.6e, max = %15.6e\n", CCTK_FullVarName(groupdata.firstvarindex + vi), red.min, red.max);


}
}

Expand Down

0 comments on commit 9ccdefb

Please sign in to comment.