exasim-project / OBR

A runner for OpenFOAM benchmarks
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

[Fix] get number of procs #189

Closed greole closed 8 months ago

greole commented 8 months ago

This PR improves the implementation of get_number_procs by caching its result. Furthermore, reading the number of processors from the statepoint has been fixed. This is important since reading number of procs from the decomposeParDict can take quite long and improving the performance should benefit the launch time of the run*Solver operation.

Additionally, this PR adds a new operation: validateState which calls the validation function of the OpenFOAM case and might perform expensive operations.