diff options
author | knarf <knarf@cct.lsu.edu> | 2010-08-25 18:29:48 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:22:58 +0000 |
commit | 3fb5bf288642e3843e325d6c0db0f8aee9e28ea3 (patch) | |
tree | 1274061aa34efdd0669aa56f0b81870258135f2f /Carpet/Carpet | |
parent | c32dbb311cd8e19338235e7eecb0c64844852d3e (diff) |
implement unusedpoints_mask
Diffstat (limited to 'Carpet/Carpet')
-rw-r--r-- | Carpet/Carpet/interface.ccl | 2 | ||||
-rw-r--r-- | Carpet/Carpet/param.ccl | 6 | ||||
-rw-r--r-- | Carpet/Carpet/schedule.ccl | 15 | ||||
-rw-r--r-- | Carpet/Carpet/src/carpet.hh | 1 | ||||
-rw-r--r-- | Carpet/Carpet/src/functions.hh | 2 | ||||
-rw-r--r-- | Carpet/Carpet/src/make.code.defn | 1 |
6 files changed, 26 insertions, 1 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl index 023b65ff7..3dad22724 100644 --- a/Carpet/Carpet/interface.ccl +++ b/Carpet/Carpet/interface.ccl @@ -329,3 +329,5 @@ CCTK_REAL timing_levels TYPE=array DIM=1 SIZE=max_refinement_levels DISTRIB=cons { time_level time_level_count } "Per-level timing information" + +CCTK_INT carpet_unusedpoints_mask TYPE=GF tags='Prolongation="none"' "mask which is set !=0 for points which do not influence future evolution, assuming appropriate regridding" diff --git a/Carpet/Carpet/param.ccl b/Carpet/Carpet/param.ccl index ffeeaf63d..9be76541e 100644 --- a/Carpet/Carpet/param.ccl +++ b/Carpet/Carpet/param.ccl @@ -508,3 +508,9 @@ BOOLEAN init_3_timelevels "Set up 3 timelevels of initial data" STEERABLE=always BOOLEAN adaptive_stepsize "Allow adaptive timestep sizes" { } "no" + +BOOLEAN use_unusedpoints_mask "Turn on of off (default) storage and usage of 'unusedpoints_mask'" +{ + 0:* :: "Anything else than 0 turns unusedpoints_mask on" +} 0 + diff --git a/Carpet/Carpet/schedule.ccl b/Carpet/Carpet/schedule.ccl index 75d4097a5..b4f543e20 100644 --- a/Carpet/Carpet/schedule.ccl +++ b/Carpet/Carpet/schedule.ccl @@ -31,3 +31,18 @@ if (refine_timestep) OPTIONS: singlemap } "Correct time step size for spacing on finer grids" } + +if (use_unusedpoints_mask) +{ + storage: carpet_unusedpoints_mask + + schedule CarpetUnusedMask AT BASEGRID + { + LANG: C + } "Set mask of unused points" + + schedule CarpetUnusedMask AT POSTREGRID + { + LANG: C + } "Set mask of unused points" +} diff --git a/Carpet/Carpet/src/carpet.hh b/Carpet/Carpet/src/carpet.hh index 3ca8535fe..37003acd3 100644 --- a/Carpet/Carpet/src/carpet.hh +++ b/Carpet/Carpet/src/carpet.hh @@ -23,6 +23,7 @@ namespace Carpet { int CarpetMultiModelStartup (void); void CarpetParamCheck (CCTK_ARGUMENTS); void CarpetRefineTimeStep (CCTK_ARGUMENTS); + void CarpetUnusedMask (CCTK_ARGUMENTS); } // Registered functions diff --git a/Carpet/Carpet/src/functions.hh b/Carpet/Carpet/src/functions.hh index 5f1539a36..676abea57 100644 --- a/Carpet/Carpet/src/functions.hh +++ b/Carpet/Carpet/src/functions.hh @@ -190,7 +190,7 @@ namespace Carpet { CCTK_REAL messages, CCTK_REAL bytes); void UpdateTimingStats (cGH const * cctkGH); void PrintTimingStats (cGH const * cctkGH); - + } // namespace Carpet #endif // !defined(FUNCTIONS_HH) diff --git a/Carpet/Carpet/src/make.code.defn b/Carpet/Carpet/src/make.code.defn index 8edcaac69..c62b631a7 100644 --- a/Carpet/Carpet/src/make.code.defn +++ b/Carpet/Carpet/src/make.code.defn @@ -22,6 +22,7 @@ SRCS = CallFunction.cc \ Storage.cc \ Timers.cc \ Timing.cc \ + UnusedMask.cc \ helpers.cc \ modes.cc \ variables.cc |