CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2019, 06:12
Default Effects on fvSolution file on calling mpi run
  #1
New Member
 
Aaron Pumnul
Join Date: May 2019
Posts: 9
Rep Power: 3
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)

fvSolution.C
Code:
bool::Foam::fvSolution::read() {
  Info << "fvSolution rereading" << endl;
  return solution::read();
}
fvSolution.H (I override the read() method)
Code:
public:
  virtual bool read();
from my shell I run the tutorial in:
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom

1. sequential run: (without mpi)
Code:
./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
Code:
./Allrun.par&
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.
Code:
#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

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

application=`getApplication`

runApplication blockMesh
cp 0/T.org 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

Reply

Tags
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 9 November 30, 2018 10:20
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[OpenFOAM.org] 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 01:37.