brendanjmeade / celeri

Next generation earthquake cycle kinematics
BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

If `operators.hdf5` file doesn't exist, calculate partials #94

Closed brendanjmeade closed 2 years ago

brendanjmeade commented 2 years ago

The saved elastic operator didn't exist so I had to go into command/japan_command.json to turn off loading. Can we just fall back to creating the elastic operator if doesn't exist? Make a big warning message that says "The command file requested loading the elastic operators but the operators cannot be found at FILEPATH_HERE. Recomputing the elastic operators instead." I might even add a similar warning for situations where the elastic operators are reloaded just so users aren't surprised.

brendanjmeade commented 2 years ago

Close with https://github.com/brendanjmeade/celeri/commit/906c7fa7ed0fa991c33cd93f88e3c1653825c1f8