diff options
author | schnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2008-03-05 01:57:14 +0000 |
---|---|---|
committer | schnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2008-03-05 01:57:14 +0000 |
commit | 20123e142659c01c6d51f4dd8b6b90e0b4f5ee52 (patch) | |
tree | ee2b65c80303a461e535b4f4dcfc1099e10f1ba8 /schedule.ccl | |
parent | 22d4c8991114cd482907db146d40d0dba4f4cd2e (diff) |
Implement new keyword parameter CartGrid3D::set_coordinate_ranges_on,
which has the possible values "all grids", "all maps", or "first
level". "all grids" is the default, "all maps" is for multi-patch
simulations, and "first level" is for mesh refinement environments
where the coarsest grid may not actually exist, such as e.g. in
Paramesh.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@239 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/schedule.ccl b/schedule.ccl index a0e2840..4d543d4 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -25,10 +25,29 @@ schedule ParamCheck_CartGrid3D at CCTK_PARAMCHECK LANG:C } "Check coordinates for CartGrid3D" -schedule CartGrid3D_SetRanges at CCTK_BASEGRID before SpatialCoordinates +if (CCTK_EQUALS (set_coordinate_ranges_on, "all grids")) { - LANG:C -} "Set up ranges for spatial 3D Cartesian coordinates" + schedule CartGrid3D_SetRanges at CCTK_BASEGRID before SpatialCoordinates + { + LANG:C + } "Set up ranges for spatial 3D Cartesian coordinates (on all grids)" +} +else if (CCTK_EQUALS (set_coordinate_ranges_on, "all maps")) +{ + schedule CartGrid3D_SetRanges at CCTK_BASEGRID before SpatialCoordinates + { + LANG:C + OPTIONS: singlemap + } "Set up ranges for spatial 3D Cartesian coordinates (on all maps)" +} +else if (CCTK_EQUALS (set_coordinate_ranges_on, "first level")) +{ + schedule CartGrid3D_SetRanges at CCTK_BASEGRID before SpatialCoordinates + { + LANG:C + OPTIONS: level + } "Set up ranges for spatial 3D Cartesian coordinates (on first level)" +} schedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_BASEGRID { |