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/)
-   -   problem in running parallel: ./Allrun: 62: shift: can't shift that many (http://www.cfd-online.com/Forums/openfoam-solving/122330-problem-running-parallel-allrun-62-shift-cant-shift-many.html)

adambarfi August 17, 2013 06:03

problem in running parallel: ./Allrun: 62: shift: can't shift that many
 
1 Attachment(s)
Hi everybody

I've been used parallel running till this morning. I restart my system and when I want to run my case in parallel, which I had ran it in parallel this morning correctly, It said:

Code:

Create time

Time = 0
Create mesh

Calculating distribution of cells
Selecting decompositionMethod scotch

Finished decomposition in 0.12 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes

Processor 0
    Number of cells = 7513
    Number of faces shared with processor 1 = 90
    Number of faces shared with processor 2 = 112
    Number of processor patches = 2
    Number of processor faces = 202
    Number of boundary faces = 15228

Processor 1
    Number of cells = 7493
    Number of faces shared with processor 0 = 90
    Number of faces shared with processor 2 = 150
    Number of processor patches = 2
    Number of processor faces = 240
    Number of boundary faces = 15168

Processor 2
    Number of cells = 7494
    Number of faces shared with processor 0 = 112
    Number of faces shared with processor 1 = 150
    Number of processor patches = 2
    Number of processor faces = 262
    Number of boundary faces = 15204

Number of processor faces = 352
Max number of cells = 7513 (0.173333% above average 7500)
Max number of processor patches = 2 (0% above average 2)
Max number of faces between processors = 262 (11.6477% above average 234.667)


Processor 0: field transfer
Processor 1: field transfer
Processor 2: field transfer

End.

I'm so confused!!!!:confused:
anyone knows where is the problem?
I attach the decomposeParDict file.

thanks
Mostafa

shipman August 17, 2013 07:11

Hi,

try following descriprtion, i think that it will work. In the use of scotch u shoul also define the processorWeights. it work fine with my calculations

[CODE]

numberOfSubdomains 3;

method scotch;

scotchCoeffs
{
processorsWeights
(
1
1
1
)
}


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

wyldckat August 17, 2013 11:53

Greetings to all!

@Mostafa: Well, you didn't exactly indicate the error message in particular, only on the title itself, which isn't much information.

My guess is that you copied the case folder from one place to another and in the new location, somewhere, there is a name with a space in it.

Best regards,
Bruno

adambarfi August 17, 2013 12:47

Quote:

Originally Posted by wyldckat (Post 446305)
Greetings to all!

@Mostafa: Well, you didn't exactly indicate the error message in particular, only on the title itself, which isn't much information.

My guess is that you copied the case folder from one place to another and in the new location, somewhere, there is a name with a space in it.

Best regards,
Bruno

dear Bruno,
the error is:

./Allrun: 62: shift: can't shift that many

as you see in my last post there isnt any error in running decomposepar but in terminal the above message is shown.

I changed the sort of solving my equations and it worked!!! I had been solving Ueqn, Teqn, Ceqn, peqn. I changed the sort to Ueqn, peqn, Teqn, Ceqn and it worked!!!

do you know what is the reason???

thank you
Mostafa

immortality August 17, 2013 12:56

Hi Mostafa
which solver you use?see the solved code if the order is important or not.

adambarfi August 17, 2013 13:25

Quote:

Originally Posted by immortality (Post 446317)
Hi Mostafa
which solver you use?see the solved code if the order is important or not.

Hi Ehsan,
I'm using a modified buoyantBoussinesqSimpleFoam.
my case was ran in usual way but when I want to run it in parallel it failed.

wyldckat August 17, 2013 13:27

Quote:

Originally Posted by adambarfi (Post 446320)
my case was ran in usual way but when I want to run it in parallel it failed.

What was the exact command you tried to use in the Allrun script for running in parallel?

adambarfi August 17, 2013 13:36

Quote:

Originally Posted by wyldckat (Post 446321)
What was the exact command you tried to use in the Allrun script for running in parallel?

Dear Bruno,

Code:

#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

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

application=`getApplication`

#runApplication $application
runApplication decomposePar
runParallel $application 3
runApplication reconstructPar
streamFunction
foamToTecplot360


wyldckat August 17, 2013 13:43

OK, now we're getting somewhere :)

That error you got is related to this line:
Code:

runParallel $application 3
It can give you that error you got if:
  • the "$application" variable is empty;
  • or if the number "3" is missing;
  • or is you accidentally had "$application3";
  • or if the value inside "$application" was "buoyantBoussinesqSimpleFoam2" or "buoyantBoussinesqSimpleFoam-cookies". This value would come from the "system/controlDict", defined in the keyword "application".
Best regards,
Bruno

adambarfi August 17, 2013 13:58

thank you Bruno for your quick reply.

as I refer in the http://www.cfd-online.com/Forums/ope...tml#post446313 post, with changing the sort of equation my problem solved, but I cannot understand why this message is shown?:confused:


All times are GMT -4. The time now is 08:27.