diff options
author | allen <allen@fa3da13c-9f13-4301-a575-cf5b8c5e1907> | 2002-05-16 16:00:16 +0000 |
---|---|---|
committer | allen <allen@fa3da13c-9f13-4301-a575-cf5b8c5e1907> | 2002-05-16 16:00:16 +0000 |
commit | a6ed655338e2a729ec8eabdfc7f5869eb444f2a7 (patch) | |
tree | d51fd16c90f482dacbfc3ffa21f8249d09fd89a2 | |
parent | 03e793ed612baf1d5ddb15fe83db444947d3cbd0 (diff) |
don't give warnings for keys which are already created
git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllSOR/trunk@80 fa3da13c-9f13-4301-a575-cf5b8c5e1907
-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"); } |