aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@732e31d2-b375-409b-9bd3-699c3b2c9da5>2007-03-02 03:45:17 +0000
committerschnetter <schnetter@732e31d2-b375-409b-9bd3-699c3b2c9da5>2007-03-02 03:45:17 +0000
commitc93da26c550147a572395d6d349227b9b386e362 (patch)
tree64b8fd53ff1e1eed92a2b8f366857cdc14b85fe5 /src
parentd9f78603f3f75eebc2227c174ca51eae07ddcf42 (diff)
Add a grid scalar to indicate success or failure of the self tests.
Add a test cases running the self test and using this variable as indicator. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SlabTest/trunk@10 732e31d2-b375-409b-9bd3-699c3b2c9da5
Diffstat (limited to 'src')
-rw-r--r--src/slabtest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slabtest.c b/src/slabtest.c
index da2c3d4..e120fcb 100644
--- a/src/slabtest.c
+++ b/src/slabtest.c
@@ -42,7 +42,7 @@ runtest (CCTK_ARGUMENTS,
printf
("Mismatch at [%d,%d,%d]: should be %g, is %g\n",
cctk_lbnd[0] + i, cctk_lbnd[1] + j, cctk_lbnd[2] + k,
- gfz[ind], gfy[ind]);
+ (double) gfz[ind], (double) gfy[ind]);
mismatch = 1;
}
}
@@ -348,4 +348,8 @@ void SlabTest_Test (CCTK_ARGUMENTS)
/* TODO: strides, into array, out of array */
+
+
+
+ * success = 1;
}