From 8469d6822f0a9f17ab5fedd2ad03daacee06f0a3 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 22 Nov 2005 19:30:00 +0000 Subject: CarpetIOASCII: Resolve conflict darcs-hash:20051122193018-dae7b-8693a980222066d6d7503dbe13e4145192f5d118.gz --- Carpet/CarpetIOASCII/src/ioascii.cc | 62 +++++++++++++++---------------------- 1 file changed, 25 insertions(+), 37 deletions(-) (limited to 'Carpet/CarpetIOASCII') diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index 49f130920..3641899dc 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -685,45 +685,33 @@ namespace CarpetIOASCII { #else char const * const run_user = getenv ("USER"); #endif - char run_date [1000]; - Util_CurrentDate (sizeof run_date, run_date); - char run_time [1000]; - Util_CurrentTime (sizeof run_time, run_time); - file << "# created on " << run_host - << " by " << run_user - << " on " << run_date - << " at " << run_time << endl; - } - if (want_parfilename) { - char parameter_filename [10000]; - CCTK_ParameterFilename (sizeof parameter_filename, parameter_filename); - file << "# parameter filename: \"" << parameter_filename << "\"" << endl; - } - if (want_other) { - if (CCTK_IsFunctionAliased ("UniqueSimulationID")) { - char const * const job_id - = (char const *) UniqueSimulationID (cctkGH); - file << "# Simulation ID: " << job_id << endl; - } - } - file << "#" << endl; - } - if (one_file_per_group) { - char* groupname = CCTK_GroupNameFromVarI(n); - file << "# " << groupname; - free (groupname); - } else { - file << "# " << varname; + char run_date [1000]; + Util_CurrentDate (sizeof run_date, run_date); + char run_time [1000]; + Util_CurrentTime (sizeof run_time, run_time); + file << "# created on " << run_host + << " by " << run_user + << " on " << run_date + << " at " << run_time << endl; + } + if (want_parfilename) { + char parameter_filename [10000]; + CCTK_ParameterFilename (sizeof parameter_filename, parameter_filename); + file << "# parameter filename: \"" << parameter_filename << "\"" << endl; + } + if (want_other) { + if (CCTK_IsFunctionAliased ("UniqueBuildID")) { + char const * const build_id + = (char const *) UniqueBuildID (cctkGH); + file << "# Build ID: " << build_id << endl; } - if (want_other) { - if (CCTK_IsFunctionAliased ("UniqueSimulationID")) { - char const * const job_id - = (char const *) UniqueSimulationID (cctkGH); - file << "# Simulation ID: " << job_id << endl; - } + if (CCTK_IsFunctionAliased ("UniqueSimulationID")) { + char const * const job_id + = (char const *) UniqueSimulationID (cctkGH); + file << "# Simulation ID: " << job_id << endl; } - file << "#" << endl; } + file << "#" << endl; if (one_file_per_group) { char* groupname = CCTK_GroupNameFromVarI(vindex); file << "# " << groupname; @@ -736,7 +724,7 @@ namespace CarpetIOASCII { } file << " (" << alias << ")" << endl; file << "#" << endl; - } + } // if is_new_file file << setprecision(out_precision); -- cgit v1.2.3