From a6ed655338e2a729ec8eabdfc7f5869eb444f2a7 Mon Sep 17 00:00:00 2001 From: allen Date: Thu, 16 May 2002 16:00:16 +0000 Subject: 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 --- src/Startup.c | 12 ++++++------ 1 file 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"); } -- cgit v1.2.3