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:
Andreas Lauser 2019-06-24 14:23:55 +02:00
parent 5029b83321
commit 626e8dd243

View File

@ -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 {