WISDEM / RAFT

A frequency-domain dynamics model for floating wind turbines
https://openraft.readthedocs.io
Apache License 2.0
40 stars 21 forks source link

Massively parallel directory creation fail #50

Open cfrontin opened 2 months ago

cfrontin commented 2 months ago

When running in a massively parallel way on HPC, for instance, this line can fail. It appears that there's a race condition that can get multiple processors past the L320 if statement before this line is reached, then the "if directory exists" condition changes after evaluating the if statement on L320.

Adding a keyword argument for exists_ok=True into the os.makedirs call on L320 can be used to allow this condition to be ok, I think.