Guide to couple Saturne & SYRTHES

Miscellaneous discussion topics about Code_Saturne (development, ...)
Yvan Fournier
Posts: 4075
Joined: Mon Feb 20, 2012 3:25 pm

Re: Guide to couple Saturne & SYRTHES

Post by Yvan Fournier »

Hello,

Yes, they did.

A new version of Syrthes (4.3) should come out soon.

In the meantime, the attached patch can transform Syrthes 4.2 into a version compatible with Code_Saturne 4.0/PLE 2.0 (loosing compatibility with older versions).
To apply it, in the Syrthes source directory, call "git am <path_to_patch>".

Regards,

Yvan
Attachments
0001-Mise-jour-pour-Code_Saturne-4.0-PLE-2.0.patch.txt
(24.81 KiB) Downloaded 347 times
stefann
Posts: 25
Joined: Fri Oct 10, 2014 7:49 pm

Re: Guide to couple Saturne & SYRTHES

Post by stefann »

The patch doesn't work. Is it because I'm using the .tar.gz from the download website instead of the repo version? Is it even possible to get the repository version? I haven't seen any links to it.

Second 'git am <patch filename>' doesn't work. I get the following error:

Code: Select all

fatal: Not a git repository (or any of the parent directories): .git
I thought the apply command would be 'git apply <patch filename> which went a little farther, but I still got errors:

Code: Select all

warning: src/syrthes-kernel/include/syr_cfd_point_location.h has type 100644, expected 100755
error: patch failed: src/syrthes-kernel/src/syr_cfd_coupling.c:150
error: src/syrthes-kernel/src/syr_cfd_coupling.c: patch does not apply
error: patch failed: src/syrthes-kernel/src/syr_cfd_point_location.c:1704
error: src/syrthes-kernel/src/syr_cfd_point_location.c: patch does not apply
Any ideas?

Stefan
Yvan Fournier
Posts: 4075
Joined: Mon Feb 20, 2012 3:25 pm

Re: Guide to couple Saturne & SYRTHES

Post by Yvan Fournier »

Hello,

Try (in the top Syrthes source directory) :
patch -p1 < patch_syrthes_ple2.diff.txt
with the following attached patch.

Regards,

Yvan
Attachments
patch_syrthes_ple2.diff.txt
(24.19 KiB) Downloaded 358 times
stefann
Posts: 25
Joined: Fri Oct 10, 2014 7:49 pm

Re: Guide to couple Saturne & SYRTHES

Post by stefann »

This is not going to work:

Code: Select all

patching file src/syrthes-kernel/include/syr_cfd_point_location.h
patching file src/syrthes-kernel/src/syr_cfd_coupling.c
Hunk #2 FAILED at 150.
Hunk #3 FAILED at 378.
Hunk #4 succeeded at 381 (offset -27 lines).
Hunk #5 FAILED at 453.
Hunk #6 succeeded at 1033 (offset -68 lines).
Hunk #7 FAILED at 1192.
Hunk #8 FAILED at 1216.
Hunk #9 succeeded at 1208 with fuzz 2 (offset -65 lines).
Hunk #10 succeeded at 1553 (offset -76 lines).
Hunk #11 succeeded at 1591 (offset -76 lines).
Hunk #12 FAILED at 1676.
6 out of 12 hunks FAILED -- saving rejects to file src/syrthes-kernel/src/syr_cfd_coupling.c.rej
patching file src/syrthes-kernel/src/syr_cfd_point_location.c
Is there a repository link to download Syrthes 4.2?
Yvan Fournier
Posts: 4075
Joined: Mon Feb 20, 2012 3:25 pm

Re: Guide to couple Saturne & SYRTHES

Post by Yvan Fournier »

Hello,

Are you using Syrthes 4.1 or 4.2 ? The patch is for 4.2, so if it does not work with 4.1, you can forget using Code_Saturne 4.0 with Syrthes 4.1 (unless you adapt the patch).

Syrthes 4.3 should be released soon, but the development team is still running some tests on GUI fixes.

Regards,

Yvan
stefann
Posts: 25
Joined: Fri Oct 10, 2014 7:49 pm

Re: Guide to couple Saturne & SYRTHES

Post by stefann »

Is there a download link for Syrthes 4.2?
Yvan Fournier
Posts: 4075
Joined: Mon Feb 20, 2012 3:25 pm

Re: Guide to couple Saturne & SYRTHES

Post by Yvan Fournier »

Hello,

I though Syrthes 4.2 had been released, but it seems the version we have access to is still a release candidate...

Hopefully, Syrthes 4.3 will be released very soon (it was initially planned for late 2014), but I can't speak for the Syrthes team.

Regards,

Yvan
ffan
Posts: 66
Joined: Thu Jul 24, 2014 3:23 pm

Re: Guide to couple Saturne & SYRTHES

Post by ffan »

Dear Code_Saturne users and developers,

I followed this guide with Syrthes 4.3.0, but got:
fatal error: ple_coupling.h: No such file or directory
when compiling Syrthes. (Please see the attached log.)

I then changed to Syrthes 4.1.1. Still got the same error. Where might be the problem? Thanks.

- ffan
Attachments
syrthes4.3.0.log
(63.84 KiB) Downloaded 360 times
Yvan Fournier
Posts: 4075
Joined: Mon Feb 20, 2012 3:25 pm

Re: Guide to couple Saturne & SYRTHES

Post by Yvan Fournier »

Hello,

Could you post your Syrthes setup.ini and Code_Saturne config.log ? Did you build Syrthes after Code_Saturne, or at least its PLE sub-library ?

Regards,

Yvan
ffan
Posts: 66
Joined: Thu Jul 24, 2014 3:23 pm

Re: Guide to couple Saturne & SYRTHES

Post by ffan »

Thanks Yvan. I have not got to configure and compiling Code_Saturne yet. According to this guide, Syrthes is compiled and installed first. My Syrthes setup.ini is attached here. While compiling Syrthes, it ran into -
cfd_couplage.c:53:26: fatal error: ple_coupling.h: No such file or directory
problem (attached syrthes4.3.0.log).

- ffan
Attachments
syrthes4.3.0.log
(63.84 KiB) Downloaded 357 times
setup.ini
(4.42 KiB) Downloaded 370 times
Post Reply