User Subroutine Compilation Problem

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

User Subroutine Compilation Problem

Post by senartcon »

Hello All,
I am trying to get a piece of subroutine for physical properties to work but getting runcase error. I am attaching my compile.log and my subroutine.

Previously I have tested Code_Saturne 2.3 and was able to run a TempC based variable density problem. But recently I installed Code_Saturne 3.0.1 on Ubuntu 12.04 and facing this issue.
Please point out my mistakes.

Thanks
Anand
Attachments
compile.log
(3.37 KiB) Downloaded 433 times
cs_user_physical_properties.f90
(10.44 KiB) Downloaded 456 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: User Subroutine Compilation Problem

Post by Yvan Fournier »

Hello,

It seems the code is not able to re-link with libxml2. This is strange, ad if libxml2 is present upon install, it should be usable afterwards. So here a a few questions to help troubleshoting:

- does the code work correctly when not using a user subroutine ?

- did you perhaps uninstall libxml2 after installing Code_Saturne, or use a non-packaged version of libxml2 ?

- could you post your installation logs (especially the config.log file) for the Code_Saturne installer ?

Regards,

Yvan
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: User Subroutine Compilation Problem

Post by senartcon »

Hello Yvan,

-Yes, the code works correctly without User Subroutine. (tested for a laminar flow in channel)

-No, libxml2 was never un-installed and is the latest version: 2.7.8.dfsg-5.1ubuntu4.4

-I am attaching the insallation logs and also my installation setup

Thanks
Anand
Attachments
setup.txt
(4.62 KiB) Downloaded 402 times
config.log
(198.61 KiB) Downloaded 395 times
install_saturne.log
(1.55 MiB) Downloaded 413 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: User Subroutine Compilation Problem

Post by Yvan Fournier »

Hello,

I am not quite sure, but you seem to both have a packaged libxml2, and one from the installer (this should not be an issue, but could become one if there is a minor difference in link order between the install and the re-compilation script).

I would recommend:

- remove libxml2 from the /home/anand/Code_Saturne directories

- make sure you have the libxml2-dev Ubuntu package installed

- in your setup file, use:

libxml2 /usr yes no

- reinstall Code_Saturne

- re-test...

Regards,

Yvan
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: User Subroutine Compilation Problem

Post by senartcon »

Thanks a lot Yvan,
The code compiles without error!!!

Anand
Post Reply