diff options
author | miguel <miguel@edbb7e70-9571-45d5-a481-0a560a9b4751> | 2000-11-16 14:03:27 +0000 |
---|---|---|
committer | miguel <miguel@edbb7e70-9571-45d5-a481-0a560a9b4751> | 2000-11-16 14:03:27 +0000 |
commit | a6fc684d4384ffdb01e0b2085513b72330ef8da1 (patch) | |
tree | 57f689a5344bdc60fe1364472a7707cb9a59879a | |
parent | 7583e18909d7e3226017227729fb063b12dcf8ad (diff) |
Moving static and geodesic slicings to Einstein.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/CoordGauge/trunk@31 edbb7e70-9571-45d5-a481-0a560a9b4751
-rw-r--r-- | src/Slicing.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Slicing.c b/src/Slicing.c index e7d1352..720f4a0 100644 --- a/src/Slicing.c +++ b/src/Slicing.c @@ -224,6 +224,7 @@ void Einstein_ActivateSlicing(cGH *GH) CCTK_INT *active_slicing_handle; int handle, priority, i, ierr; + int handle2; char *err, *split_string; char *item=NULL, *after=NULL; @@ -245,6 +246,16 @@ void Einstein_ActivateSlicing(cGH *GH) if (CCTK_Equals(slicing,"none")) { CCTK_WARN(2,"No slicing set. Prob. fatal when you enter evolution loop (itlast>0).\n"); + } + else if (CCTK_Equals(slicing,"static")) + { + handle2=Einstein_RegisterSlicing("static"); + if (handle2<0) CCTK_WARN(1,"Cannot register static slicing"); + } + else if (CCTK_Equals(slicing,"geodesic")) + { + handle2=Einstein_RegisterSlicing("geodesic"); + if (handle2<0) CCTK_WARN(1,"Cannot register geodesic slicing"); } else { @@ -257,7 +268,6 @@ void Einstein_ActivateSlicing(cGH *GH) CCTK_WARN(1,err); if (err) free(err); } - return; } |