Page 2 of 2
Re: runcase
Posted: Mon Mar 05, 2012 2:17 pm
by Yvan Fournier
Hello,
This is surprising, as the issue you have with CGNS has normally been solved between versions 2.0.1 and 2.0.2 of the preprocessor (ECS), and should also be solved in all 2.1 versions.
In any case, if you have administrator (rot) rights to you machine (I believe you do from previous conversations), run:
ldconfig
as root (or run "sudo ldconfig").
If it is not found, try "/sbin/ldconfig" or "/usr/sbin/ldconfig".
The try running Code_Saturne again.
If this dos not work, you can try reinstalling the Preprocessor (ecs), by adding:
LD_ADD="-Wl,-rpath -Wl,/usr/local/lib"
to the configure line.
For version 2.1, replace LD_ADD with LDFLAGS above and add that to the configure options.
Best regards,
Yvan
Re: runcase
Posted: Mon Mar 05, 2012 8:19 pm
by Christine Leroy
Hello Yvan
The first commands (concerning ldconfig) didn't give any results so I reinstalled ecs adding the LD_ADD line and then installed again ncs.
Now I have this :
Working directory (to be periodically cleaned) :
/home/leroy/tmp_Saturne/SANDIA.CASE1.03051929
Kernel version: /home/leroy/software/saturne/cs-203
Preprocessor: /home/leroy/software/saturne/cs-203/bin
***************************************************************
Compilation of user subroutines and linking of Code_Saturne
***************************************************************
Use the EBU combustion module
********************************************
Preparing calculation
********************************************
********************************************
Starting calculation
********************************************
/home/leroy/tmp_Saturne/SANDIA.CASE1.03051929/cs_solver: error while loading shared libraries: libcgns.so.3.1: cannot open shared object file: No such file or directory
Error running the calculation.
Check Kernel log (listing) and error* files for details
*******************************************
Error in calculation stage.
********************************************
The working directory is cs_203 because first I installed this version but now I have the 204, I just didn't changed the name of the directory.
The strange thing is that this time, the preprocessor ran, even if there's this message about libcgns.
I join the listpre and summary files if it can help.
If not, is there a way to uninstall saturne in a clean way so I could reinstall it using the installer this time. Maybe this could be better.
I'm really sorry for disturbing so much !!!
Best Regards
Christine
Re: runcase
Posted: Mon Mar 05, 2012 11:35 pm
by Yvan Fournier
Hello,
My fault : I forgot that you also need the same LD_ADD option for the FVM library. To be safe, reinstall both FVM and then the Kernel (NCS), and things should work.
Best regards,
Yvan
Re: runcase
Posted: Tue Mar 06, 2012 11:45 am
by Christine Leroy
ciao Yvan,
I've reinstalled FVM with the option, then NCS ....but I still have the same error message
So I reinstalled FVM and ECS with the same LD_ADD option ... then NCS ....I also tried again installing NCS with the LD_ADD option...
Maybe I'm wrong in the way I launch the case, here's what I've done:
c_s214 create -s SANDIA CASE1
then I've put the cgns mesh in the MESH directory, the *.f90 in the SRC directory and the dp_C3P in the DATA directory.
Then from the SCRIPTS directory I just type : ./runcase ... is there something wrong?
Best Regards
Christine
Re: runcase
Posted: Tue Mar 06, 2012 2:20 pm
by Yvan Fournier
Hello,
This is strange. For NCS, the option is not LD_ADD, but LDFLAGS, so you may try that also. I don't have any more ideas after that, so if that does not work, I will need the output of:
ldd /usr/local/lib/libcgns.so.3.1
and
ldd <your_execution_directory>/cs_solver
as well as you compile.log.
Best regards,
Yvan
Re: runcase
Posted: Tue Mar 06, 2012 4:08 pm
by Christine Leroy
Hi Yvan,
That's great !!! I've recompiled the ncs with LDFLAGS option and it's now ok.
Thank you so much !!!
Best Regards
Christine