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

decomposePar is missing a library

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By whk1992

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2014, 19:27
Default decomposePar is missing a library
  #1
New Member
 
Join Date: Jul 2014
Posts: 4
Rep Power: 12
whk1992 is on a distinguished road
Hello everyone,

I've just started using OpenFOAM. Everything went well until I attempted to use decomposePar. When I run the command, the system says that:

$ decomposePar
decomposePar: error while loading shared libraries: libmetisDecomp.so: cannot open shared object file: No such file or directory

Am I missing the METIS package? Since I didn't install or maintain the system, I have to find out what went wrong before I approach my supervisor and tell him to fix something that is broken. Same thing goes to rebuilding a component of OpenFOAM --- I need permission from my supervisor.

Thank you for your help.

whk1992 is offline   Reply With Quote

Old   July 14, 2014, 22:58
Default
  #2
New Member
 
Join Date: Jul 2014
Posts: 4
Rep Power: 12
whk1992 is on a distinguished road
Okay, the decomposePar problem was solved. There was an incomplete built of dummy library in the OpenFOAM directory. Now I run into another issue -- mpirun will give the following error:

Code:
$ mpirun -np 16 interFoam -parallel


--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting
Any ideas? Note: I checked that impi module is loaded, and that $MPI_ROOT = $I_MPI_ROOT
whk1992 is offline   Reply With Quote

Old   July 15, 2014, 04:24
Default
  #3
New Member
 
Join Date: Jul 2014
Posts: 4
Rep Power: 12
whk1992 is on a distinguished road
Alright, this looks utterly stupid, because I'm going to answer my question again.

Turns out that in ./etc/config/settings.sh, OpenFOAM would only load the proper Pstream library if I had already loaded the exact version of ICC needed. That was because the location of the required Pstream library is specified using $FOAM_MPI, which happened to be the version number of ICC.

Now I can finally use 16 cores instead of one.
sherif35 likes this.
whk1992 is offline   Reply With Quote

Old   July 15, 2014, 18:57
Default
  #4
New Member
 
AI
Join Date: Jun 2014
Posts: 17
Rep Power: 12
sherif35 is on a distinguished road
Thank you, I just had this problem.
sherif35 is offline   Reply With Quote

Old   January 6, 2015, 13:06
Default
  #5
Member
 
Derwin Parkin
Join Date: Feb 2010
Posts: 35
Rep Power: 16
derz is on a distinguished road
Glad you solved your problem - just wondering if you could you elaborate? How exactly did you edit the settings.sh file to make it work?
derz is offline   Reply With Quote

Old   February 25, 2015, 12:06
Default
  #6
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15
Alhasan is on a distinguished road
Quote:
Originally Posted by whk1992 View Post
Alright, this looks utterly stupid, because I'm going to answer my question again.

Turns out that in ./etc/config/settings.sh, OpenFOAM would only load the proper Pstream library if I had already loaded the exact version of ICC needed. That was because the location of the required Pstream library is specified using $FOAM_MPI, which happened to be the version number of ICC.

Now I can finally use 16 cores instead of one.
Hey,

I am having exactly the same problem with the same error can you please elaborate on what you did on this mentioned above step.

Regards,
Hasan K.J
__________________
"Real knowledge is to know the extent of one's ignorance." - Confucius
Alhasan is offline   Reply With Quote

Old   March 3, 2015, 10:15
Default
  #7
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hello everyone,

I've got the the same problem. Every time, when I try to start <mpirun -np 2 snappyHexMesh -overwrite -parallel> I got this mistake:

--> FOAM FATAL ERROR:
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

From function UPstream::init(int& argc, char**& argv)
in file UPstream.C at line 37.

FOAM exiting

I found the file settings.sh as you told, but I don't know how to correct it.

It would be very kind, if anyone might help me.

Thank you all.

nice greetings,
Stephie
stephie is offline   Reply With Quote

Old   March 3, 2015, 14:38
Default Pstream library problem,
  #8
Member
 
Join Date: Feb 2014
Posts: 63
Rep Power: 12
Uyan is on a distinguished road
Hi I have the same problem.

I went through http://www.cfd-online.com/Forums/ope...e-openmpi.html thread and tried to recompile Pstream but i have a problem in openmpi.

When i try to recompile Pstream I get the following error

UOPwrite.C:29:17: fatal error: mpi.h: No such file or directory
#include "mpi.h"

But this problem was discussed by Bruno

http://www.cfd-online.com/Forums/ope...tml#post534205


if anyone solve this issue Please be kind enough to post the way you did it.
Uyan is offline   Reply With Quote

Old   March 7, 2015, 08:53
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 to all!

@Stephie: Uyan figured out how to fix the problem and wrote the solution in this post: http://www.cfd-online.com/Forums/ope...tml#post534224 - post #8

Please try that solution and report back to us if it works for you as well or not.
-------------
edit: Only after a week did I manage to understand you had already tried it and reported it here: http://www.cfd-online.com/Forums/ope...tml#post534307 post #8
-------------

Best regards,
Bruno
__________________

Last edited by wyldckat; March 14, 2015 at 07:25. Reason: see "edit:"
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
ERROR: unable to find library HJH CFX 6 February 26, 2019 07:52
[OpenFOAM] Xlib: extension "GLX" missing on display goldbeard ParaView 5 March 24, 2013 14:12
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 08:43
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49
[OpenFOAM] Missing library libPVFoamReaderso dirk_kehrwald ParaView 3 July 19, 2006 07:50


All times are GMT -4. The time now is 11:29.