aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/NaNCheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/NaNCheck.c b/src/NaNCheck.c
index 988b2c7..eb64862 100644
--- a/src/NaNCheck.c
+++ b/src/NaNCheck.c
@@ -307,7 +307,7 @@ static void NaNCheck (int vindex, const char *optstring, void *_GH)
if (fp_type)
{
- gindex = CCTK_GroupTypeFromVarI (vindex);
+ gindex = CCTK_GroupIndexFromVarI (vindex);
/* check if variable has storage assigned */
if (CCTK_QueryGroupStorageI (GH, gindex))
@@ -315,7 +315,7 @@ static void NaNCheck (int vindex, const char *optstring, void *_GH)
/* get the number of elements to check for this variable */
nelems = 1;
gdata.dim = 0;
- if (CCTK_GroupTypeFromVarI (vindex) != CCTK_SCALAR)
+ if (CCTK_GroupTypeI (vindex) != CCTK_SCALAR)
{
CCTK_GroupDynamicData (GH, gindex, &gdata);
for (i = 0; i < gdata.dim; i++)
@@ -334,7 +334,7 @@ static void NaNCheck (int vindex, const char *optstring, void *_GH)
data = CCTK_VarDataPtrI (GH, CCTK_NumTimeLevelsFromVarI(vindex)-1,vindex);
/* do the checking according to the variable's type */
- if (vtype == CCTK_VARIABLE_REAL || CCTK_VARIABLE_COMPLEX)
+ if (vtype == CCTK_VARIABLE_REAL || CCTK_VARIABLE_COMPLEX)
{
CHECK_DATA (CCTK_REAL);
}