Use an integer type for "maxit_" counter.
The "maxit_" counter is an upper limit on the number of non-linear iterations in a single cell. Declaring this as a "double" is counter intuitive unless one expects the number to be *really* high. Present since - Commit93d4bd8
(TransportModelTwophase.hpp) - Commite0d38cf
(TransportModelTwophaseCompressible.hpp)
This commit is contained in:
parent
11425efe81
commit
a39e5a1366
@ -100,7 +100,7 @@ namespace Opm
|
||||
std::vector<double> smin_;
|
||||
std::vector<double> smax_;
|
||||
double tol_;
|
||||
double maxit_;
|
||||
int maxit_;
|
||||
|
||||
const double* darcyflux_; // one flux per grid face
|
||||
const double* surfacevol0_; // one per phase per cell
|
||||
|
@ -94,7 +94,7 @@ namespace Opm
|
||||
std::vector<double> smin_;
|
||||
std::vector<double> smax_;
|
||||
double tol_;
|
||||
double maxit_;
|
||||
int maxit_;
|
||||
|
||||
const double* darcyflux_; // one flux per grid face
|
||||
const double* porevolume_; // one volume per cell
|
||||
|
Loading…
Reference in New Issue
Block a user