CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Does each processor get its own copy of ODESolver?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 8, 2012, 21:20
Default Does each processor get its own copy of ODESolver?
  #1
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 101
Rep Power: 5
adhiraj is on a distinguished road
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
adhiraj is offline   Reply With Quote

Old   February 9, 2012, 12:07
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Adhiraj,

Quote:
Originally Posted by adhiraj View Post
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Got a copy of AGARD Report AR-275? screech1987 Main CFD Forum 1 April 27, 2013 01:39
Can I make a copy of a patch mesh and move it? bigphil OpenFOAM Programming & Development 0 October 13, 2010 10:29
Is it OK to copy Wikipedia article to CFD-wiki? CFDer CFD-Wiki 4 December 11, 2009 06:16
Simple problem of "copy" command in Gambit. jason FLUENT 0 December 4, 2007 01:59
looking for a free copy zakaria CD-adapco 3 November 9, 2004 10:49


All times are GMT -4. The time now is 00:54.