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

Does each processor get its own copy of ODESolver?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: Karnataka, India
Posts: 187
Rep Power: 15
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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


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 Off
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 2 July 20, 2015 17:33
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 Siemens 3 November 9, 2004 10:49


All times are GMT -4. The time now is 13:03.