NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.21k stars 617 forks source link

Fixed use_output_directory clearing filename_prefix in all instances #2695

Closed bhacha closed 11 months ago

bhacha commented 11 months ago

The simulation.use_output_directory() function currently clears the filename_prefix variable whenever executed. The documentation says this should only happen when dname is not specified. I moved the clearing step into the if condition, so the filename_prefix is only cleared when dname is not specified.