aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetRegrid/src/regrid.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetRegrid/src/regrid.cc b/Carpet/CarpetRegrid/src/regrid.cc
index b2b91709c..7ab7d85c7 100644
--- a/Carpet/CarpetRegrid/src/regrid.cc
+++ b/Carpet/CarpetRegrid/src/regrid.cc
@@ -53,7 +53,8 @@ namespace CarpetRegrid {
// Return if we want to regrid regularly, but not at this time
if (regrid_every > 0 and cctkGH->cctk_iteration != 0
- and (cctkGH->cctk_iteration-1) % regrid_every != 0)
+ and ( (cctkGH->cctk_iteration-1) % regrid_every != 0) or
+ ( (cctkGH->cctk_iteration-1) == 0 and regrid_every > 1 ))
{
return 0;
}