diff options
Diffstat (limited to 'src/Boundary.c')
-rw-r--r-- | src/Boundary.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Boundary.c b/src/Boundary.c index ebfdd26..48b6191 100644 --- a/src/Boundary.c +++ b/src/Boundary.c @@ -722,7 +722,8 @@ CCTK_INT Bdry_Boundary_SelectGroupForBCI(CCTK_POINTER GH, @endvar @returntype CCTK_INT @returndesc - number of variables selected for bc_name + -1 no boundary condition registered under bc_name + number of variables selected for bc_name @endreturndesc @@*/ CCTK_INT Bdry_Boundary_SelectedGVs(CCTK_POINTER GH, @@ -782,12 +783,13 @@ CCTK_INT Bdry_Boundary_SelectedGVs(CCTK_POINTER GH, } } - /* Do we want to return an error code if an 'invalid' bc_name is used? */ - if (!current) + /* Warn is there is no bc registered under this name */ + if (!Util_TableQueryValueInfo(physbc_table_handle, NULL, NULL, bc_name)) { - CCTK_VWarn(2, __LINE__, __FILE__, CCTK_THORNSTRING, - "No variables are marked for boundary condition %s", bc_name); - /*retval = -1;*/ + CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, + "There is no boundary condition registered under the name %s", + bc_name); + retval = -1; } return retval; @@ -1012,8 +1014,8 @@ static int entry_greater_than(struct BCVAR *new, struct BCVAR *current) } else { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, - "%s has already been selected for an alternate boundary " - "condition", CCTK_VarName(new->var)); + "%s has already been selected for this boundary condition!", + CCTK_VarName(new->var)); retval = -1; } |