mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
changed: mark constructors explicit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user