Skip to content

Commit e758816

Browse files
committed
Transposed a1_phys, a2_phys and the returns in pull_2d_hcurl
1 parent 74b65ee commit e758816

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

psydac/feec/pull_push.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ 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] * a1_phys + J_T_value[..., 0, 1] * a2_phys
125-
return value_1
124+
value_1 = J_T_value[..., 0, 0] * a1_phys.T + J_T_value[..., 0, 1] * a2_phys.T
125+
return value_1.T
126126

127127
def f2_logical(eta1, eta2):
128128
x, y = F(eta1, eta2)
@@ -131,8 +131,8 @@ 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] * a1_phys + J_T_value[..., 1, 1] * a2_phys
135-
return value_2
134+
value_2 = J_T_value[..., 1, 0] * a1_phys.T + J_T_value[..., 1, 1] * a2_phys.T
135+
return value_2.T
136136

137137
return f1_logical, f2_logical
138138

0 commit comments

Comments
 (0)