I am trying to configure code_saturne (v4.3.0) for aster (v12.6) external coupling using salome_meca (v2016) platform. I use following options for configuration: --with-prefix=, --with-hdf5=, --with-cgns=, --with-med=, --with-salome=.
The configuration is done as below:
===========================================
Configuration options:
use debugging code: no
use malloc hooks: no
use graphical user interface: yes
use long global numbers: yes
Zlib (gzipped file) support: yes
MPI (Message Passing Interface) support: yes
MPI I/O support: yes
MPI2 one-sided communication support: yes
MPI3 neighborhood collectives support: yes
MPI3 nonblocking barrier support: no
OpenMP support: yes
OpenMP Fortran support: yes
BLAS (Basic Linear Algebra Subprograms) support: no
Libxml2 (XML Reader) support: yes
ParMETIS (Parallel Graph Partitioning) support: no
METIS (Graph Partitioning) support: no
PT-SCOTCH (Parallel Graph Partitioning) support: no
SCOTCH (Graph Partitioning) support: no
CCM support: no
HDF (Hierarchical Data Format) support: yes
CGNS (CFD General Notation System) support: yes
MED (Model for Exchange of Data) support: yes
MED MPI I/O support: no
MEDCoupling support: no
Catalyst (ParaView co-processing) support: no
EOS support: no
freesteam support: no
CoolProp support: no
PETSc support: no
SALOME GUI support: yes
SALOME Kernel support: yes
Dynamic loader support: dlopen
The package has been configured. Type:
make
make install
To generate and install the Code_Saturne kernel
Am I missing something related to MEDCoupling support ?
MEDCoupling is a specific module, which has changed a bit (so Code_Saturne 4.3 is compatible only with MEDCoupling 8), but you do not need it for the coupling which Code_Aster, which uses only an older subset of the Salome Kernel and YACS.
th. 140118542313216 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/NamingService/SALOME_NamingService.cxx [1488] : CORBA::SystemException: unable to contact the naming service
runSalome running on vilas-namrata
Searching for a free port for naming service: 2810 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Registry in Naming Service + found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +th. 139986930640704 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
found in 0.5 seconds
RunStudy
Searching /myStudyManager in Naming Service + found in 0.5 seconds
Searching /Containers/vilas-namrata/FactoryServer in Naming Service ++ found in 1.0 seconds
Start SALOME, elapsed time : 2.7 seconds
graph = fsi_yacs_scheme.xml options: display=0 verbose=0 stop-on-error=1 shutdown=1 reset=0 dumpErrorFile=dumpErrorState.xml
Starting 0 ms
Elapsed time before load: 210 ms
Elapsed time after load: 214 ms
Elapsed time after validation: 214 ms
Elapsed time after check consistency: 214 ms
+++++++++++++++++++ start calculation +++++++++++++++++++
th. 139814500787968 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [620] : [GiveContainer] waiting 60 second steps container /Containers/vilas-namrata/1856_FSI_MILIEU_0x23dca00
th. 139814484002560 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [620] : [GiveContainer] waiting 60 second steps container /Containers/vilas-namrata/1856_FSI_SATURNE_0x23dcd10
th. 139814492395264 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [620] : [GiveContainer] waiting 60 second steps container /Containers/vilas-namrata/1856_FSI_ASTER_0x23dc700
th. 139814492395264 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [432] : [GiveContainer] container /Containers/vilas-namrata/1856_FSI_ASTER_0x23dc700 launched
SalomeContainer launched : /Containers/vilas-namrata/1856_FSI_ASTER_0x23dc700 vilas-namrata 1887
th. 139814484002560 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [432] : [GiveContainer] container /Containers/vilas-namrata/1856_FSI_SATURNE_0x23dcd10 launched
SalomeContainer launched : /Containers/vilas-namrata/1856_FSI_SATURNE_0x23dcd10 vilas-namrata 1886
th. 139814500787968 - Trace /home/I27518/TRAV/C3/V2015_2_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [432] : [GiveContainer] container /Containers/vilas-namrata/1856_FSI_MILIEU_0x23dca00 launched
SalomeContainer launched : /Containers/vilas-namrata/1856_FSI_MILIEU_0x23dca00 vilas-namrata 1881
Can’t get reference to DSC object (or it was nil).
Error while trying to create a new component: component ‘FSI_ASTER’ is not installed or it’s a wrong name
SALOME_Container::create_component_instance failed
Error while trying to create a new component: component ‘FSI_SATURNE’ is not installed or it’s a wrong name
SALOME_Container::create_component_instance failed
+++++++++++++++++++ end calculation +++++++++++++++++++
Proc state : FAILED
Elapsed time after execution: 21284 ms
Execution has ended in error
Can’t get reference to DSC object (or it was nil).
Error while trying to create a new component: component ‘FSI_SATURNE’ is not installed or it’s a wrong name
SALOME_Container::create_component_instance failed
Error while trying to create a new component: component ‘FSI_ASTER’ is not installed or it’s a wrong name
SALOME_Container::create_component_instance failed
shutdown SALOME container: /Containers/vilas-namrata/1856_FSI_MILIEU_0x23dca00
shutdown SALOME container: /Containers/vilas-namrata/1856_FSI_SATURNE_0x23dcd10
shutdown SALOME container: /Containers/vilas-namrata/1856_FSI_ASTER_0x23dc700
/home/vilas/Desktop/PostDoc/NS/FSI/new/RESU_COUPLING/20160823-1152/run_solver: line 13: $localexec: ambiguous redirect
solver script exited with status 1.
Error running the calculation.
Check Code_Saturne log (listing) and error* files for details.
\
Saving calculation results
Error in calculation stage.
I am trying out different versions of the codes (saturne and salome meca) for the coupling. Am I missing something?
Please suggest. Many thanks for your time and concern.
Actually, the SALOME detection report for the install might be wrong, or you may have subtle environment aspects. When running configure, for --with-salome= you need to add the full path to your SALOME installation (not application).
revision 4.2.1
build Wed 07 Sep 2016 11:19:08 AM CEST
MPI version 3.0 (Open MPI 1.10.2)
The Code_Saturne CFD tool is free software;
you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
The Code_Saturne CFD tool is distributed in the hope that
it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License
for more details.
Your install seems OK. I do not have exactly the same symbols in my case as as one which does not load in your case, but this is probably due to using different versions of gcc.
Could you post the output of the following command ?
On a “calibre7” (Debian 6) workstation, the symbol: _ZN19Engines_Component_i20configureSalome_fileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_P13Salome_file_i
is the one which matches your: _ZN19Engines_Component_i20configureSalome_fileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_P13Salome_file_i.
I suspect the difference is probably due to different name mangling by a different version of the g++ compiler, but I would like to confirm this with the actual output..
While your “nm /home/vilas/saturne/4.2.1/lib/salome/libSalomeIDLFSI.so.0” command does not seem to mention this symbol (but only _ZN19Engines_Component_i20configureSalome_fileESsSsP13Salome_file_i, which exists in the libSalomeContainer.so library).
Also (probably an independent issue), I was able to get the coupling running (10 iterations) using Code_Saturne 4.0 or trunk with SALOME-MECA 1015.1, but not with SALOME-MECA 1015.2…