Skip to content

Commit 693201b

Browse files
committed
Fixed slicing in pull_push.py
1 parent d7c42fa commit 693201b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psydac/feec/pull_push.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def f1_logical(eta1, eta2):
121121
a2_phys = f2(x, y)
122122

123123
J_T_value = F.jacobian(eta1, eta2).T
124-
value_1 = J_T_value[..., 0, 0].T * a1_phys + J_T_value[..., 0, 1].T * a2_phys
124+
value_1 = J_T_value[0, ..., 0].T * a1_phys + J_T_value[0, ..., 1].T * a2_phys
125125
return value_1
126126

127127
def f2_logical(eta1, eta2):
@@ -131,7 +131,7 @@ def f2_logical(eta1, eta2):
131131
a2_phys = f2(x, y)
132132

133133
J_T_value = F.jacobian(eta1, eta2).T
134-
value_2 = J_T_value[..., 1, 0].T * a1_phys + J_T_value[..., 1, 1].T * a2_phys
134+
value_2 = J_T_value[1, ..., 0].T * a1_phys + J_T_value[1, ..., 1].T * a2_phys
135135
return value_2
136136

137137
return f1_logical, f2_logical

0 commit comments

Comments
 (0)