Runge-Kutta scheme on Norkyst model

Illustrating the difference between Euler and Runge-Kutta propagation schemes, using a “real” current fields from the NorKyst800 model

from opendrift.readers import reader_global_landmask
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.oceandrift import OceanDrift

o = OceanDrift(loglevel=20)  # Set loglevel to 0 for debug information

reader_norkyst = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')
time = reader_norkyst.start_time

reader_landmask = reader_global_landmask.Reader(
                    extent=[4, 5.5, 59.9, 61.5])

o.add_reader([reader_norkyst, reader_landmask])
lon = 4.5; lat = 60.0;

Out:

13:47:59 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)
13:47:59 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc

First run, with Euler scheme:

o.set_config('drift:advection_scheme', 'euler')
o.seed_elements(lon, lat, radius=0, number=1, time=time)
o.run(steps=66*2, time_step=1800)

Out:

13:48:02 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:48:02 INFO    opendrift.models.basemodel:    x_wind: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    y_wind: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    surface_downward_x_stress: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    surface_downward_y_stress: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    turbulent_kinetic_energy: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    turbulent_generic_length_scale: 0.000000
13:48:02 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 10000.000000
13:48:02 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:48:02 INFO    opendrift.models.basemodel: All points are in ocean
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 00:00:00 - step 1 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 00:30:00 - step 2 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 01:00:00 - step 3 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 01:30:00 - step 4 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 02:00:00 - step 5 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 02:30:00 - step 6 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 03:00:00 - step 7 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 03:30:00 - step 8 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 04:00:00 - step 9 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 04:30:00 - step 10 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 05:00:00 - step 11 of 132 - 1 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 05:30:00 - step 12 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 06:00:00 - step 13 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 06:30:00 - step 14 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 07:00:00 - step 15 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 07:30:00 - step 16 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 08:00:00 - step 17 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 08:30:00 - step 18 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 09:00:00 - step 19 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 09:30:00 - step 20 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 10:00:00 - step 21 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 10:30:00 - step 22 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 11:00:00 - step 23 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 11:30:00 - step 24 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 12:00:00 - step 25 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 12:30:00 - step 26 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 13:00:00 - step 27 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 13:30:00 - step 28 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 14:00:00 - step 29 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 14:30:00 - step 30 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 15:00:00 - step 31 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 15:30:00 - step 32 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 16:00:00 - step 33 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 16:30:00 - step 34 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 17:00:00 - step 35 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 17:30:00 - step 36 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 18:00:00 - step 37 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 18:30:00 - step 38 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 19:00:00 - step 39 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 19:30:00 - step 40 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 20:00:00 - step 41 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 20:30:00 - step 42 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 21:00:00 - step 43 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 21:30:00 - step 44 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 22:00:00 - step 45 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 22:30:00 - step 46 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 23:00:00 - step 47 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-16 23:30:00 - step 48 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 00:00:00 - step 49 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 00:30:00 - step 50 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 01:00:00 - step 51 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 01:30:00 - step 52 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 02:00:00 - step 53 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 02:30:00 - step 54 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 03:00:00 - step 55 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 03:30:00 - step 56 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 04:00:00 - step 57 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 04:30:00 - step 58 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 05:00:00 - step 59 of 132 - 1 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 05:30:00 - step 60 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 06:00:00 - step 61 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 06:30:00 - step 62 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 07:00:00 - step 63 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 07:30:00 - step 64 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 08:00:00 - step 65 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 08:30:00 - step 66 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 09:00:00 - step 67 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 09:30:00 - step 68 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 10:00:00 - step 69 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 10:30:00 - step 70 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 11:00:00 - step 71 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 11:30:00 - step 72 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 12:00:00 - step 73 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 12:30:00 - step 74 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 13:00:00 - step 75 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 13:30:00 - step 76 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 14:00:00 - step 77 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 14:30:00 - step 78 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 15:00:00 - step 79 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 15:30:00 - step 80 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 16:00:00 - step 81 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 16:30:00 - step 82 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 17:00:00 - step 83 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 17:30:00 - step 84 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 18:00:00 - step 85 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 18:30:00 - step 86 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 19:00:00 - step 87 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 19:30:00 - step 88 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 20:00:00 - step 89 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 20:30:00 - step 90 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 21:00:00 - step 91 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 21:30:00 - step 92 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 22:00:00 - step 93 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 22:30:00 - step 94 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 23:00:00 - step 95 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 23:30:00 - step 96 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 00:00:00 - step 97 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 00:30:00 - step 98 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 01:00:00 - step 99 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 01:30:00 - step 100 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 02:00:00 - step 101 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 02:30:00 - step 102 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 03:00:00 - step 103 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 03:30:00 - step 104 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 04:00:00 - step 105 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 04:30:00 - step 106 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 05:00:00 - step 107 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 05:30:00 - step 108 of 132 - 1 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-18 06:00:00 - step 109 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 06:30:00 - step 110 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 07:00:00 - step 111 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 07:30:00 - step 112 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 08:00:00 - step 113 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 08:30:00 - step 114 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 09:00:00 - step 115 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 09:30:00 - step 116 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 10:00:00 - step 117 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 10:30:00 - step 118 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 11:00:00 - step 119 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 11:30:00 - step 120 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 12:00:00 - step 121 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 12:30:00 - step 122 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 13:00:00 - step 123 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 13:30:00 - step 124 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 14:00:00 - step 125 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 14:30:00 - step 126 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 15:00:00 - step 127 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 15:30:00 - step 128 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 16:00:00 - step 129 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 16:30:00 - step 130 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 17:00:00 - step 131 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-18 17:30:00 - step 132 of 132 - 1 active elements (0 deactivated)

Second run, with Runge-Kutta scheme:

o2 = OceanDrift(loglevel=20)  # Set loglevel to 0 for debug information
o2.add_reader([reader_norkyst, reader_landmask])
o2.set_config('drift:advection_scheme', 'runge-kutta')
o2.seed_elements(lon, lat, radius=0, number=1, time=time)
o2.run(steps=66*2, time_step=1800)

Out:

13:48:05 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)
13:48:05 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:48:05 INFO    opendrift.models.basemodel:    x_wind: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    y_wind: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    surface_downward_x_stress: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    surface_downward_y_stress: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    turbulent_kinetic_energy: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    turbulent_generic_length_scale: 0.000000
13:48:05 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 10000.000000
13:48:05 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:48:05 INFO    opendrift.models.basemodel: All points are in ocean
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 00:00:00 - step 1 of 132 - 1 active elements (0 deactivated)
13:48:05 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 00:30:00 - step 2 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 01:00:00 - step 3 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 01:30:00 - step 4 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 02:00:00 - step 5 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 02:30:00 - step 6 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 03:00:00 - step 7 of 132 - 1 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-16 03:30:00 - step 8 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 04:00:00 - step 9 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 04:30:00 - step 10 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 05:00:00 - step 11 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 05:30:00 - step 12 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 06:00:00 - step 13 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 06:30:00 - step 14 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 07:00:00 - step 15 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 07:30:00 - step 16 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 08:00:00 - step 17 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 08:30:00 - step 18 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 09:00:00 - step 19 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 09:30:00 - step 20 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 10:00:00 - step 21 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 10:30:00 - step 22 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 11:00:00 - step 23 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 11:30:00 - step 24 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 12:00:00 - step 25 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 12:30:00 - step 26 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 13:00:00 - step 27 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 13:30:00 - step 28 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 14:00:00 - step 29 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 14:30:00 - step 30 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 15:00:00 - step 31 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 15:30:00 - step 32 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 16:00:00 - step 33 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 16:30:00 - step 34 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 17:00:00 - step 35 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 17:30:00 - step 36 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 18:00:00 - step 37 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 18:30:00 - step 38 of 132 - 1 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-16 19:00:00 - step 39 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 19:30:00 - step 40 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 20:00:00 - step 41 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 20:30:00 - step 42 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 21:00:00 - step 43 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 21:30:00 - step 44 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 22:00:00 - step 45 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 22:30:00 - step 46 of 132 - 1 active elements (0 deactivated)
13:48:07 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 23:00:00 - step 47 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-16 23:30:00 - step 48 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 00:00:00 - step 49 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 00:30:00 - step 50 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 01:00:00 - step 51 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 01:30:00 - step 52 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 02:00:00 - step 53 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 02:30:00 - step 54 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 03:00:00 - step 55 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 03:30:00 - step 56 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 04:00:00 - step 57 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 04:30:00 - step 58 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 05:00:00 - step 59 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 05:30:00 - step 60 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 06:00:00 - step 61 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 06:30:00 - step 62 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 07:00:00 - step 63 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 07:30:00 - step 64 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 08:00:00 - step 65 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 08:30:00 - step 66 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 09:00:00 - step 67 of 132 - 1 active elements (0 deactivated)
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 09:30:00 - step 68 of 132 - 1 active elements (0 deactivated)
13:48:07 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:07 INFO    opendrift.models.basemodel: 2015-11-17 10:00:00 - step 69 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 10:30:00 - step 70 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 11:00:00 - step 71 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 11:30:00 - step 72 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 12:00:00 - step 73 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 12:30:00 - step 74 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 13:00:00 - step 75 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 13:30:00 - step 76 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 14:00:00 - step 77 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 14:30:00 - step 78 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 15:00:00 - step 79 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 15:30:00 - step 80 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 16:00:00 - step 81 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 16:30:00 - step 82 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 17:00:00 - step 83 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 17:30:00 - step 84 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 18:00:00 - step 85 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 18:30:00 - step 86 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 19:00:00 - step 87 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 19:30:00 - step 88 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 20:00:00 - step 89 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 20:30:00 - step 90 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 21:00:00 - step 91 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 21:30:00 - step 92 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 22:00:00 - step 93 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 22:30:00 - step 94 of 132 - 1 active elements (0 deactivated)
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 23:00:00 - step 95 of 132 - 1 active elements (0 deactivated)
13:48:08 INFO    opendrift.models.basemodel: 2015-11-17 23:30:00 - step 96 of 132 - 1 active elements (0 deactivated)
13:48:09 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (7) must be increased. See `Variables.set_buffer_size`.
13:48:09 INFO    opendrift.models.basemodel: 2015-11-18 00:00:00 - step 97 of 132 - 1 active elements (0 deactivated)
13:48:09 INFO    opendrift.models.basemodel: 2015-11-18 00:30:00 - step 98 of 132 - 1 active elements (0 deactivated)
13:48:09 WARNING opendrift.models.basemodel: The simulation stopped before requested end time was reached.
13:48:09 INFO    opendrift.models.basemodel: ========================
13:48:09 INFO    opendrift.models.basemodel: End of simulation:
13:48:09 INFO    opendrift.models.basemodel: No more active or scheduled elements, quitting.
13:48:09 INFO    opendrift.models.basemodel: Traceback (most recent call last):
  File "/root/project/opendrift/models/basemodel.py", line 2473, in run
    raise ValueError('No more active or scheduled elements, quitting.')
ValueError: No more active or scheduled elements, quitting.

13:48:09 INFO    opendrift.models.basemodel: 'The simulation stopped before requested end time was reached.'

13:48:09 INFO    opendrift.models.basemodel: ========================

Animate and compare the two runs

o.animation(compare=o2, legend=['Euler scheme', 'Runge-Kutta scheme'], fast=True)

Out:

13:48:09 WARNING opendrift.models.basemodel: Plotting fast. This will make your plots less accurate.
13:48:11 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_rungekutta_norkyst_0.gif...
13:48:11 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
13:48:35 INFO    opendrift.models.basemodel: Could not save animation:
13:48:35 INFO    opendrift.models.basemodel: index 99 is out of bounds for axis 1 with size 99
../_images/example_rungekutta_norkyst_0.gif

Total running time of the script: ( 0 minutes 36.036 seconds)

Gallery generated by Sphinx-Gallery