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

Running OpenFoam with another MPI version

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2022, 09:41
Default Running OpenFoam with another MPI version
  #1
New Member
 
Pere
Join Date: Mar 2022
Location: Mallorca
Posts: 16
Rep Power: 4
katiuskas is on a distinguished road
Dear foamers,

I am currently struggling to run a parallel simulation (with OpenFOAM v2012) on a cluster (Cent OS 7.9.2009). I rely on the openmpi versions already installed on the cluster.

Until now, I ran the simulations using a version called ‘mpi/openmpi-x86_64’. However, only ‘mpi/openmpi-4.1.2’ is allowed for multi-node simulations (which is something I need for nProcessors > 48).
When I changed to this other version, the simulation produced an empty log file (and I had to stop the job manually).

In the bashrc file, I have
Code:
WM_MPLIB=SYSTEMOPENMPI
The job submission script looks something like this:
Code:
module load mpi/openmpi-4.1.2
source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc

export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
cd $PBS_O_WORKDIR

# Host name
cat $PBS_NODEFILE 
(
for host in `cat $PBS_NODEFILE | sort -u -V`
do
     count=`grep $host $PBS_NODEFILE | wc -l`
     echo $host cpu=$count
done
) > host_file
cat host_file

######## Start the solver ###############
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Set solver name
solver="mpirun -np $PBS_NP --hostfile host_file pimpleFoam -parallel"

# Run the solver
runApplication $solver
mv log.mpirun log.pimpleFoam
I would appreciate any help. Thanks!
katiuskas is offline   Reply With Quote

Reply

Tags
mpi, parallel, pbs, version


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
different results form openfoam 3.0.1 to 1912 yuno OpenFOAM Running, Solving & CFD 0 September 28, 2020 03:09
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36


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