diff options
-rw-r--r-- | src/Slicing.c | 26 |
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!!) */ |