Error when running through Slurm
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 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 |
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.
|
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.
|
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 Code:
Build: 5.x-68e8507efb72 Code:
Build: 5.x Code:
/*---------------------------------------------------------------------------*\ |
Cool, never really noticed that before, I'll give it a try.
Thanks! Sita |
All times are GMT -4. The time now is 20:06. |