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

creat a parallelized solver

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2012, 15:56
Default creat a parallelized solver
  #1
Member
 
Join Date: Feb 2012
Posts: 59
Rep Power: 14
Raymond.Leoi is on a distinguished road
I am trying to create a reactingFoam solver with mpi. Even the head file, <mpi.h>, is included, the error takes place as follows,

reactingFoam.C:46:17: fatal error: mpi.h: No such file or directory
compilation terminated.

Any suggestion for this problem?
Raymond.Leoi is offline   Reply With Quote

Old   June 12, 2012, 16:07
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Raymond.Leoi View Post
I am trying to create a reactingFoam solver with mpi. Even the head file, <mpi.h>, is included, the error takes place as follows,

reactingFoam.C:46:17: fatal error: mpi.h: No such file or directory
compilation terminated.

Any suggestion for this problem?
The big question is: why do you want to parallelize a solver that is already parallelized?

Anyway: the compiler doesn't find the mpi.h. So: check the -I-options that are there

BTW: the only reason why one would want to "parallelize" reactingFoam is that you want to use it as one task in a bigger parallel-program. In that case you'll have a lot of fun as OF already calls MPI_Init and the call of the "overprogram" will lead to confusion. Correctly including headers will then be the least of your worries.
gschaider is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A New Solver for Supersonic Combustion nakul OpenFOAM Announcements from Other Sources 19 February 27, 2024 10:44
[Other] A New Solver for Supersonic Combustion nakul OpenFOAM Community Contributions 20 February 22, 2019 10:08
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08
parallelized equation solver suan Main CFD Forum 1 August 16, 2002 05:51


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