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

Error when running through Slurm

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2019, 08:17
Default Error when running through Slurm
  #1
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 223
Rep Power: 16
sita is on a distinguished road
Hi all,


I'm using OpenFOAM-5.x on a Scientific Linux cluster. Everything works fine, I can run simulations no problem, but when I try running a job through Slurm, I get this error:


Code:
/opt/OpenFOAM/OpenFOAM-5.x/etc/config.sh/bash_completion: line 6658: `_rm~all_': not a valid identifier
I noticed that this error has been reported as a bug, and fixed in both OpenFOAM-5.x and OpenFOAM-dev (https://bugs.openfoam.org/view.php?id=2823). Does anyone have any idea why it still pops up when using Slurm, and how to fix this?


Many thanks!
Sita


P.S. For now I've removed the _rm~all_ bit from bash_completion, which rids me of the error, but I'm not sure whether this will get me into trouble at some later point

Last edited by sita; April 18, 2019 at 09:13. Reason: Added a P.S.
sita is offline   Reply With Quote

Old   April 25, 2019, 07:43
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,965
Blog Entries: 45
Rep Power: 126
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: It looks like your OpenFOAM 5.x installation isn't based on the most recent commits, because the bug report you mentioned is implying that it was fixed in this commit: https://github.com/OpenFOAM/OpenFOAM...a32d2a2deca208 - in which, yes, the "rm~all" script was simply removed, along with the associated auto-completion entry.
__________________
wyldckat is offline   Reply With Quote

Old   April 25, 2019, 11:49
Default
  #3
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 223
Rep Power: 16
sita is on a distinguished road
Thanks! To be honest, I don't know what commit that OpenFOAM-5.x install was based on, as I didn't install that one myself. But it looks like I can safely do without this script, great.
sita is offline   Reply With Quote

Old   April 25, 2019, 13:55
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,965
Blog Entries: 45
Rep Power: 126
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
The help argument with any OpenFOAM application should give the build with version and commit that was used to build things, e.g.:
Code:
blockMesh -help | grep Build
With luck you get something like this:
Code:
Build: 5.x-68e8507efb72
but if it was downloaded as a ZIP package, you will only get something like this:
Code:
Build: 5.x
It should also appear on the header of the runs, e.g.:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-68e8507efb72
Exec   : blockMesh
Date   : Apr 25 2019
Time   : 18:55:30
wyldckat is offline   Reply With Quote

Old   April 25, 2019, 14:51
Default
  #5
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 223
Rep Power: 16
sita is on a distinguished road
Cool, never really noticed that before, I'll give it a try.
Thanks!
Sita
sita 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
Simulation just stops output writing, but keeps running blaise OpenFOAM Running, Solving & CFD 3 August 5, 2022 04:25
Error problem while running sadia d lts tutorial kane OpenFOAM Running, Solving & CFD 2 May 26, 2018 03:38
Error Running Design of Experiments in ANSYS Fluent tytrzecki FLUENT 0 April 22, 2018 15:01
Problem in running coarse mesh(on the other hand fine mesh is running) ashokmoravaneni OpenFOAM 7 July 17, 2017 04:56
parallel running openFoam-1.5-dev lulo OpenFOAM 3 October 3, 2011 11:42


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