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

Customized solver to run in parallel

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2006, 09:26
Default Hi, I have a customized sol
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi,

I have a customized solver (not a standard OpenFOAM solver). It ran fine in serial. When I ran it in parallel, AMG failed. Changed to ICCG/BICCG, ran with only a warning at each time step. I have not checked whether the results are correct.

When looking at the code, is there a way to tell whether it is "parallel-ready"?

Pei
hsieh is offline   Reply With Quote

Old   September 20, 2006, 13:57
Default Hi, I have a customized sol
  #2
New Member
 
Jojo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
jojo is on a distinguished road
Hi,

I have a customized solver as well. However, I do not manage to run it in parallel while it runs fine in serial.

I get the following message:
-----------------------------------------------------------------------------
It seems that [at least] one of the processes that was started with
mpirun did not invoke MPI_INIT before quitting (it is possible that
more than one process did not invoke MPI_INIT -- mpirun was only
notified of the first one, which was on node n0).

mpirun can *only* be used with MPI programs (i.e., programs that
invoke MPI_INIT and MPI_FINALIZE). You can use the "lamexec" program
to run non-MPI programs over the lambooted nodes.
-----------------------------------------------------------------------------

It seems that wmake compilation of custom solvers has an issue with parallelization (I have seen another post with the same problem).
jojo is offline   Reply With Quote

Old   September 20, 2006, 15:46
Default Hey, I think first you woul
  #3
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
Hey,

I think first you would need to understand the existing solvers like GaussSeidel. Set up a very simple test case like 10x1x1 cells and a very simple equation and check whether each processor receives what you would expect.

markus
hartinger is offline   Reply With Quote

Old   September 21, 2006, 05:59
Default - make sure your solver uses a
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
- make sure your solver uses argList to extract the command line options
- make sure your solver gets called with a -parallel option
mattijs is offline   Reply With Quote

Reply

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
AMG Solver in parallel fra76 OpenFOAM Running, Solving & CFD 13 February 22, 2007 03:38
Parallel execution of customized solver otsuki OpenFOAM Running, Solving & CFD 2 March 24, 2006 08:47
Parallel solver with 3.2 robbie Siemens 1 August 10, 2004 08:29
3D PARALLEL SOLVER (MPI Lib) Saud Khashan Main CFD Forum 8 July 14, 1999 09:52


All times are GMT -4. The time now is 12:39.