Library not found with custom compile file

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
fracenvi
Posts: 30
Joined: Wed Jun 19, 2024 9:58 am

Re: Library not found with custom compile file

Post by fracenvi »

hello,

I do run the code from an ssh connection since i have no access to the machine at the moment and is a standard Ubuntu machine.

When adding the --initalize option i actually have the run_solver and the cs_solver executable files (attached here), the following is the output of "ldd cs_solver":

Screenshot 2024-10-08 alle 16.54.12.png

Whereas when running ./cs_solver nothing prints out.

Which might be the python routines you were thinking about?

Regards and again thanks for the help,
Francesco
Attachments
20241008-1642.zip
(94.01 KiB) Downloaded 90 times
Yvan Fournier
Posts: 4168
Joined: Mon Feb 20, 2012 3:25 pm

Re: Library not found with custom compile file

Post by Yvan Fournier »

Hello,

It is really surprising that you get no output at all, and no error message either. Perhaps the linked library has some initialization step that redirects output or changes the working directory.

I guess the next step would be to run the code under a debugger, either using code_saturne's debug wrapper, or simply running cs_solver it under gdb directly (do not forget et export LD_LIBRARY_PATH as in run_solver). Of course, using a debug build for this is recommended, to view the matching source code.

Best regards,

Yvan Fournier
fracenvi
Posts: 30
Joined: Wed Jun 19, 2024 9:58 am

Re: Library not found with custom compile file

Post by fracenvi »

Hello Yvan,

Actually i did manage to find which was the mistake, it related to my C++ implementation of the neural network. After debugging it, now the code is actually running smoothly, giving back all of the needed output files.

Thanks for the help and regards,
Francesco
Post Reply