From 54b313aa1e685327a397e32792a2570402ea004a Mon Sep 17 00:00:00 2001 From: jthorn Date: Wed, 17 Apr 2002 17:28:46 +0000 Subject: test patch_system::read_ghosted_gridfn() --> now works! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@536 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- README | 5 ++--- param.ccl | 1 + src/patch/patch_system.hh | 1 + src/patch/test_patch_system.cc | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README b/README index 2488080..11ba877 100644 --- a/README +++ b/README @@ -56,7 +56,7 @@ Other Software Required these aren't already installed on your system, then you'll need C and Fortran compilers to compile them. * Most of this thorn's relativity code is machine-generated using Maple - (version 6), but you don't need Maple unless you want to modify the + (version 7), but you don't need Maple unless you want to modify the relativity code. @@ -65,5 +65,4 @@ Portability This thorn is known to compile and run successfully on the following systems: -* Red Hat GNU/Linux, gcc 2.95.3 -* Alpha OSF1 V4.0, gcc 2.95.3 +* Red Hat GNU/Linux, gcc/g++ version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) diff --git a/param.ccl b/param.ccl index 00c37ef..33cf114 100644 --- a/param.ccl +++ b/param.ccl @@ -75,6 +75,7 @@ string interpatch_interpolator_pars \ keyword which_test "which test should we do?" { "gridfn" :: "set up test fn(x,y,z), print it" +"read-gridfn" :: "read in ghosted test fn(x,y,z), print it" "synchronize" :: "set up test fn(x,y,z), synchronize it, print errors" "derivatives" :: "set up test fn(rho,sigma), take derivs, print errors" } "gridfn" diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh index c74294e..92da310 100644 --- a/src/patch/patch_system.hh +++ b/src/patch/patch_system.hh @@ -139,6 +139,7 @@ private: bool want_ghost_zones = true) const; +public: // read from a named file void read_gridfn(int gfn, const char input_file_name[]) { read_unknown_gridfn(false, gfn, input_file_name, false); } diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc index 8ed3fce..02138c6 100644 --- a/src/patch/test_patch_system.cc +++ b/src/patch/test_patch_system.cc @@ -169,6 +169,11 @@ if (STRING_EQUAL(which_test, "gridfn")) setup_sym_fn_xyz(ps, test_fn_gfn, true); ps.print_ghosted_gridfn(test_fn_gfn, "test_fn.dat"); } +else if (STRING_EQUAL(which_test, "read-gridfn")) + then { + ps.read_ghosted_gridfn(test_fn_gfn, "test_fn.dat"); + ps.print_ghosted_gridfn(test_fn_gfn, "test_fn2.dat"); + } else if (STRING_EQUAL(which_test, "synchronize")) then { setup_sym_fn_xyz(ps, test_fn_gfn, false); -- cgit v1.2.3