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

SBATCH decomposePar error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2021, 14:34
Post SBATCH decomposePar error
  #1
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Hi,

This is my first run with server. I've a good looking test slurm file down below. Meshing goes well but I can't decompose the case. Other than that, all other lines work fine. I mean, if I decompose the case on my PC and upload to the server everything runs smoothly.

Code:
decomposePar: error while loading shared libraries: libmetis.so: cannot open shared object file: No such file or directory
Also I found metis source/export in the main directory of openfoam. I searched for the issue but couldn't find anything so this is probably not a bug, it could be due to my lack of knowledge.

I'm open to any suggestions. Files are attached.

Kind regards,
Said.
Attached Files
File Type: txt SBATCH_openfoam.txt (1.3 KB, 7 views)
saidc. is offline   Reply With Quote

Old   November 12, 2021, 15:24
Default
  #2
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
What is the output of:
Code:
module spider openfoam
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   November 12, 2021, 15:52
Default
  #3
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Hi s1291,

Output is:

Code:
cmdTrace.c(713):ERROR:104: 'spider' is an unrecognized subcommand
cmdModule.c(411):ERROR:104: 'spider' is an unrecognized subcommand
Kind regards,
Said.
saidc. is offline   Reply With Quote

Old   November 12, 2021, 16:05
Default
  #4
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
My guess is that you're using Tcl modules instead of Lmod. nevertheless, what is the output of:

Code:
module avail 2>&1 | grep -i openfoam
and
Code:
module avail 2>&1 | grep -i metis
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   November 12, 2021, 16:13
Default
  #5
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
openfoam exist on the list "module avail" but metis not on the list. Also there is no output for both lines, just returns nothing. If I type "module avail" I can see the "centos7.3/app/openfoam/v1912" module.

Edit:

Code:
-bash-4.2$ module avail 2>&1 | grep -i openfoam
centos7.3/app/openfoam/8
centos7.3/app/openfoam/v1912
-bash-4.2$ module avail 2>&1 | grep -i metis
-bash-4.2$
saidc. is offline   Reply With Quote

Old   November 12, 2021, 16:18
Default
  #6
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
Another question:
  • Why you are sourcing OpenFOAM etc/bashrc before loading it using module load ... ?
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   November 12, 2021, 16:33
Default
  #7
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
I copied that part from server's example slurm file, now I tried to run with switch them but nothing changed. I'm still getting the same error.
saidc. is offline   Reply With Quote

Old   November 13, 2021, 04:55
Default
  #8
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Hi,

I solved the previous problem with sourcing everything in the slurm file but now I can't use restore0Dir command. It is not working.

Code:
/tmp/slurmd/job7894762/slurm_script: line 235: restore0Dir: command not found
What is the reason of this?

Kind regards,
Said.
saidc. is offline   Reply With Quote

Old   November 13, 2021, 06:55
Default
  #9
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
That command is not necessary. But you can use it after sourcing the RunFunctions script:

Code:
source ${WM_PROJECT_DIR}/bin/tools/RunFunctions
Now, the command restore0Dir (in fact it is a shell function) should be available.
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   November 13, 2021, 07:51
Default
  #10
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Quote:
Originally Posted by s1291 View Post
That command is not necessary. But you can use it after sourcing the RunFunctions script:

Code:
source ${WM_PROJECT_DIR}/bin/tools/RunFunctions
Now, the command restore0Dir (in fact it is a shell function) should be available.
As you said that line solved the problem:

Code:
source /truba/sw/centos7.3/app/openfoam/OpenFOAM-v1912/bin/tools/RunFunctions
Thanks a lot but I wonder how to construct 0 directories in the processor files without restore0Dir command?

Kind regards,
Said.
saidc. is offline   Reply With Quote

Old   November 13, 2021, 15:07
Post
  #11
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Hi again,

I thought the problem was solved but changeDictionary can not import boundary conditions to processor files correctly. I searched for the reason for this but couldn't find a solution.

Code:
[4] --> FOAM FATAL ERROR: 
[4] cannot be called for a calculatedFvPatchField
    on patch H_spheres1 of field U in file "/truba/home/tbag100/openfoam_run/simulation_1/processor4/0/U"
    You are probably trying to solve for a field with a default boundary condition.
[4] 
[4]     From function Foam::tmp<Foam::Field<Type> > Foam::calculatedFvPatchField<Type>::gradientInternalCoeffs() const [with Type = Foam::Vector<double>]
[4]     in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 188.
[4] 
FOAM parallel run aborting
SLURM
Code:
ideasUnvToFoam Mesh_Simulation_1.unv > log.ideasUnvToFoam 2>&1

transformPoints -scale "(0.001)" > log.transformPoints 2>&1

createPatch -overwrite > log.createPatch 2>&1

decomposePar > log.decomposePar 2>&1

source /truba/sw/centos7.3/app/openfoam/OpenFOAM-v1912/bin/tools/RunFunctions
restore0Dir -processor

mpirun changeDictionary -parallel > log.changeDictionary 2>&1

mpirun buoyantPimpleFoam -parallel > log.buoyantPimpleFoam 2>&1

reconstructPar > log.reconstructPar 2>&1
processor0/0 and log files are attached. Any help would be much appreciated.

Edit:
I figured it out how to fix it. I just used restore0Dir and changeDictionary (serial) before the decomposition. Right now everythings works fine for me.


Kind regards,
Said.
Attached Files
File Type: zip FILES.zip (13.9 KB, 6 views)

Last edited by saidc.; November 15, 2021 at 02:32.
saidc. is offline   Reply With Quote

Reply

Tags
decompose, decomposepar, sbatch, slurm


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 03:54.