I am trying to use Code_Saturne 3.0.3 on a PBS cluster which use the Environment Modules package. When I submit a job, it instantaneously stops and no error files are generated.
I therefore try to just initialize the computation (in interactive mode using the options --initialize), and I got the following error :
I therefore investigate a little bit, but it is not easy since I don't have admin privileges. The problem seems to come from the function set_modules in the script cs_exec_environment.py. Then, using the previous traceback, I went back to cs_script.py, and I noticed the line:code_saturne run --initialize --param CM_CS_V3_Cluster.xml
Traceback (most recent call last):
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/bin/code_saturne", line 77, in <module>
retcode = cs.execute()
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/lib/python2.6/site-packages/code_saturne/cs_script.py", line 73, in execute
return self.commands[command](options)
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/lib/python2.6/site-packages/code_saturne/cs_script.py", line 125, in run
return cs_run.main(options, self.package)
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/lib/python2.6/site-packages/code_saturne/cs_run.py", line 201, in main
domains=d)
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/lib/python2.6/site-packages/code_saturne/cs_case.py", line 95, in __init__
cs_exec_environment.set_modules(self.package_compute)
File "/cm/shared/apps/saturne/3.0.3/code_saturne-3.0.3/lib/python2.6/site-packages/code_saturne/cs_exec_environment.py", line 249, in set_modules
stdout=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
The problem is that this path is not correct, the installed version of Environment Modules is 3.2.6 on the cluster. Maybe the version has been changed after the installation of Code_Saturne.self.env_modulecmd = "/cm/local/apps/environment-modules/Modules/3.2.10/bin/modulecmd"
So, do you think that it is the reason of my problem or am i completely wrong ? It is the first time I use Code_Saturne on a cluster, and I am not familiar with such computations.
Thanks a lot
Boris