From 9fd7f6124c1d4f8f7de0040db10dc8c33290536e Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Mon, 11 Jun 2012 11:25:43 -0700 Subject: 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. --- Carpet/Carpet/src/Initialise.cc | 2 -- 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; mregions); 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 -- cgit v1.2.3