mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
changed: mark constructors explicit
This commit is contained in:
parent
fddad72a3e
commit
ee57c82834
@ -45,7 +45,7 @@ namespace Opm
|
||||
bool converged;
|
||||
|
||||
/// Default constructor initializing all times to 0.0.
|
||||
SimulatorReport(bool verbose=true);
|
||||
explicit SimulatorReport(bool verbose=true);
|
||||
/// Copy constructor
|
||||
SimulatorReport(const SimulatorReport&) = default;
|
||||
/// Increment this report's times by those in sr.
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
struct SortByAbsFlux
|
||||
{
|
||||
SortByAbsFlux(const double* flux)
|
||||
explicit SortByAbsFlux(const double* flux)
|
||||
: flux_(flux)
|
||||
{}
|
||||
bool operator() (int f1, int f2)
|
||||
|
Loading…
Reference in New Issue
Block a user