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

problem in running parallel: ./Allrun: 62: shift: can't shift that many

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By Astrodan

Reply
 
LinkBack Thread Tools Display Modes
Old   August 17, 2013, 05:03
Default problem in running parallel: ./Allrun: 62: shift: can't shift that many
  #1
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
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!!!!
anyone knows where is the problem?
I attach the decomposeParDict file.

thanks
Mostafa
Attached Files
File Type: gz decomposeParDict.tar.gz (498 Bytes, 4 views)
adambarfi is offline   Reply With Quote

Old   August 17, 2013, 06:11
Default
  #2
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
shipman is on a distinguished road
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
)
}


// ************************************************** *********************** //
shipman is offline   Reply With Quote

Old   August 17, 2013, 10:53
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   August 17, 2013, 11:47
Default
  #4
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by wyldckat View Post
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
adambarfi is offline   Reply With Quote

Old   August 17, 2013, 11:56
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Hi Mostafa
which solver you use?see the solved code if the order is important or not.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 17, 2013, 12:25
Default
  #6
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by immortality View Post
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.
adambarfi is offline   Reply With Quote

Old   August 17, 2013, 12:27
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by adambarfi View Post
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?
wyldckat is offline   Reply With Quote

Old   August 17, 2013, 12:36
Default
  #8
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by wyldckat View Post
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
adambarfi is offline   Reply With Quote

Old   August 17, 2013, 12:43
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 likes this.
wyldckat is offline   Reply With Quote

Old   August 17, 2013, 12:58
Default
  #10
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
thank you Bruno for your quick reply.

as I refer in the problem in running parallel: ./Allrun: 62: shift: can't shift that many post, with changing the sort of equation my problem solved, but I cannot understand why this message is shown?
adambarfi is offline   Reply With Quote

Old   May 11, 2015, 09:31
Default
  #11
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 34
Rep Power: 3
Astrodan is on a distinguished road
For anyone coming here via google, this might be related to a "bug" in the RunFunctions tools, where tab characters in dictionaries are not accepted as whitespace separators between option-name and option-value

(See: http://www.openfoam.org/mantisbt/view.php?id=1689)
wyldckat likes this.
__________________
PhD Student at the Institute of Biochemical Engineering at TU München
Modelling of fluid dynamics in open photobioreactors.

System:
OpenFOAM 2.3.x, 64bit, 8 Core Xeon Workstation
Astrodan is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam Parallel running shipman OpenFOAM Running, Solving & CFD 3 August 17, 2013 10:50
Problem in Running OpenFoam in Parallel himanshu28 OpenFOAM Running, Solving & CFD 1 July 11, 2013 09:19
Running in parallel Djub OpenFOAM Running, Solving & CFD 3 January 24, 2013 17:01
RSH problem for parallel running in CFX Nicola CFX 5 June 18, 2012 18:31
Problem running a parallel fluent job on local machine via mpd highhopes FLUENT 0 March 3, 2011 06:07


All times are GMT -4. The time now is 22:04.