diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-17 17:28:46 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-17 17:28:46 +0000 |
commit | 54b313aa1e685327a397e32792a2570402ea004a (patch) | |
tree | ec2b3588548f591d6adc968d32b0934875b719aa /src/patch | |
parent | 2d32068b90a99ecedc4ce71e7056a7b352102622 (diff) |
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
Diffstat (limited to 'src/patch')
-rw-r--r-- | src/patch/patch_system.hh | 1 | ||||
-rw-r--r-- | src/patch/test_patch_system.cc | 5 |
2 files changed, 6 insertions, 0 deletions
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); |