diff options
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Output.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index 8f5601dce..e3bc38873 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -597,6 +597,12 @@ static int TimeToOutput (const cGH* const cctkGH, const int vindex) return (0); } + // check whether this refinement level should be output + if (! (myGH->requests[vindex]->refinement_levels & (1 << reflevel))) + { + return (0); + } + // check if output for this variable was requested individually // by a "<varname>{ out_every = <number> }" option string // this will overwrite the output criterion setting |