Page 1 of 1

User Subroutine Compilation Problem

Posted: Mon May 13, 2013 4:00 pm
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

Re: User Subroutine Compilation Problem

Posted: Mon May 13, 2013 4:24 pm
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

Re: User Subroutine Compilation Problem

Posted: Mon May 13, 2013 4:47 pm
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

Re: User Subroutine Compilation Problem

Posted: Mon May 13, 2013 9:00 pm
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

Re: User Subroutine Compilation Problem

Posted: Mon May 13, 2013 10:02 pm
by senartcon
Thanks a lot Yvan,
The code compiles without error!!!

Anand