diff options
author | schnetter <> | 2004-04-18 11:29:00 +0000 |
---|---|---|
committer | schnetter <> | 2004-04-18 11:29:00 +0000 |
commit | 0bbc471d8c5ccfaa55a6ef68073a1a66e35d5a23 (patch) | |
tree | 601f8a3509c6af7fb2720bfc4a95f87726dd69b7 /Carpet/Carpet/src/Evolve.cc | |
parent | dff0758214da7a2ca77e25695c5ed3e5395eff55 (diff) |
Remove the parameters Carpet::prolongate_initial_data; this is now
Remove the parameters Carpet::prolongate_initial_data; this is now
always done.
Remove arguments initialise_from and do_prolongate from Regrid().
Regridding is now done in level mode instead of meta mode.
Furthermore, CarpetRegrid is called in singlemape mode.
darcs-hash:20040418112943-07bb3-2e392df1737ab75f3f0d553bb53bde2ed41f8773.gz
Diffstat (limited to 'Carpet/Carpet/src/Evolve.cc')
-rw-r--r-- | Carpet/Carpet/src/Evolve.cc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc index 24cf051a7..de7e35cbe 100644 --- a/Carpet/Carpet/src/Evolve.cc +++ b/Carpet/Carpet/src/Evolve.cc @@ -31,7 +31,7 @@ #include "carpet.hh" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Evolve.cc,v 1.42 2004/03/23 19:41:11 schnetter Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Evolve.cc,v 1.44 2004/04/18 13:29:43 schnetter Exp $"; CCTK_FILEVERSION(Carpet_Carpet_Evolve_cc); } @@ -134,11 +134,18 @@ namespace Carpet { for (int rl=0; rl<reflevels; ++rl) { const int do_every = maxreflevelfact / ipow(reffact, rl); if (cgh->cctk_iteration % do_every == 0) { - - Checkpoint ("Regrid"); - Regrid (cgh, rl, rl+1, true); - - } + { + const int ml=0; + enter_global_mode (cgh, ml); + enter_level_mode (cgh, rl); + + Checkpoint ("Regrid"); + Regrid (cgh); + + leave_level_mode (cgh); + leave_global_mode (cgh); + } // ml + } // if do_every } // for rl @@ -286,11 +293,11 @@ namespace Carpet { // Analysis Checkpoint ("Scheduling ANALYSIS"); CCTK_ScheduleTraverse ("CCTK_ANALYSIS", cgh, CallFunction); - + // Output Checkpoint ("OutputGH"); CCTK_OutputGH (cgh); - + // Checking CheckChecksums (cgh, alltimes); |