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

creat a parallelized solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 12, 2012, 14:56
Default creat a parallelized solver
  #1
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 5
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, 15:07
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
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
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
A New Solver for Supersonic Combustion nakul OpenFOAM 6 March 30, 2014 03:00
A New Solver for Supersonic Combustion nakul OpenFOAM Announcements from Other Sources 18 February 19, 2013 08:48
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 14:08
parallelized equation solver suan Main CFD Forum 1 August 16, 2002 04:51


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