From f66670837446fdef88f939fbb1995df1a39c35a2 Mon Sep 17 00:00:00 2001 From: Hong Chen Date: Tue, 16 Jul 2024 10:31:52 -0500 Subject: [PATCH] Repurposed -OO for all sim run outputs including S_sie.resource being saved in the specified directory. (#1714) * Repurposed -OO so all sim run outputs including S_sie.resource are saved to the specified folder. The files are placed in the sub-dir either RUN_xxx or DP_Product of the specified folder. * Updated for repurposed -OO. * Added quoting code markdown for such as in order to show as is. * Added quoting code for missing items. * Updated to raise an error when the --read-only-sim flag is used without the -O or -OO. Also made updates to the related document accordingly. * Fixed the error message to be more clear. --- .../Running-a-Simulation.md | 29 +++++--- test_sims.yml | 2 +- .../CommandLineArguments.cpp | 5 +- .../sim_services/FrameLog/FrameLog.cpp | 5 ++ trick_source/sim_services/Sie/Sie.cpp | 68 +++++++++++++------ 5 files changed, 79 insertions(+), 30 deletions(-) diff --git a/docs/documentation/running_a_simulation/Running-a-Simulation.md b/docs/documentation/running_a_simulation/Running-a-Simulation.md index 7baaef8e..b8e9fc56 100644 --- a/docs/documentation/running_a_simulation/Running-a-Simulation.md +++ b/docs/documentation/running_a_simulation/Running-a-Simulation.md @@ -16,14 +16,27 @@ S_main_${TRICK_HOST_CPU}.exe [trick_version] [sie] [-u ] ``` -- The first argument in the command line must be the simulation input file name. The input file name can be in the form of a full path name but MUST have a RUN_ directory immediately above the input file name. By default, all the simulation output is directed to this RUN_ directory. The standard is input.py; however, a simulation could be started from a checkpoint file by substituting chkpnt_