Syrthes CFD installation

Hello,

I tried to couple Code Satrune and Syrthes, turorial case 3disks2d. Each standalone calculation runs fine, but after coupling I get error:

Coupling execution between: 
   o Code_Saturne [1 domain(s)];
   o SYRTHES      [1 domain(s)];


                      Code_Saturne
                      ************

 Version:   6.0
 Path:      /home/misomg/Code_Saturne/6.0.2/code_saturne-6.0.2/arch/Linux_x86_64

 Result directory:
   /home/misomg/CFD/3disks2D/RESU_COUPLING/20200607-1340


 ****************************************
  Compiling user subroutines and linking
 ****************************************


 ****************************
  Preparing calculation data
 ****************************

 SYRTHES4 home directory: /home/misomg/syrthes4.3.5/arch/Linux_x86_64
 MPI home directory: /usr/bin
 Building the executable file syrthes.. 
ar: /home/misomg/syrthes4.3.5/arch/Linux_x86_64/lib/libsyrthes_cfd.a: No such file or directory
make: *** [Makefile:15: exe] Error 9

as I understand, I forget to install syrthescfd, but during installation I get error. I think PLE is installed correctly
in Code Saturne directory, so I cant find where problem is?

cfd_couplage.c:53:10: fatal error: ple_coupling.h: No such file or directory
make[1]: *** [Makefile:24: /home/misomg/syrthes4.3.5/build//cfd_couplage.o] Error 1
make: *** [Makefile:36: syrthescfd] Error 2
../syrthescfd.log:cfd_couplage.c:53:10: fatal error: ple_coupling.h: No such file or directory
../syrthescfd.log:make[1]: *** [Makefile:24: /home/misomg/syrthes4.3.5/build//cfd_couplage.o] Error 1
../syrthescfd.log:make: *** [Makefile:36: syrthescfd] Error 2

Attached are setup file and error log


Regards Michal
ERREUR.log (1.84 KB)
saturne-syrthes-coupling-error-.txt (3.49 KB)
setup.ini (4.15 KB)

Hello,

In “setup.ini”, for the PLE path, you simply need to remove the trailing “/lib”.

Best regards,

Yvan

Hello,

thank you, that was a problem.

Regards

Michal

Hi all,

I try to couple Code Saturne 6.0.5 and Syrthes 4.3.5.
I succeeded to compile CS but I have an error when I try to compile Syrthes linked with CS.
I have ple error and I’m not able to obtain syrthescfd binary.
I join config and setup files.

Have you ever faced these errors ?

Thanks a lot for your help.

Vincent
ERREUR.log (6.36 KB)
setup.ini (4.38 KB)
config.log (209 KB)

Hello,

You could obtain this sort of error if the PLE from code_saturne was built without MPI support, which does not seem to be the case since MPI was detected correctly by code_saturne.

What files are present you have in /opt/code_saturne-6.0.5/lib and /opt/code_saturne-6.0.5/include ?

Best regards,

Yvan

Hello Yvan,
I do not have a lib directory or an include directory, but I have libple directory.
Here are attached ls command result files.
Hope this help.
Vincent
ls_code_saturne_libple.txt (1.71 KB)
ls_code_saturne_root_directory.txt (2.18 KB)

Hello,

The code_saturne and libple directories you use should be the installation directory, not the source or build directory.

And it seems you have built code_saturne in the source directory, while using a separate directory is recommended (https://github.com/code-saturne/code_saturne/blob/master/INSTALL.md#source-build-and-install-directories).

Best regards,

Yvan

Hello and thanks for the github link.

I updated my installation and now I have separate directories but the problem continues.
Here are include and lib directories content.

Best regards
Vincent
ls_code_saturne_lib.txt (879 Bytes)
ls_code_saturne_include.txt (395 Bytes)

Hello,

OK, this stage seems OK (at least at first sight).

Is the problem on the Syrthes side still exactly the same ? Could you post the updated code_saturne config.log, syrthes.ini, and compilation error log in case there is a slight difference ?

Best regards,

Yvan

Hello Yvan, happy new year 2021 !
Sorry, due to COVID, it was difficult to have access to the server…
Here are files requested.

My user informed me that Code Saturne is Ok now.

But we still have problem with syrthes :

  • convert2syrthes4 seems missing,
  • libsyrthes_seq.a is missing
  • syrthes-pp too

Any idea ?
Thanks a lot for your help !

Best regards,
Vincent
ERREUR.log (2.05 KB)
setup.ini (4.42 KB)
config.log (196 KB)

Hello,

According to the last log, there is an error building some Syrthes tools (which are independent of code_saturne), but there is not much detail.

This is surprising, as the firs function which fails (Syrthes/EnSight conversion) should have minimal external library dependencies. Do you have any additional error essages in the terminal from which you ran the Syrthes install ?

Regards,

Yvan

Hello,

Indeed, there are some errors (I logged terminal errors in the syrthes_install.log file).

Best regards,

Vincent
syrthes_install.log (84.2 KB)
ERREUR.log (2.05 KB)
setup.ini (4.42 KB)

Hello,

It seems mpicc is not found, so you may have a configuration error (in incorrect mpicc path in setup.ini), or are missing an MPI installation.

Regards,

Yvan

Sorry Yvan, I made a change and forgot to redefine path to mpicc after.
Here is the error with the mpicc path filled.

Vincent
ERREUR.log (788 Bytes)
setup.ini (4.49 KB)
syrthes_install.log (146 KB)

Hello,

Is the installation more complete now ?

Regards,

Yvan

Hello,
The installation is more complete.
Code Saturne works alone.
Syrthes works alone.
When my user tried to make a coupled simulation, the directory creation works, GUI interface also but we have an error when we launch runcase (see picture attached).

Best regards,
Vincent

Hello,

Was code_saturne and PLE installed with MPI support ? This is necessary for the Syrthes coupling.

Regards,

Yvan

Hello,

Indeed, there were a bad path in one of the config file.
Now the previous problem is solved.

Syrthes simulations work for mono or multi procs.
Saturne simulations work for mono or multi procs.

But coupled simulation doesn’t work.
Any idea why we face this cs_syr_coupling.c:898: Erreur fatale ?

Thanks,
Vincent
run_solver.log (10.1 KB)
error.txt (584 Bytes)
coupling_parameters.py (257 Bytes)

Hello,

Could you post the top-level “run_solver” generated in RESU_COUPLING/run_id ?

Does the libsyrthes_cfd.a library exist in the Syrthes installation “lib” directory (next to libsyrthes_seq.a and libsyrthes_mpi.a) ?

Best regards,

Yvan

Hello,

Here are info requested.

Thanks again.
Vincent
run_solver.txt (456 Bytes)
syrthes-lib-dir-content.txt (336 Bytes)