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

IPM Performance Monitoring Problem mpi.h

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2015, 08:04
Default IPM Performance Monitoring Problem mpi.h
  #1
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Hi guys,

I compiled successfully the integrated performance monitoring tool from http://projekt17.pub.lab.nm.ifi.lmu.de/ipm/home.html.

Next step I adapted the solver icoFoamIPM with following extensions:

option
Code:
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)

EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = \
    -lfiniteVolume \
    -lsampling \
    -L$(IPM_LIBPATH) \
    -lipm
files
Code:
icoFoamIPM.C
EXE = $(FOAM_USER_APPBIN)/icoFoamIPM
and icoFoamIPM.C with
Code:
#include "mpi.h"
#include "fvCFD.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

int main(int argc, char *argv[])
{
    #include "setRootCase.H"

    #include "createTime.H"
    #include "createMesh.H"
......
If I try to compile the data with wmake I get following error
Code:
icoFoamIPM.C:31:17: fatal error: mpi.h: No such file or directory
 #include "mpi.h"
                 ^
compilation terminated.
I did not miss compiling OMP : mpirun --version gives (Open MPI) 1.6.5

I guess this must be some linking issue,

any idea?

Thanks for help
hxaxtma is offline   Reply With Quote

Old   September 12, 2015, 14:52
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
Quick answer: If you look at the file "src/Pstream/mpi/Make/options", you'll see the following content:
Code:
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)

EXE_INC  = $(PFLAGS) $(PINC)
LIB_LIBS = $(PLIBS)
Which means that you're missing the variables below the includes. In your case, it should probably be:
Code:
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)

EXE_INC = $(PFLAGS) $(PINC) \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = $(PLIBS) \
    -lfiniteVolume \
    -lsampling \
    -L$(IPM_LIBPATH) \
    -lipm
hxaxtma likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 14, 2015, 03:05
Default
  #3
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Thanks, you are the best!
--Thread closed--
hxaxtma 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
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Residual Monitoring for unsteady problem James FLUENT 4 January 23, 2004 12:36
extremely simple problem... can you solve it properly? Mikhail Main CFD Forum 40 September 9, 1999 09:11
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 04:56.