Skip to content

Commit d3786da

Browse files
Reduce number of particles and simulation time for example
1 parent 2de98a5 commit d3786da

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

docs/examples/tutorial_stommel_uxarray.ipynb

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
"metadata": {},
297297
"outputs": [],
298298
"source": [
299-
"num_particles = 100\n",
299+
"num_particles = 2\n",
300300
"\n",
301301
"pset = ParticleSet(\n",
302302
" fieldset,\n",
@@ -318,30 +318,16 @@
318318
"metadata": {},
319319
"outputs": [],
320320
"source": [
321-
"from tqdm import tqdm"
322-
]
323-
},
324-
{
325-
"cell_type": "code",
326-
"execution_count": null,
327-
"metadata": {},
328-
"outputs": [],
329-
"source": [
330-
"from parcels import FieldOutOfBoundError"
331-
]
332-
},
333-
{
334-
"cell_type": "code",
335-
"execution_count": null,
336-
"metadata": {},
337-
"outputs": [],
338-
"source": [
321+
"from tqdm import tqdm\n",
322+
"\n",
323+
"from parcels import FieldOutOfBoundError\n",
324+
"\n",
339325
"# for capturing positions\n",
340326
"_lon = [pset.lon]\n",
341327
"_lat = [pset.lat]\n",
342328
"\n",
343329
"# output / sub-experiment time stepping\n",
344-
"output_dt = timedelta(hours=6)\n",
330+
"output_dt = timedelta(minutes=10)\n",
345331
"endtime = output_dt\n",
346332
"\n",
347333
"# run 40 x 6 hours and capture positions after each iteration\n",

0 commit comments

Comments
 (0)