Problem of parallel run for codesaturne 3.0

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yhuang
Posts: 32
Joined: Tue Mar 27, 2012 2:14 pm

Problem of parallel run for codesaturne 3.0

Post by yhuang »

Hello,everyone

I want to known how to set the number of processors without the GUI for codesaturne 3.0?

The number of processors can be set by "NUMBER OF PROCESSORS" in the runcase for codesaturne 2.0.

Thanks very much!

Yuan Huang
Last edited by yhuang on Tue Nov 20, 2012 4:51 am, edited 1 time in total.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem of parallel run for codesaturne 3.0

Post by Yvan Fournier »

Hello,

In DATA, copy "REFERENCE/cs_user_scripts.py" to ".", and adapt it to your needs (but If you are not using the GUI, I assume you are already usinh this file. The definition of the number of processors is in there, near the end of the example file).

Regards,

Yvan
yhuang
Posts: 32
Joined: Tue Mar 27, 2012 2:14 pm

Re: Problem of parallel run for codesaturne 3.0

Post by yhuang »

Yvan Fournier wrote:Hello,

In DATA, copy "REFERENCE/cs_user_scripts.py" to ".", and adapt it to your needs (but If you are not using the GUI, I assume you are already usinh this file. The definition of the number of processors is in there, near the end of the example file).

Regards,

Yvan

Hello

I set the number of processors by "case.n_procs" in cs_user_scripts.py, but there is error.

Can you tell me the detail?

Thank you!


Yuan Huang
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem of parallel run for codesaturne 3.0

Post by Yvan Fournier »

Hello,

Are you using a batch system ? What is the error ?

Regards,

Yvan
Post Reply