aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@6a38eb6e-646e-4a02-a296-d141613ad6c4>2002-03-27 18:01:23 +0000
committertradke <tradke@6a38eb6e-646e-4a02-a296-d141613ad6c4>2002-03-27 18:01:23 +0000
commitca4b74563643f9e45fc9a2b16bf2dc30616b4830 (patch)
tree33050094821719816b4d693b7fd39cf460bdb314
parentc399580493b2000c248e0d1827a355b29166780f (diff)
Added missing return code. This closes PR CactusBase/957.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@171 6a38eb6e-646e-4a02-a296-d141613ad6c4
-rw-r--r--src/StaticBoundary.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/StaticBoundary.c b/src/StaticBoundary.c
index b6a139c..873bbc7 100644
--- a/src/StaticBoundary.c
+++ b/src/StaticBoundary.c
@@ -269,7 +269,7 @@ int BndStaticDirGI (const cGH *GH,
if (first_vi >= 0)
{
retval = ApplyBndStatic (GH, stencil_size, NULL, dir, first_vi,
- CCTK_NumVarsInGroupI (gi));
+ CCTK_NumVarsInGroupI (gi));
}
else
{
@@ -325,8 +325,8 @@ void CCTK_FCALL CCTK_FNAME (BndStaticDirGI)
@endreturndesc
@@*/
int BndStaticGI (const cGH *GH,
- const int *stencil,
- int gi)
+ const int *stencil,
+ int gi)
{
int first_vi, retval;
@@ -467,8 +467,8 @@ void CCTK_FCALL CCTK_FNAME (BndStaticDirGN)
@endreturndesc
@@*/
int BndStaticGN (const cGH *GH,
- const int *stencil,
- const char *gname)
+ const int *stencil,
+ const char *gname)
{
int gi, num_groups, retval;
@@ -542,9 +542,9 @@ void CCTK_FCALL CCTK_FNAME (BndStaticGN)
@endreturndesc
@@*/
int BndStaticDirVN (const cGH *GH,
- int stencil_size,
- int dir,
- const char *vname)
+ int stencil_size,
+ int dir,
+ const char *vname)
{
int vi, num_vars, retval;
@@ -612,8 +612,8 @@ void CCTK_FCALL CCTK_FNAME (BndStaticDirVN)
@endreturndesc
@@*/
int BndStaticVN (const cGH *GH,
- const int *stencil,
- const char *vname)
+ const int *stencil,
+ const char *vname)
{
int vi, num_vars, retval;
@@ -771,6 +771,7 @@ void CCTK_FCALL CCTK_FNAME (BndStaticVN)
-1 if dimension is not supported
-2 if direction parameter is invalid
-3 if stencil width array parameter is NULL
+ -4 if there is only one timelevel
@endreturndesc
@@*/
static int ApplyBndStatic (const cGH *GH,
@@ -790,7 +791,7 @@ static int ApplyBndStatic (const cGH *GH,
/* Only apply boundary condition if more than one timelevel */
if (CCTK_NumTimeLevelsFromVarI(first_var) == 1)
{
- return;
+ return (-4);
}
/* get the group index of the target variable */