Skip to content

Commit 33dc79b

Browse files
committed
move pywrapper matrix out of loop
1 parent ceb3b39 commit 33dc79b

File tree

1 file changed

+3
-1
lines changed
  • TestCases/py_wrapper/turbulent_premixed_psi

1 file changed

+3
-1
lines changed

TestCases/py_wrapper/turbulent_premixed_psi/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,14 @@ def main():
216216
driver.Preprocess(inner_iter)
217217
driver.Run()
218218

219+
Source = driver.UserDefinedSource(iSPECIESSOLVER)
220+
219221
# set the source term, per point
220222
for i_node in range(driver.GetNumberNodes() - driver.GetNumberHaloNodes()):
221223
# add source term:
222224
# default TFC of Zimont: rho*Sc = rho_u * U_t * grad(c)
223225
S = zimont(driver,i_node)
224-
driver.UserDefinedSource(iSPECIESSOLVER).Set(i_node,0,S)
226+
Source.Set(i_node,0,S)
225227

226228
# for the update of temperature, we need to update also the halo nodes
227229
for i_node in range(driver.GetNumberNodes()):

0 commit comments

Comments
 (0)