From bb868a2df29ff925d9caaa25a9ea8c8c3e151ecf Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Fri, 15 Mar 2024 15:29:03 -0400 Subject: [PATCH] Revision of commit 1ac5792b74a024b3a669139 : Monte Carlo orbits were being written with 'good' data overwritten with a temporary file name --- elem_out.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elem_out.cpp b/elem_out.cpp index e1d643aa..66ee6004 100644 --- a/elem_out.cpp +++ b/elem_out.cpp @@ -2648,7 +2648,7 @@ int write_out_elements_to_file( const double *orbit, if( elem.central_obj || elem.ecc > .999999) if( !elements_in_guide_format( tbuff, &elem, virtual_full_desig, obs, n_obs)) { - ofile = fopen_ext( get_file_name( tbuff, "virtual.txt"), monte_carlo_permits); + ofile = fopen_ext( get_file_name( buff, "virtual.txt"), monte_carlo_permits); fprintf( ofile, "%s%s\n", tbuff, impact_buff); fclose( ofile); } @@ -2682,7 +2682,7 @@ int write_out_elements_to_file( const double *orbit, } if( !elements_in_guide_format( tbuff, &elem, object_name, obs, n_obs) - && (ofile = fopen_ext( get_file_name( tbuff, "guide.txt"), "tfcwb")) != NULL) + && (ofile = fopen_ext( get_file_name( buff, "guide.txt"), "tfcwb")) != NULL) { fprintf( ofile, "%s%s\n", tbuff, impact_buff); fclose( ofile);