From 4ccf84306bcd1990af9b41916d9289f642b9375e Mon Sep 17 00:00:00 2001 From: jthorn Date: Mon, 4 Oct 2004 13:04:48 +0000 Subject: 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 --- src/patch/patch_system.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) -- cgit v1.2.3