CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Does each processor get its own copy of ODESolver? (http://www.cfd-online.com/Forums/openfoam/97103-does-each-processor-get-its-own-copy-odesolver.html)

adhiraj February 8, 2012 21:20

Does each processor get its own copy of ODESolver?
 
For a chemically reacting flow if we use ODE solver as RK for instance, does each thread get its own copy of the RK object?
The code for RK4 seems thread unsafe otherwise--am I missing something?
Quote:

$FOAM_SRC/ODE/ODESolvers/RK/RK.C

wyldckat February 9, 2012 12:07

Greetings Adhiraj,

Quote:

Originally Posted by adhiraj (Post 343489)
For a chemically reacting flow if we use ODE solver as RK for instance, does each thread get its own copy of the RK object?
The code for RK4 seems thread unsafe otherwise--am I missing something?

OpenFOAM (the official one, not the variant Extend) doesn't use threads. It relies on MPI doing all of the communication magic ;)

The Extend variant on the other hand, does have at least some modifications for running with threads instead of MPI, but I don't know if it's already working as intended or not.

Best regards,
Bruno


All times are GMT -4. The time now is 23:50.