SYRTHE4 with Code_saturne 3.0.3

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
OROSHI

SYRTHE4 with Code_saturne 3.0.3

Post by OROSHI »

Dear Mr Yvan,

I am writting to you about the coupling between code_saturne3.0.3 and syrthes4
I installed succesfully code saturne 3.0.3 and it works perfectly. I am now trying again to install syrthes4.

I have tried to follow the process to finalize the coupling. My problems are presented as follows:

- the PLE library, I do not know where to link the PLE library in the setup.ini of syrthes install. In fact I did not see explicitely a PLE library.

- my second question concern the modfication explained in the install report of CS.3 for the post install

"Once the code is installed, a post-install step may be necessary for computing environments using a
batch system, for separate front-end and compute systems (such as Blue Gene systems), or for coupling
with SYRTHES 4 or Code Aster.
Copy or rename the <install-prefix>/etc/code saturne.cfg.template to
<install-prefix>/etc/code saturne.cfg, and uncomment and define the applicable sections.
If used, the name of the batch system should match one of the templates"

i am still a beginner in linux and I am not sure if I had just to type in the "code_saturne.cfg.template" the following line :

"### Set the location to the SYRTHES installation directory.
# syrthes =/home/angelo/syrthes_files/syrthes4.1.1-ubuntu
###"
or
### Set the location to the SYRTHES installation directory.
# syrthes =/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/src/syrthes_install
###

I attached to his email, the error.log, the setup-ini and the code_saturne.cfg.template files.

Thank you very much for your time
Attachments
file_coupling.tar
(220 KiB) Downloaded 319 times
Yvan Fournier
Posts: 4226
Joined: Mon Feb 20, 2012 3:25 pm

Re: SYRTHE4 with Code_saturne 3.0.3

Post by Yvan Fournier »

Hello,

The PLE library is part of Code_Saturne (see libple in Code_Saturne sources). Optionally, it ma be installed separately (and the Code_Saturne configure has a --with-ple option for this case), which may be useful when using multiple version of each code.

By default, it is installed with Code_Saturne, so the path for PLE in Syrthe's setup.ini is the same as the value you used as --prefix for Code_Saturne.

For post-install, do not modify code_saturne.cfg.template: copy it to code_saturne.cfg, and edit the copy (the template may be overwritten by a new install, but the true .cfg file is not changed)

Remove leading # characters to uncomment sections. In your case, that would probably be:
### Set the location to the SYRTHES installation directory.
syrthes =/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/arch/Linux_x86_64
###
Regards,

Yvan
OROSHI

Re: SYRTHE4 with Code_saturne 3.0.3

Post by OROSHI »

Dear Mr Yvan,

Thank you very much for your fast reply.

If I clearly understoo d I just have to specify
#ple USE=no
#ple USE=yes PATH=/.../saturne/opt/libple-1.0/arch/MY_ARCH
ple USE=yes PATH=/home/angelo/CFD/code_saturne-3.0.3/bin/code_saturne
#
syrthescfd INSTALL=yes
#

However , I still have the same error
cc1: error: /home/angelo/CFD/code_saturne-3.0.3/bin/code_saturne/include: Not a directory
make[1]: *** [/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/build//bilan.o] Error 1
make: *** [syrthescfd] Error 2
../syrthescfd.log:cc1: error: /home/angelo/CFD/code_saturne-3.0.3/bin/code_saturne/include: Not a directory
../syrthescfd.log:make[1]: *** [/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/build//bilan.o] Error 1
../syrthescfd.log:make: *** [syrthescfd] Error 2

Thank you very much for your time.

Regards
Yvan Fournier
Posts: 4226
Joined: Mon Feb 20, 2012 3:25 pm

Re: SYRTHE4 with Code_saturne 3.0.3

Post by Yvan Fournier »

Hello,

Remove the end of the path (bin/code_saturne) from the "ple" line.

Regards,

Yvan
OROSHI

Re: SYRTHE4 with Code_saturne 3.0.3

Post by OROSHI »

Hello Mr Yvan,

Thank you very much for the fast reply , I succed to solve my PLE problem.
I tried to test the coupling my running the following command indicated in the tutorial code_saturne3.0/Syrthes4

code_saturne 3.0.3 study/case generation
o Creating study '3disks2D'...
o Creating case 'fluid'...
Cannot locate SYRTHES installation.usr:~

I copy the code_saturne.cfg.template to code_saturne.cfg in home/usr/CFD/code_saturne-3.0.3/etc
and add
### Section for Code_Saturne installation customizations.

[install]
### Select the batch system type and job template.
# batch =
###
### Define installation prefixes of alternate builds for compute tasks.
### Either the absolute name or the base name of the installation prefix may
### be used (using the more concise base name assumes a consistent naming
### scheme, with builds installed side-by-side).
# compute_versions =
###
### Set the location to the SYRTHES installation directory.
syrthes =/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/arch/Linux_x86_64
###
### Set the location to the Code_Aster installation directory.
# aster =
###
### Optional path to sourcable shell environment initialization file
### (similar to .profile or .bashrc, specific to Code_Saturne).
# rcfile =

I have tried different things but it still not detected the SYRTHE installation.
Do you know waht I should do ?
Thank you again for your help and time.

Best regards
Yvan Fournier
Posts: 4226
Joined: Mon Feb 20, 2012 3:25 pm

Re: SYRTHE4 with Code_saturne 3.0.3

Post by Yvan Fournier »

Hello,

An alternate solution would be to source the syrthes profile before running the code_saturne commands:
  • source /home/angelo/syrthes_files/syrthes4.1.1-ubuntu/arch/Linux_x86_64/bin/syrthes.profile
Also, could you run:
  • ls /home/usr/CFD/code_saturne-3.0.3/etc
to check for a mismatch in the file names.

Regards,

Yvan
OROSHI

Re: SYRTHE4 with Code_saturne 3.0.3

Post by OROSHI »

Dear Mr Yvan,

I put these commands in the Bashrc before lauching a coupling case :
# setup code saturne environment
export PATH=$PATH:/home/angelo/CFD/code_saturne-3.0.3/bin/
# syrthes
. /home/angelo/syrthes_files/syrthes4.1.1-ubuntu/arch/Linux_x86_64/bin/syrthes.profile

Do you think there are enough to source the Syrthes.

When I run this command ls /home/usr/CFD/code_saturne-3.0.3/etc, I have
bash_completion.d code_saturne.cfg ~
code_saturne.cfg code_saturne.cfg.template~
Perhaps SYRTHES4_HOME must be modified for the coupling ?
echo $SYRTHES4_HOME
/home/angelo/syrthes_files/syrthes4.1.1-ubuntu/arch/Linux_x86_64

Best regards
Yvan Fournier
Posts: 4226
Joined: Mon Feb 20, 2012 3:25 pm

Re: SYRTHE4 with Code_saturne 3.0.3

Post by Yvan Fournier »

Hello,

Yes, this seems OK. Does it work for you ?

The value of SYRTHES4_HOME seems to be the one you used in code_saturne.cfg (as it should be), so I do not understand why it was ignored.

Regards,

Yvan
OROSHI

Re: SYRTHE4 with Code_saturne 3.0.3

Post by OROSHI »

Hello,
Unfortunatelly I still have the same message saying that SYRTHE installation is not located

Best regards
Yvan Fournier
Posts: 4226
Joined: Mon Feb 20, 2012 3:25 pm

Re: SYRTHE4 with Code_saturne 3.0.3

Post by Yvan Fournier »

Hello,

To help debug this, could you replace the bin/cs_create.py file in the sources with the attached file, which you need to rename to cs_create.py (I added a few print statements, and let Python handle the error) ?

You will need to reinstall. To avoid reinstalling, you can also replace it under
<install_prefix>/lib/python<python_version>/site-packages/code_saturne.

Best regards,

Yvan
Attachments
cs_create.py.txt
(20.47 KiB) Downloaded 327 times
Post Reply