From 205bda437516c618bcc5f9f1f2c402c08f5e0af9 Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Tue, 19 May 2015 17:30:26 -0500 Subject: [PATCH] Refs #58: Fixed generation of the monte_header file. --- .../sim_services/MonteCarlo/src/MonteCarlo_master_file_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/sim_services/MonteCarlo/src/MonteCarlo_master_file_io.cpp b/trick_source/sim_services/MonteCarlo/src/MonteCarlo_master_file_io.cpp index 269fe984..0844ba85 100644 --- a/trick_source/sim_services/MonteCarlo/src/MonteCarlo_master_file_io.cpp +++ b/trick_source/sim_services/MonteCarlo/src/MonteCarlo_master_file_io.cpp @@ -73,7 +73,7 @@ void Trick::MonteCarlo::write_to_run_files(std::string file_name) { fprintf(run_header_file, "\nvar%zu = trick.MonteVarFile(\"%s\", \"%s\", %zu, \"%s\")\n", i, variables[i]->name.c_str(), file_name.c_str(), i + 2, variables[i]->unit.c_str()); } - fprintf(run_header_file, "trick_sys.sched.add_variable(var%zu)\n", i); + fprintf(run_header_file, "trick_mc.mc.add_variable(var%zu)\n", i); fprintf(run_data_file, "%s ", variables[i]->name.c_str()); }