From 17d90ff9d56250586ff3153293ee640bff419e84 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sun, 3 Feb 2008 17:00:24 +0000 Subject: Output simulation id and run id to metadata storage git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@151 83718e91-0e4f-0410-abf4-91180603181f --- src/announce.cc | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/announce.cc b/src/announce.cc index 7edf348..f800921 100644 --- a/src/announce.cc +++ b/src/announce.cc @@ -99,8 +99,27 @@ namespace Formaline if (verbose) CCTK_INFO ("Announcing initial meta information"); if (create_id_files) { - // Create files from the build, run, and simulation ids + // Create files from the configuration, source, build, run, and + // simulation ids // (This shows what jobs were run in the output directory) + { + ostringstream filenamebuf; + filenamebuf << out_dir << "/formaline-" << get_config_id (cctkGH); + string const filenamestring = filenamebuf.str(); + ofstream fil; + fil.open (filenamestring.c_str(), ios::trunc); + fil << get_config_id (cctkGH) << endl; + fil.close (); + } + { + ostringstream filenamebuf; + filenamebuf << out_dir << "/formaline-" << get_source_id (cctkGH); + string const filenamestring = filenamebuf.str(); + ofstream fil; + fil.open (filenamestring.c_str(), ios::trunc); + fil << get_source_id (cctkGH) << endl; + fil.close (); + } { ostringstream filenamebuf; filenamebuf << out_dir << "/formaline-" << get_build_id (cctkGH); @@ -340,6 +359,14 @@ namespace Formaline // Compiling + { + stores.store ("config_id", get_config_id (cctkGH)); + } + + { + stores.store ("source_id", get_source_id (cctkGH)); + } + { stores.store ("build_id", get_build_id (cctkGH)); } @@ -365,6 +392,14 @@ namespace Formaline // Running + { + stores.store ("simulation_id", get_simulation_id (cctkGH)); + } + + { + stores.store ("run_id", get_run_id (cctkGH)); + } + #if 0 { char const * const run_user = CCTK_RunUser(); -- cgit v1.2.3