diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-06-11 11:25:43 -0700 |
---|---|---|
committer | Roland Haas <rhaas@caltech.edu> | 2012-06-11 11:25:43 -0700 |
commit | 9fd7f6124c1d4f8f7de0040db10dc8c33290536e (patch) | |
tree | 070e39b2b20f6a9389c8540a27ec43973021953f | |
parent | f4c3c284187fc652d426bb9d3fe37612b974c53e (diff) |
Carpet: output grid structures to file in Initialize instead of in SetupGH
This is so that IOUtils has had time to initialize itself and we can query
IO_TruncateOutputFiles with confidence.
-rw-r--r-- | Carpet/Carpet/src/Initialise.cc | 2 | ||||
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/Initialise.cc b/Carpet/Carpet/src/Initialise.cc index a6524ca2e..4d90a6325 100644 --- a/Carpet/Carpet/src/Initialise.cc +++ b/Carpet/Carpet/src/Initialise.cc @@ -99,13 +99,11 @@ namespace Carpet { CCTKi_InitGHExtensions (cctkGH); -#if 0 // Write grid structure to file for (int m=0; m<maps; ++m) { OutputGridStructure (cctkGH, m, vhh.AT(m)->regions); OutputGridCoordinates (cctkGH, m, vhh.AT(m)->regions); } // for m -#endif CallSetup (cctkGH); diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index c4515edb0..36e7d97cb 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -909,10 +909,9 @@ namespace Carpet { vhh.AT(m)->recompose (rl, false); vhh.AT(m)->regrid_free (false); - // Output grid structure + // Output grid structure to screen but not to files since + // IO_TruncateFiles might not be present yet OutputGrids (cctkGH, m, * vhh.AT(m), * vdd.AT(m)); - OutputGridStructure (cctkGH, m, regssss.AT(m)); - OutputGridCoordinates (cctkGH, m, regssss.AT(m)); } // for m |