Page 1 of 1

Coupling CS-2.0-rc2 and Syrthes 3.4.2 : syrthes compile or l

Posted: Tue Aug 17, 2010 8:02 pm
by Alicia Consigny
Dear all,

I'm still here trying to run coupled calculations with cs-2.0-rc2 and syrthes 3.4.2, and still having some trouble !

I installed everything without any problems, only some warnings when installing syrthes. Syrthes runs fine with only solid calculation (standalone mode), same for CS. In the ncs directory, I have some files related to the coupling (libsyrcs/syr_coupling.c for example). When coupling both codes, first I cannot create a study with code_saturne create and the option --nsyr=1, so I create a saturne study and then add 2 directories DATA_SYR and SRC_SYR. In DATA_SYR I put hte files syrthes.data and syrthes.env, and I use the ussyrc.f90 subroutine in the SRC directory. When I launch code saturne batch running, I have the error message 'SYRTHES compile or link error', and the calculation stops at the stage 'Starting calculation', I have to kill the process because nothing happens then.

In the compil_syrthes.log, I have some messages about undefined reference to xxx

I attach here this file as well as the listing file from saturne. Tell me if you need to see something else to find what is going wrong.

Thanks in advance for your help,

Alicia

Re: Coupling CS-2.0-rc2 and Syrthes 3.4.2 : syrthes compile or link error

Posted: Wed Aug 18, 2010 12:28 am
by David Monfort
Hello Alicia,

Could you post the result of the following command?
code_saturne config

I think that Code_Saturne is not properly installed against SYRTHES. If you used the installer, just set the syrthes variable to the SYRTHES installation path in the setup file, and if you installed it manually, you need to have something like the following to correctly configure Code_Saturne.
./configure --prefix=/path/to/install/dir --with-syrthes=/path/to/syrthes/install/dir ...

If you haven't done one of the two previous installations, please reinstall the ncs package and let us know if it still doesn't work.

Cheers,

David

Re: Coupling CS-2.0-rc2 and Syrthes 3.4.2 : syrthes compile or link error

Posted: Wed Aug 18, 2010 11:55 am
by Alicia Consigny
Hi David,

First thank you for the quick answer !

Here is the result of the code_saturne config command :

aliciaconsigny@TSL-ORDI7:~$ /opt/code_saturne-2.0-rc2/cs-2.0-rc2/bin/code_saturne config Directories:   dirs.prefix = /opt/code_saturne-2.0-rc2/cs-2.0-rc2   dirs.exec_prefix = /opt/code_saturne-2.0-rc2/cs-2.0-rc2   dirs.bindir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/bin   dirs.includedir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/include   dirs.libdir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/lib   dirs.datarootdir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/share   dirs.datadir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/share   dirs.pkgdatadir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/share/ncs   dirs.docdir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/share/doc/ncs   dirs.pdfdir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/share/doc/ncs Auxiliary information:   dirs.ecs_bindir = /opt/code_saturne-2.0-rc2/cs-2.0-rc2/bin   dirs.syrthes_prefix = MPI library information:   mpi_lib.type = OpenMPI   mpi_lib.bindir = /opt/code_saturne-2.0-rc2/openmpi-1.4.2/bin   mpi_lib.libdir = /opt/code_saturne-2.0-rc2/openmpi-1.4.2/lib Compilers and associated options:   cc = gcc   fc = gfortran   cppflags =   -D_POSIX_SOURCE -DNDEBUG -I/opt/code_saturne-2.0-rc2/cs-2.0-rc2/include  -I/opt/code_saturne-2.0-rc2/cs-2.0-rc2/include -I/opt/code_saturne-2.0-rc2/cs-2.0-rc2/include  -I/opt/code_saturne-2.0-rc2/openmpi-1.4.2/include -I/usr/include/libxml2   cflags = -std=c99 -funsigned-char -pedantic -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wunused -Wfloat-equal   -funroll-loops -O2 -Wuninitialized   fcflags = -x f95-cpp-input -Wall -Wno-unused  -D_CS_FC_HAVE_FLUSH  -O   ldflags = -L/opt/code_saturne-2.0-rc2/cs-2.0-rc2/lib  -L/opt/code_saturne-2.0-rc2/cgnslib-2.5.4/lib -L/opt/code_saturne-2.0-rc2/med-2.3.6/lib -L/opt/code_saturne-2.0-rc2/hdf5-1.6.10/lib -L/opt/code_saturne-2.0-rc2/cs-2.0-rc2/lib -L/opt/code_saturne-2.0-rc2/cs-2.0-rc2/lib  -L/opt/code_saturne-2.0-rc2/openmpi-1.4.2/lib   -Wl,-export-dynamic  -O   libs = -lfvm -lm -lcgns -lmedC -lhdf5 -lfvm_coupl -lmei -lbft -lz -lmpi  -lxml2 -lcblas -latlas  -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../.. -L/usr/lib/x86_64-linux-gnu -lgfortranbegin -lgfortran -lm   -ldl   rpath = -Wl,-rpath -Wl, Compilers and associated options for SYRTHES build:   cc =   fc =   cppflags =   cflags =   fcflags =   ldflags =   libs = 

Given this it is obvious that syrthes was not taken into account while installing saturne. I used the python installer to install saturne, and in the setup file I replaced "syrthes" with the path where syrthes is installed (/opt/syrthes3.4.2). Should I have "syrthes=/opt/syrthes3.4.2" instead of just "/opt/syrthes3.4.2" ??

Thanks again for the help,

Alicia

Re: Coupling CS-2.0-rc2 and Syrthes 3.4.2 : syrthes compile or link error

Posted: Wed Aug 18, 2010 1:44 pm
by David Monfort
Hello Alicia,

You need to write the following (so without the "equal" sign, but with as many space as you want)

syrthes     /opt/syrthes3.4.2

David

Re: Coupling CS-2.0-rc2 and Syrthes 3.4.2 : syrthes compile or link error

Posted: Wed Aug 18, 2010 6:16 pm
by Alicia Consigny
thanks a million, everything works perfectly now ! :D :D