diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-06-11 11:25:43 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:25 +0100 |
commit | 9e1aef72fb3e82ec80bb0757e5364cbd5818181f (patch) | |
tree | 70791970968ee1f8fc595c4304f872252bf52ad7 /Carpet | |
parent | c2a8823dcc315814d90705b8839b4b2c3374c4dd (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.
Diffstat (limited to 'Carpet')
-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 |