I am facing issues in compiling my script file on the cluster for abaqus 2021..
error:
**********************************************************************************************************
File "SMAPylModules/SMAPylDriverPy.m/src/driverEnv.py", line 347, in envRunFile
File "/home/19me92r10/abaqus_v6.env", line 2, in <module>
if 'SLURM_PROCID' in os.environ:
NameError: name 'os' is not defined
********************************************************************************************************
I am using the following lines of code for generating the mp_host_list and dumping it into my abaqus_v6.env file:-
********************************************************************************************************
srun hostname | sort > \\\$node_list
nodes="\\\$(cat ABAQUS_NODES)"
for i in `echo "\\\$nodes"| xargs -n1 | uniq`; do mp_host_list=\\\${mp_host_list}\\\$(echo "['\\\${i}',\\\$(echo "\\\$nodes" | xargs -n1 | grep \\\$i | wc -l)],"); done
mp_host_list="\\\$(echo "\\\$mp_host_list" | sed 's/,\\\$//g')"
export mp_host_list
echo "mp_host_list=\\\${mp_host_list}" > abaqus_v6.env
*********************************************************************************************************Abaqus
