Skip to content

Commit 505d7a9

Browse files
committed
Second attempt to fix bug
1 parent 84c128d commit 505d7a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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(np.squeeze(A_arr), np.squeeze(X_arr[no_shortcut_indices]))
215+
B_collect[no_shortcut_indices, :] = np.linalg.solve(A_arr, X_arr[no_shortcut_indices, :, None]).squeeze(-1)
216216

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

0 commit comments

Comments
 (0)