# CodeSaturne 3.0.3 issue on a PBS cluster

**URL:** <https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330>\
**Category:** Installation issues\
**Created:** [February 7, 2017, 2:05pm UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330 "2017-02-07T14:05:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobopart](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@Bobopart](https://code-saturne.org/forum/u/Bobopart)\
**Post date:** [February 7, 2017, 2:05pm UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330/1 "2017-02-07T14:05:00Z")

</div>

Hello everybody,

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 :

> 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   
> 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.commandscommand  
> 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

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:

> self.env\_modulecmd = “/cm/local/apps/environment-modules/Modules/3.2.10/bin/modulecmd”

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.

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

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [February 8, 2017, 12:13am UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330/2 "2017-02-08T00:13:22Z")

</div>

Hello,

Yes, your analysis seems good.

There is an install option for _Code\_Saturne_ to ignore modules (i.e. not try to recored loeded modules and reload those when running) at configure time (–with-modules=no).

Unfortunately, we did not plan an option to bypass module handling (to handle you own) for an installed verion, assuming that if the module command itself was updated, modules used to compile the code would change also (which might or might not be the case).

A deeper implementation issue is that environment modules are usually handled as an alias, and commands in specific directories, such as “/cm/local/apps/environment-modules/Modules/3.2.10/bin/modulecmd”, but not executable in the main path which might be “stable” across upgrades, making automation more diffficult.

So ideally, if the environment changed, _Code\_Saturne_ should be reinstalled (in which case I recommend upgrading to the latest bug-fix release, 3.0.9).

Is it realistic to ask the admins to handle this ? If not, I can provide suggestions on installing the code on your own account (_Code\_Saturne_ does not require admin priviledges).

Also note that version 3.0 is nearing end of life: when we release 5.0 late April, 3.0 will become “obsolete” and reach the end of its 4 year maintenace lifetime (though this is a separate issue).

Best regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Bobopart](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@Bobopart](https://code-saturne.org/forum/u/Bobopart)\
**Post date:** [February 8, 2017, 9:30am UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330/3 "2017-02-08T09:30:41Z")

</div>

Hello Yvan,

I do understand. I am trying to install Code\_Saturne V3 on my own account, up to now, it goes smoothly. If it fails, I will ask the administrator of the cluster to reinstall Code\_Saturne with the option --with-modules=no.

For your advice, I know that V3 will become obsolete soon but we developed specific models for the lagrangian modules. I am quite afraid to integrate them in the new stable versions since we modified some core subroutines of the lagrangian module (lagune, lages1, etc.). I didn’t have a look at the new version yet, but It seems that the lagrangian module has been quite modified since the version of Code\_Saturne 3.0. Therefore, I guess it will take me a lot time to integrate our models in a newer version.  
I have no solution to that problem yet, I would like to use the new stable version but I cannot spend too much time in integrating our models in this version.

Best regards,

Boris

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [February 8, 2017, 12:40pm UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330/4 "2017-02-08T12:40:30Z")

</div>

Hello,

Yes, there were massive changes in the Lagrangian model last year. We did notice some bugs in the previous implementation of the model (especially, 2nd order was not working), so moving to the new version in the following months would be recommended (directly on version 5.0, bypassing version 4.0).

All that is statistics related should be simpler in the new version (I still have a few changes pending for the boundary statistics).

Best regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Bobopart](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@Bobopart](https://code-saturne.org/forum/u/Bobopart)\
**Post date:** [February 8, 2017, 5:10pm UTC](https://code-saturne.org/forum/t/codesaturne-3-0-3-issue-on-a-pbs-cluster/1330/5 "2017-02-08T17:10:46Z")

</div>

Hello,

That’s the massive changes I am afraid of, it does sound as if it will not be easy to integrate our models in these new versions. But I know that I will have to do it in the near future.

For my problem, I installed Code\_Saturne 3.0.7 in my home directory this morning, and I am currently doing some tests. Up to now, all is going smoothly.

Thanks for your advices !

Best regards

Boris
