diff options
-rw-r--r-- | param.ccl | 4 | ||||
-rw-r--r-- | src/Startup.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -313,6 +313,10 @@ INT out_xyplane_zi "z-index (from 0) for 2D planes in xy, overrrides IO::out_xyp private: +BOOLEAN truncate_files "Truncate existing output files from previous runs (except when recovering) ?" STEERABLE = ALWAYS +{ +} "yes" + BOOLEAN truncate_files_after_recovering "Truncate existing output files after recovering ?" STEERABLE = RECOVER { } "no" diff --git a/src/Startup.c b/src/Startup.c index 4f70c4c..75890fe 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -175,7 +175,9 @@ CCTK_INT IOUtil_TruncateOutputFiles (const CCTK_POINTER_TO_CONST GH) return (-1); } - return (! myGH->recovered || truncate_files_after_recovering); + return (truncate_files || + truncate_files_after_recovering || + ! myGH->recovered); } |