aboutsummaryrefslogtreecommitdiff
path: root/src/patch/test_patch_system.cc
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-09-14 19:15:10 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-09-14 19:15:10 +0000
commit3c7d944cded36487eb90e3361281c87d9949aa43 (patch)
tree55414709c97998eb9e39c53c7755084da7ff2bd1 /src/patch/test_patch_system.cc
parent2327cb0ef19e7016a421832c61439c10f75ce5fd (diff)
tweak logic for selecting which gridfn we want to print
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@339 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/test_patch_system.cc')
-rw-r--r--src/patch/test_patch_system.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc
index 5cc1eb1..9d8d220 100644
--- a/src/patch/test_patch_system.cc
+++ b/src/patch/test_patch_system.cc
@@ -190,12 +190,8 @@ if (! ( (sscanf(argv[2], "%d", &N_ghost_points) == 1)
enum {test_fn, test_ghost_zone, test_deriv} which_test;
int which_derivs;
-int gfn_to_print = gfn_error;
if (STRING_EQUAL(argv[6], "fn"))
- then {
- which_test = test_fn;
- gfn_to_print = gfn_fn;
- }
+ then which_test = test_fn;
else if (STRING_EQUAL(argv[6], "ghost-zone"))
then which_test = test_ghost_zone;
else if (STRING_EQUAL(argv[6], "deriv.fn"))
@@ -235,6 +231,7 @@ else if (STRING_EQUAL(argv[6], "deriv.all"))
}
else error_exit(ERROR_EXIT, "%s", help_msg); /*NOTREACHED*/
+int gfn_to_print = (which_test == test_fn) ? gfn_fn : gfn_error;
if (argc >= 8)
then {
if (STRING_EQUAL(argv[7], "fn"))