Skip to content

Commit acf3f49

Browse files
committed
Fix for start at 0 indexing rather than 1.
1 parent 7deba51 commit acf3f49

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/hsp2/hsp2/RQUAL_Class.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,10 @@ def simulate(
860860
state_ix[tam_ix] = self.NUTRX.tam
861861
state_ix[no2_ix] = self.NUTRX.no2
862862
state_ix[po4_ix] = self.NUTRX.po4
863-
state_ix[brtam1_ix] = self.NUTRX.brtam[1]
864-
state_ix[brtam2_ix] = self.NUTRX.brtam[2]
865-
state_ix[brpo41_ix] = self.NUTRX.brpo4[1]
866-
state_ix[brpo42_ix] = self.NUTRX.brpo4[2]
863+
state_ix[brtam1_ix] = self.NUTRX.brtam[0]
864+
state_ix[brtam2_ix] = self.NUTRX.brtam[1]
865+
state_ix[brpo41_ix] = self.NUTRX.brpo4[0]
866+
state_ix[brpo42_ix] = self.NUTRX.brpo4[1]
867867
state_ix[cforea_ix] = self.OXRX.cforea
868868
if state_info["state_step_om"] == "enabled":
869869
pre_step_model(
@@ -883,10 +883,10 @@ def simulate(
883883
self.NUTRX.tam = state_ix[tam_ix]
884884
self.NUTRX.no2 = state_ix[no2_ix]
885885
self.NUTRX.po4 = state_ix[po4_ix]
886-
self.NUTRX.brtam[1] = state_ix[brtam1_ix]
887-
self.NUTRX.brtam[2] = state_ix[brtam2_ix]
888-
self.NUTRX.brpo4[1] = state_ix[brpo41_ix]
889-
self.NUTRX.brpo4[2] = state_ix[brpo42_ix]
886+
self.NUTRX.brtam[0] = state_ix[brtam1_ix]
887+
self.NUTRX.brtam[1] = state_ix[brtam2_ix]
888+
self.NUTRX.brpo4[0] = state_ix[brpo41_ix]
889+
self.NUTRX.brpo4[1] = state_ix[brpo42_ix]
890890
self.OXRX.cforea = state_ix[cforea_ix]
891891
#######################################################################################
892892

0 commit comments

Comments
 (0)