CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Effects on fvSolution file on calling mpi run

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2019, 06:12
Default Effects on fvSolution file on calling mpi run
New Member
Aaron Pumnul
Join Date: May 2019
Posts: 9
Rep Power: 7
aaron99 is on a distinguished road
I'm getting different behaviors while rereading fvSolution file using mpirun and without using it.

I modified my fvSolution.H file and added a fvSolution.C (also added it to Make)

bool::Foam::fvSolution::read() {
  Info << "fvSolution rereading" << endl;
  return solution::read();
fvSolution.H (I override the read() method)
  virtual bool read();
from my shell I run the tutorial in:

1. sequential run: (without mpi)
./Allrun &
echo " " >> fvSolution # this just puts a blank line at the end of fvSolution, causing it to be reread
when I check the log, I see "fvSolution rereading" inside it, as expected.

2. mpi parallel run
mpirun -np 4 buoyantBoussinesqSimpleFoam -parallel > log.bbsf &
echo " " >> fvSolution
but the log.bbsf contains no "fvSolution rereading" in it.

How can I explain that behavior ? (I use OpenFoam 2.3.x version, if that matters at all)
This doesn't make any sense to me.

Allrun.par is just a tailored version of Allrun.
cd ${0%/*} || exit 1    # run from this directory

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


runApplication blockMesh
cp 0/ 0/T
runApplication setFields
runApplication decomposePar
# runApplication $application
# runApplication mpirun -np 4 $application -parallel 
# ----------------------------------------------------------------- end-of-file

Last edited by aaron99; May 27, 2019 at 07:20.
aaron99 is offline   Reply With Quote


fvsolution, mpirun

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
OpenFoam "Permission denied" and "command not found" problems. OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57

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