mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
SimulatorTimers: added method clone to allow for copying of the objects.
This commit is contained in:
@@ -148,5 +148,13 @@ namespace Opm
|
||||
return int(timesteps_.size()) == current_step_;
|
||||
}
|
||||
|
||||
/// return copy of object
|
||||
std::unique_ptr< SimulatorTimerInterface >
|
||||
SimulatorTimer::clone() const
|
||||
{
|
||||
return std::unique_ptr< SimulatorTimerInterface > (new SimulatorTimer( *this ));
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
Reference in New Issue
Block a user