summaryrefslogtreecommitdiff
path: root/src/comm
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-17 20:42:22 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-17 20:42:22 +0000
commitda8d92e549832c1b8d8664e8b19c5bc7dc324972 (patch)
treeb82298da61a2525fc0bf1009c1546c77bcee3701 /src/comm
parenta025121fc53cfc3e658744c5625cf541aacb8a91 (diff)
Return different error codes for different errors.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2026 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm')
-rw-r--r--src/comm/Interp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comm/Interp.c b/src/comm/Interp.c
index fab4c5ed..fa82eafb 100644
--- a/src/comm/Interp.c
+++ b/src/comm/Interp.c
@@ -152,7 +152,7 @@ int CCTK_InterpRegisterOperatorGV (cInterpOperatorGV operator_GV,
{
CCTK_Warn (1, __LINE__, __FILE__, "Cactus",
"Couldn't allocate interpolation operator handle");
- handle = -1;
+ handle = -2;
}
}
else if (operator->interp_operator_GV == NULL)
@@ -165,7 +165,7 @@ int CCTK_InterpRegisterOperatorGV (cInterpOperatorGV operator_GV,
CCTK_VWarn (1, __LINE__, __FILE__, "Cactus",
"Interpolation operator '%s' already exists",
name);
- handle = -1;
+ handle = -3;
}
}
@@ -235,7 +235,7 @@ int CCTK_InterpRegisterOperatorLocal (cInterpOperatorLocal operator_local,
{
CCTK_Warn (1, __LINE__, __FILE__, "Cactus",
"Couldn't allocate interpolation operator handle");
- handle = -1;
+ handle = -2;
}
}
else if (operator->interp_operator_local == NULL)
@@ -248,7 +248,7 @@ int CCTK_InterpRegisterOperatorLocal (cInterpOperatorLocal operator_local,
CCTK_VWarn (1, __LINE__, __FILE__, "Cactus",
"Interpolation operator '%s' already exists",
name);
- handle = -1;
+ handle = -3;
}
}