Skip to content

Commit

Permalink
Merge pull request #1146 from manuelaghito/dev
Browse files Browse the repository at this point in the history
ChemD: Bugfix Concentrations by origin_marker
  • Loading branch information
knutfrode authored Aug 4, 2023
2 parents 8db75b9 + d70a7ea commit 7880e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendrift/models/chemicaldrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ def get_chemical_density_array(self, pixelsize_m, z_array,
if weight is not None:
weights = weight_array[i,:]
if origin_marker is not None:
weight_array = weight_array * (originmarker[i,:]==origin_marker)
weight_array[i,:] = weight_array[i,:] * (originmarker[i,:]==origin_marker)
else:
weights = None
for zi in range(len(z_array)-1):
Expand Down

0 comments on commit 7880e3a

Please sign in to comment.