SimulatorTimers: added method clone to allow for copying of the objects.

This commit is contained in:
Robert Kloefkorn
2016-03-21 10:53:54 +01:00
parent 8cd08728f7
commit f9f13143a2
5 changed files with 26 additions and 0 deletions

View File

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