Read sim start time from EclipseState

Reading the start time from EclipseState means it's no longer required
as a parameter to every method, and that the current time can be
calculated as start time + time elapsed.
This commit is contained in:
Jørgen Kvalsvik
2016-06-07 08:40:41 +02:00
parent 91d5cad61e
commit e2a5c01a8b
6 changed files with 14 additions and 23 deletions
+1 -2
View File
@@ -232,13 +232,12 @@ first_sim(test_work_area_type * test_area) {
EclipseWriter eclWriter( eclipseState, num_cells, nullptr );
auto start_time = util_make_datetime( 0, 0, 0, 1, 11, 1979 );
auto first_step = util_make_datetime( 0, 0, 0, 10, 10, 2008 );
eclWriter.writeInit( start_time );
eclWriter.writeInit();
auto sol = mkSolution( num_cells );
auto wells = mkWells();
eclWriter.writeTimeStep( 1,
first_step,
first_step - start_time,
sol, wells, false);