aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlanfer <lanfer@edbb7e70-9571-45d5-a481-0a560a9b4751>1999-09-24 14:56:32 +0000
committerlanfer <lanfer@edbb7e70-9571-45d5-a481-0a560a9b4751>1999-09-24 14:56:32 +0000
commit3e223f845998939030f895a25b9db090f626cd4b (patch)
treeb51f1a31579392922356bdb7c528021349b01856 /src
parent7379597d67edd0a4abd8721429792c1f5a9cb1d1 (diff)
slicing = none results in lvl 2 waring, since you might want to do ID only. everything else unregistered is treated as lvl 1
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/CoordGauge/trunk@11 edbb7e70-9571-45d5-a481-0a560a9b4751
Diffstat (limited to 'src')
-rw-r--r--src/Slicing.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/Slicing.c b/src/Slicing.c
index 7359912..6227682 100644
--- a/src/Slicing.c
+++ b/src/Slicing.c
@@ -242,15 +242,22 @@ void Einstein_ActivateSlicing(cGH *GH) {
{
handle= Util_GetHandle(Eslicings,slicing,NULL);
- if (handle<0) {
- err = (char*)malloc(256*sizeof(char));
- sprintf(err,"%s%s%s%s",
- "WARNING: cannot get handle for slicing: >>",
- slicing,
- "<< \nTypo? Slicing registered by its provider ",
- "with Einstein_RegisterSlicing? \nProb. fatal when you continue to evolve.\n");
- CCTK_WARN(1,err);
- if (err) free(err);
+ if (handle<0) {
+
+ /* If slicing is set to "none", only warn level 2 (could be initial data only) */
+ if (CCTK_Equals(slicing,"none")) {
+ CCTK_WARN(2,"No slicing set. Prob. fatal when you continue to evolve.\n");
+ } else {
+ err = (char*)malloc(256*sizeof(char));
+ sprintf(err,"%s%s%s%s",
+ "WARNING: cannot get handle for slicing: >>",
+ slicing,
+ "<< \nTypo? Slicing registered by its provider ",
+ "with Einstein_RegisterSlicing? \nProb. fatal when you continue to evolve.\n");
+ CCTK_WARN(1,err);
+ if (err) free(err);
+ }
+
return;
}
@@ -274,6 +281,7 @@ void Einstein_ActivateSlicing(cGH *GH) {
{
/* for all slicings in the mix: e.g. mixed_slicing = "1+log maximal static"
1) get the handle for each slicing
+
2) set slicing->param_active, counting from 1 to n according to the
position. The higher the number the lower the priority (0=inactive!!)
*/