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

Running icoFoam in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2015, 16:27
Default Running icoFoam in parallel
  #1
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Dear Foamers,

I have installed OF 2.4 in my cluster and am trying to run icoFoam in parallel. However, I get the following error message.

Code:
--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor


--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

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


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

FOAM aborting


--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

    From function UPstream::init(int& argc, char**& argv)
FOAM aborting


    in file UPstream.C at line 79.

FOAM aborting


--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

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

FOAM aborting

#0  #0  #0  #0  Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process.  Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption.  The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.  

The process that invoked fork was:

  Local host:          taub098 (PID 19185)
  MPI_COMM_WORLD rank: 0

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process.  Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption.  The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.  

The process that invoked fork was:

  Local host:          taub098 (PID 19183)
  MPI_COMM_WORLD rank: 0

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
NOTE: This is how my batch script looks.
Code:
#PBS -q cse
#PBS -l nodes=1:ppn=4
#PBS -l walltime=00:01:00
#PBS -j oe
#PBS -o dc_0V
#PBS -N dc_0 
cd ${PBS_O_WORKDIR}

module load mvapich2/1.6-gcc+ifort

#blockMesh
#decomposePar
mpiexec -np 4 icoFoam -parallel
Please let me know what is the source of this error and how to correct it.

Thanks

Regards,
Vishal

Last edited by wyldckat; August 30, 2015 at 17:43. Reason: Added [CODE][/CODE] markers
nandiganavishal is offline   Reply With Quote

Old   August 30, 2015, 17:46
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: You need to check the options that mpiexec needs for working, because the problem seems to be that the "-parallel" argument was not delivered to icoFoam for using. You need to talk with the system administrator of your cluster and/or check the documentation of mvapich2 that you're using.

For example:
Code:
mpiexec --help
wyldckat is offline   Reply With Quote

Old   September 1, 2015, 16:37
Default
  #3
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Thanks, Bruno for the reply. I was able to figure out the solution to the problem by loading a different module in the batch script.

module load openmpi/1.8.4-gcc-4.9.2

Thanks

Regards,
Vishal
nandiganavishal 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
OF 2.0.1 parallel running problems moser_r OpenFOAM Running, Solving & CFD 9 July 27, 2022 03:15
problem about running parallel on cluster killsecond OpenFOAM Running, Solving & CFD 3 July 23, 2014 21:13
Problem in Running OpenFoam in Parallel himanshu28 OpenFOAM Running, Solving & CFD 1 July 11, 2013 09:19
Issues with running in parallel OF-2.2.0 kalyangoparaju OpenFOAM 0 June 21, 2013 12:41
Running PimpleDyMFoam in parallel paul b OpenFOAM Running, Solving & CFD 8 April 20, 2011 05:21


All times are GMT -4. The time now is 00:26.