diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Startup.c b/src/Startup.c index 2e86a42..7f4249d 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -121,13 +121,13 @@ void EllSOR_Register(CCTK_ARGUMENTS) /* Register boundaries which SOR can handle */ err = Ell_CreateKey(CCTK_VARIABLE_STRING,"EllLinFlat::Bnd::Robin"); - if (err != ELL_SUCCESS) + if (err == ELLCREATE_FAILED) { - CCTK_WARN(1, - "EllSOR_Register: Failed to create key EllLinFlat::Bnd::Robin"); + CCTK_VWarn(1,__LINE__,__FILE__,CCTK_THORNSTRING, + "EllSOR_Register: Failed to create key EllLinFlat::Bnd::Robin (Error %d)",err); } err = Ell_CreateKey(CCTK_VARIABLE_STRING,"EllLinFlat::Bnd::Const"); - if (err != ELL_SUCCESS) + if (err == ELLCREATE_FAILED) { CCTK_WARN(1, "EllSOR_Register: Failed to create key EllLinFlat::Bnd::Const"); @@ -135,14 +135,14 @@ void EllSOR_Register(CCTK_ARGUMENTS) /* Create a key for the maximum number of iterations allowed. */ err = Ell_CreateKey(CCTK_VARIABLE_INT, "Ell::SORmaxit"); - if (err != ELL_SUCCESS) + if (err == ELLCREATE_FAILED) { CCTK_WARN(0, "EllSOR_Register: Failed to create key Ell::SORmaxit"); } /* Create a key for the type of acceleration to be used. */ err = Ell_CreateKey(CCTK_VARIABLE_STRING, "Ell::SORaccel"); - if (err != ELL_SUCCESS) + if (err == ELLCREATE_FAILED) { CCTK_WARN(0, "EllSOR_Register: Failed to create key Ell::SORaccel"); } |