Skip to content

Commit

Permalink
Fixed size of mogi partials for case of no mogis (correct number of r…
Browse files Browse the repository at this point in the history
…ows, zero columns)
  • Loading branch information
jploveless committed Jul 11, 2024
1 parent 31b1511 commit 53b8f8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celeri/celeri.py
Original file line number Diff line number Diff line change
Expand Up @@ -3007,10 +3007,10 @@ def get_slip_rake_constraints(assembly, segment, block, command):

def get_mogi_to_velocities_partials(mogi, station, command):
"""
Mogi volume change to station displacment operator
Mogi volume change to station displacement operator
"""
if mogi.empty:
mogi_operator = np.empty(0)
mogi_operator = np.zeros((3*len(station), 0))
else:
poissons_ratio = command.material_mu / (
2 * (command.material_lambda + command.material_mu)
Expand Down

0 comments on commit 53b8f8f

Please sign in to comment.