Closed ElliottKasoar closed 1 year ago
I'm not sure my initial description was correct - if write_n2p2_nn
fails it typically doesn't write anything. The error appears to occur if attempting to modify (or not) the last symmetry function in the file, as there is no trailing ###...
to reference.
If
controller.write_n2p2_nn
is interrupted when writing input.nn e.g. due to invalid input parameters, this can lead to errors if attempting to rerun the script:As was the case before
generator.delete_duplicate_functions
was implemented, cleaning up input.nn before rerunning the function is a solution, although input.nn.temp may also require deleting now.However, there may be a way to handle this more gracefully e.g. checking if an existing input.nn was written correctly before continuing, and checking if input.nn.temp exists already.