diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2004-10-04 13:04:48 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2004-10-04 13:04:48 +0000 |
commit | 4ccf84306bcd1990af9b41916d9289f642b9375e (patch) | |
tree | 9a78472658d3fbc2cd41c10ecec3103054cb954f /src | |
parent | 2d0243f9b963027c3a0e810debcdf8fc3a25052b (diff) |
print_unknown_gridfn():
add an "origin" comment to the output file
to match Erik's branch
--> helps with visualization, we hope
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1385 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r-- | src/patch/patch_system.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/patch/patch_system.cc b/src/patch/patch_system.cc index 78c958f..8396911 100644 --- a/src/patch/patch_system.cc +++ b/src/patch/patch_system.cc @@ -1997,6 +1997,8 @@ if (output_fp == NULL) output_file_name); /*NOTREACHED*/ fprintf(output_fp, "# N_patches = %d\n", N_patches()); +fprintf(output_fp, "# origin = %.15g %.15g %.15g\n", + double(origin_x()), double(origin_y()), double(origin_z())); fprintf(output_fp, "\n"); for (int pn = 0 ; pn < N_patches() ; ++pn) |