Skip to content

Commit

Permalink
Revision of commit 1ac5792 : Monte Carlo orbits were being written wi…
Browse files Browse the repository at this point in the history
…th 'good' data overwritten with a temporary file name
  • Loading branch information
Bill-Gray committed Mar 15, 2024
1 parent ff27683 commit bb868a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elem_out.cpp
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bb868a2

Please sign in to comment.