CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   parallel bug (http://www.cfd-online.com/Forums/openfoam-solving/67400-parallel-bug.html)

ranas August 13, 2009 16:33

parallel bug
 
hello all,
I am calculate a foil pitching.

$ mpirun -np 2 `which icoDyMFoam` -parallel < /dev/null >& log &

The error is shown below.Can anyone tell me what this error message means?

-------------------------------------------------------
PID : 20238
Case :
nProcs : 2
Slaves :
1
(
node31.20239
)
Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: velocityLaplacian
[1]
[1] [0]
[0]
[0] size 580 is not equal to the given value of 292
[0]
[0] file: /home/qqj/OpenFOAM/qqj-1.5.x/run/naca0012_test/processor0/0/pointMotionU::foil from line 46 to line 637.[0][0] From function Field<Type>::Field(const word& keyword, const dictionary& dict, const label s)[0] in file /home/qqj/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/Field.C at line 224.[0]
FOAM parallel run exiting[0][node31:20238] MPI_ABORT invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1
[1] size 580 is not equal to the given value of 292[1][1] file: /home/qqj/OpenFOAM/qqj-1.5.x/run/naca0012_test/processor1/0/pointMotionU::foil from line 46 to line 637.[1][1] From function Field<Type>::Field(const word& keyword, const dictionary& dict, const label s)[1] in file /home/qqj/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/Field.C at line 224.[1]
FOAM parallel run exiting[1]
[node31:20239] MPI_ABORT invoked on rank 1 in communicator MPI_COMM_WORLD with errorcode 1

chiven August 13, 2009 20:50

Hi, ranas, your mpi command seems ok, please run it without parallel at first. Maybe the problem is not at the point of prallel. please also check your B.C. setting of pointMotionU.

best regards,
Chiven

ranas August 13, 2009 22:46

Hi,chiven,it works well without parallel. I find another similar problem, but i don not understand what they said.

http://www.cfd-online.com/Forums/ope...atch-case.html

best wish
ranas

albcem August 14, 2009 01:11

Try changing your decomposePar dictionary settings to use metis and see if it helps:


FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object decomposeParDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


numberOfSubdomains 2;

method metis;


metisCoeffs
{
processorWeights
(
1
1
);
}


distributed no;


// ************************************************** *********************** //

ranas August 14, 2009 03:10

Hi, cem
I tried and it dosn't work. The log file:

Exec : /home/qqj/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linux64GccDPOpt/icoDyMFoam -parallel
Date : Aug 14 2009
Time : 15:02:42
Host : node31
PID : 21961
Case : /home/qqj/OpenFOAM/qqj-1.5.x/run/naca0012_test
nProcs : 2
Slaves :
1
(
node31.21962
)
Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: velocityLaplacian
[0]
[0]
[0] size 580 is not equal to the given value of 340
[0]
[0] file: /home/qqj/OpenFOAM/qqj-1.5.x/run/naca0012_test/processor0/0/pointMotionU::foil from line [1]
46 to line 637.
[0]
[0] From function Field<Type>::Field(const word& keyword, const dictionary& dict, const label s)
[0] in file /home/qqj/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/Field.C at line 224.
[0]
FOAM parallel run exiting
[0]
[1]
[1] size 580 is not equal to the given value of 244
[1]
[1] file: /home/qqj/OpenFOAM/qqj-1.5.x/run/naca0012_test/processor1/0/pointMotionU::foil from line 46 to line 637.
[1]
[1] From function Field<Type>::Field(const word& keyword, const dictionary& dict, const label s)
[1] in file /home/qqj/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/Field.C at line 224.
[1]
FOAM parallel run exiting
[1]
[node31:21961] MPI_ABORT invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1
[node31:21962] MPI_ABORT invoked on rank 1 in communicator MPI_COMM_WORLD with errorcode 1

ranas August 14, 2009 03:15

I found that 580 is the number of grid on the nacafoil. It said "size 580 is not equal to the given value of 340". I guess the grid on the nacafoil is not decomposed into two part.

podallaire August 17, 2009 11:28

Hi,

I have the same problem, posted my error here :

http://www.cfd-online.com/Forums/ope...atch-case.html

Regards,

PO

ranas August 19, 2009 05:35

Hi, PO
Modify the files pointMotionU in the processor0/0 processor1/0 .... after you execute the command "decomposePar" . I found that the boundary condition can not be divided into several parts. You can do it youself. I do not know why the command does not work, may be it is a bug. Hope it is helpful.

best regards

ranas


All times are GMT -4. The time now is 17:40.