mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: set the default for the number of threads to 2 if openMP is available
this value is was chosen to exactly replicate `flow`'s behavior. IMO, it would be less surprising to set the default to `1`, i.e., the user needs to specify `--threads-per-process=$N` explicitly if multithreaded linearization ought to be used.
This commit is contained in:
parent
5029b83321
commit
626e8dd243
@ -99,6 +99,12 @@ SET_INT_PROP(EbosTypeTag, EclNewtonStrictIterations, 100);
|
||||
// relatively often)
|
||||
SET_INT_PROP(EbosTypeTag, NewtonMaxIterations, 8);
|
||||
|
||||
// if openMP is available, set the default the number of threads per process for the main
|
||||
// simulation to 2 (instead of grabbing everything that is available).
|
||||
#if _OPENMP
|
||||
SET_INT_PROP(EbosTypeTag, ThreadsPerProcess, 2);
|
||||
#endif
|
||||
|
||||
END_PROPERTIES
|
||||
|
||||
namespace Ewoms {
|
||||
|
Loading…
Reference in New Issue
Block a user