Less info in compile log

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
James McNaughton

Less info in compile log

Post by James McNaughton »

Hi,

I installed v2 and it's working but if there's a compile or link error the log isn't giving any information about this, it says something like:
gfortran -I/home/james/tmp_Saturne/CYLINDER_v2.NEW_1.03011350/src_saturne -I/opt/cs-2.0.1/include -x f95-cpp-input -Wall -Wno-unused  -D_CS_FC_HAVE_FLUSH  -O -c /home/james/tmp_Saturne/CYLINDER_v2.NEW_1.03011350/src_saturne/usclim.f90
for each fortran file but without the info I'm used to. I did the install manually have I missed a comment somewhere that will enable this?

Thanks,

James
Alexandre Douce

Re: Less info in compile log

Post by Alexandre Douce »

Could you try the compilation of your sources with the dedicated command:
code_saturne compile -t
Perhaps, it will be more convenient for the log?
James McNaughton

Re: Less info in compile log

Post by James McNaughton »

Hi,

Unfortunately that has not worked either. Others are also getting the same error so for now it's suggested to use the rc2 compiler. Will keep you updated when a solution is found!

Cheers,

James
Yvan Fournier

Re: Less info in compile log

Post by Yvan Fournier »

Hello,

I just tried this on two slightly different builds of 2.0, and was unable to reproduce the issue.

Are all users experiencing the issue using the same build ? Juan recently sent me an e-mail about this issue, but I suspect you may be using the same "centralized" build, and in this case, I would suspect an install or Python issue. in this case, if you could send the cs_config.py file found in the "<install_prefix>/lib/python<version>/site-packages/ncs" directory fo both version 2.0-rc2 and 2.0.1, I could compare the 2 and hopefully have something to suggest based on that info.

Best regards,

  Yvan
James McNaughton

Re: Less info in compile log

Post by James McNaughton »

Hi,

Most users at the university use v1.4 so I'm unsure who's experiencing the problem but there's a few who've all installed their own: I installed manually to my own machine and I think Juan used an install script. Here are the files you asked for - I cannot see any immediate difference between the two though.

Thanks,

James
Attachments
cs_config-2-0-rc2.py
(3.59 KiB) Downloaded 220 times
cs_config-2-0-1.py
(3.57 KiB) Downloaded 213 times
James McNaughton

Re: Less info in compile log

Post by James McNaughton »

Just thought I'd follow up that a solution was found by Juan. If anyone experiences this issue they might compare the attached file with their own in

path/lib/python2.4/site-packages/ncs/cs_exec_environment.py

Thanks again!

James
Attachments
cs_exec_environment.py
(31.49 KiB) Downloaded 207 times
Yvan Fournier

Re: Less info in compile log

Post by Yvan Fournier »

Hello,

Juan's modification seems to almost revert the behavior to the one we had before a change in revision 1661 (Oct 26 2010), which allowed us to avoid buffering the standard output.

With his patch, I assume Preprocessor log output is buffered when running "code_saturne check_mesh", though would be less of an inconvenience than not having the compile output.

Still, I did not reproduce this bug, so it may be related to a Python version. Which Python versions/Linux distributions did you encounter this issue on (on our side, I tested on versions of Python 2.4, 2.6, and 2.7.1 at least, though I would have to check the exact release versions).

Best regards,

  Yvan
James McNaughton

Re: Less info in compile log

Post by James McNaughton »

Hi,

check_mesh's output buffered in two parts although this isn't an issue (nor noticable except for large meshes).

The python is version 2.4 for my desktop (2.4.3 43.el5) (and I think on the cluster), linux distribution is Scientific Linux (Boron), 5.3 on the desktop and 5.2 on the cluster.

Thanks,

James
Post Reply