Skip to content

Commit 84c128d

Browse files
committed
Trying to fix a bug related to changing behavior in np.linalg.solve
1 parent b4f64f6 commit 84c128d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PythonicDISORT/_solve_for_gen_and_part_sols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _solve_for_gen_and_part_sols(
212212
A_arr[:, :N, N:] = -A_arr[:, N:, :N]
213213
A_arr[:, :N, :N] = -A_arr[:, N:, N:]
214214
A_arr.reshape(-1, NQuad * NQuad)[:, ::NQuad + 1] += 1 / mu0
215-
B_collect[no_shortcut_indices, :] = np.linalg.solve(A_arr, X_arr[no_shortcut_indices])
215+
B_collect[no_shortcut_indices, :] = np.linalg.solve(np.squeeze(A_arr), np.squeeze(X_arr[no_shortcut_indices]))
216216

217217
# --------------------------------------------------------------------------------------------------------------------------
218218

0 commit comments

Comments
 (0)