Skip to content

Commit b201b18

Browse files
committed
fix non-present U in BGC fields
1 parent 8bccb46 commit b201b18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/virtualship/instruments/ctd_bgc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from pathlib import Path
66

77
import numpy as np
8-
from parcels import FieldSet, JITParticle, ParticleSet, Variable
98

9+
from parcels import FieldSet, JITParticle, ParticleSet, Variable
1010
from virtualship.models import Spacetime
1111

1212

@@ -103,8 +103,8 @@ def simulate_ctd_bgc(
103103
# TODO when Parcels supports it this check can be removed.
104104
return
105105

106-
fieldset_starttime = fieldset.time_origin.fulltime(fieldset.U.grid.time_full[0])
107-
fieldset_endtime = fieldset.time_origin.fulltime(fieldset.U.grid.time_full[-1])
106+
fieldset_starttime = fieldset.time_origin.fulltime(fieldset.o2.grid.time_full[0])
107+
fieldset_endtime = fieldset.time_origin.fulltime(fieldset.o2.grid.time_full[-1])
108108

109109
# deploy time for all ctds should be later than fieldset start time
110110
if not all(

0 commit comments

Comments
 (0)