Skip to content

Commit

Permalink
bem.base.BEMResponse.get_source_magnitudes: fix for nsources > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hvasbath committed Apr 26, 2024
1 parent e43a21f commit abf9c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beat/bem/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_source_magnitudes(self, shear_modulus):

magnitudes = []
for source, slips in zip(self.discretized_sources, total_slips):
moments = source.get_areas_triangles() * total_slips * shear_modulus
moments = source.get_areas_triangles() * slips * shear_modulus
magnitudes.append(moment_to_magnitude(moments.sum()))

return magnitudes
Expand Down

0 comments on commit abf9c6e

Please sign in to comment.