runcase
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
runcase
Hello everyone,
I'm trying to run a case on saturne 2.0.3 (with ncs 204)
As the case I received is without .xml, I'm trying to adapt the runcase to my platform.
at lines 228 and 239, which path should I put?
my installation is as follow:
I've a /home/leroy/SATURNE_src directory, containing the downloaded sources file, where I've created the build directories and the code is installed in /home/leroy/software/saturne/cs-203
when I put in lines 228 and 239 the following path :
/home/leroy/software/saturne/cs-204, I have the following error at line 488 :
line 488: /home/leroy/software/saturne/cs-203/bin/cs : no such file or directory
so I tried to find a cs dorectory, also in the source or build directories, but I couldn't find.
looking at line 488 in the runcase, it seems that there should bin a cs directory containing the check_consistency file. I found in : /home/leroy/SATURNE_src/ncs-2.0.4/bin, a file named cs_check_consistency.py and I tried to put at line 228 and 239 the following path : /home/leroy/SATURNE_src/ncs-204 but the problem remains :
line 488: /home/leroy/SATURNE_src/ncs-2.0.4/bin/cs : no such file or directory
Can someone help me fix this problem? Thank you very much
Christine
I'm trying to run a case on saturne 2.0.3 (with ncs 204)
As the case I received is without .xml, I'm trying to adapt the runcase to my platform.
at lines 228 and 239, which path should I put?
my installation is as follow:
I've a /home/leroy/SATURNE_src directory, containing the downloaded sources file, where I've created the build directories and the code is installed in /home/leroy/software/saturne/cs-203
when I put in lines 228 and 239 the following path :
/home/leroy/software/saturne/cs-204, I have the following error at line 488 :
line 488: /home/leroy/software/saturne/cs-203/bin/cs : no such file or directory
so I tried to find a cs dorectory, also in the source or build directories, but I couldn't find.
looking at line 488 in the runcase, it seems that there should bin a cs directory containing the check_consistency file. I found in : /home/leroy/SATURNE_src/ncs-2.0.4/bin, a file named cs_check_consistency.py and I tried to put at line 228 and 239 the following path : /home/leroy/SATURNE_src/ncs-204 but the problem remains :
line 488: /home/leroy/SATURNE_src/ncs-2.0.4/bin/cs : no such file or directory
Can someone help me fix this problem? Thank you very much
Christine
Re: runcase
Hello Christine,
You must create a new case to generate the runcase. Next, copy & paste your sources/xml/datas in the SRC/DATA folders.
Best regards,
JF
You must create a new case to generate the runcase. Next, copy & paste your sources/xml/datas in the SRC/DATA folders.
Best regards,
JF
Re: runcase
Ciao JF,
Thank you, I didn't know that Saturne would fill in the runcase itself. Better like this.
I now have the following problem: I couldn't run the case because, cgns was not installed...so I did a new installation and it's ok for cgns. But now I have the following message in the compil.log, and I don't know what it means (before installing cgns I didn't have any problem during the compilation phase) :
thank you in advance
Christine
Thank you, I didn't know that Saturne would fill in the runcase itself. Better like this.
I now have the following problem: I couldn't run the case because, cgns was not installed...so I did a new installation and it's ok for cgns. But now I have the following message in the compil.log, and I don't know what it means (before installing cgns I didn't have any problem during the compilation phase) :
What is it about?Traceback (most recent call last):
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 127, in <module> main(sys.argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 122, in main commands[command](argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 75, in compile cs_compile.main(argv)
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_compile.py", line 288, in main set_modules() # Set environment modules if present
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_exec_environment.py", line 169, in set_modules stdout=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 595, in __init__ errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1092, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
thank you in advance
Christine
Re: runcase
Hello,
A bug regarding modules was fixed in version 2.0.4, and might explain your problem (you seem to be using version 2.0.3, while the latest is 2.0.4).
A second bug was fixed later, so if you still have issues with this, replace the file "bin/cs_exec_environment.py" from the Code_Saturne Kernel (ncs-2.0.4) with the one attached.
Best regards,
Yvan
A bug regarding modules was fixed in version 2.0.4, and might explain your problem (you seem to be using version 2.0.3, while the latest is 2.0.4).
A second bug was fixed later, so if you still have issues with this, replace the file "bin/cs_exec_environment.py" from the Code_Saturne Kernel (ncs-2.0.4) with the one attached.
Best regards,
Yvan
- Attachments
-
- cs_exec_environment.py
- (42 KiB) Downloaded 226 times
Re: runcase
Ciao Yvan,
In fact I installed the version 2.0.3 at first, then I had a problem and following advices from the forum, I installed the ncs-2.0.4. I let the rest from version 2.0.3 and that's also why my cs directory is cs-203.
So the problem remains, do you think I should install all from version 2.0.4 to fix that problem?
Maybe I'm also mistaking when trying to run the case : I do ./runcase from the scripts directory since I don't have any .xml, all is in subroutines.
Thanks again
Christine
In fact I installed the version 2.0.3 at first, then I had a problem and following advices from the forum, I installed the ncs-2.0.4. I let the rest from version 2.0.3 and that's also why my cs directory is cs-203.
So the problem remains, do you think I should install all from version 2.0.4 to fix that problem?
Maybe I'm also mistaking when trying to run the case : I do ./runcase from the scripts directory since I don't have any .xml, all is in subroutines.
Thanks again
Christine
Re: runcase
Hello Christine,
If you have version 2.0.4, simply using the cs_exec_environment.py atached to my previous post instead of the one in ncs-204/bin and re-running "make install" should be enough (no need to re-run configure if you still have the build directory).
Best regards,
Yvan
If you have version 2.0.4, simply using the cs_exec_environment.py atached to my previous post instead of the one in ncs-204/bin and re-running "make install" should be enough (no need to re-run configure if you still have the build directory).
Best regards,
Yvan
Re: runcase
Ciao Yvan,
I already changed the file as you told me but first I didn't do the "make install " etc...so I did...but still same error.
I also tried, re-running configure again even if...and nothing changed. The problem still remains.
Christine
I already changed the file as you told me but first I didn't do the "make install " etc...so I did...but still same error.
I also tried, re-running configure again even if...and nothing changed. The problem still remains.
Christine
Re: runcase
Hello everyone,
Sorry if insisting, but I really can't find a way to run the case, I still have the same error message:
Traceback (most recent call last):
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 127, in <module>
main(sys.argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 122, in main
commands[command](argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 75, in compile
cs_compile.main(argv)
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_compile.py", line 288, in main
set_modules() # Set environment modules if present
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_exec_environment.py", line 169, in set_modules
stdout=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1092, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Any idea of what kind of error it can be?
Thank you for your help
Christine
Sorry if insisting, but I really can't find a way to run the case, I still have the same error message:
Traceback (most recent call last):
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 127, in <module>
main(sys.argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 122, in main
commands[command](argv[1:])
File "/home/leroy/software/saturne/cs-203/bin/code_saturne", line 75, in compile
cs_compile.main(argv)
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_compile.py", line 288, in main
set_modules() # Set environment modules if present
File "/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/ncs/cs_exec_environment.py", line 169, in set_modules
stdout=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1092, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Any idea of what kind of error it can be?
Thank you for your help
Christine
Re: runcase
Hello Christine,
The bug was reproduced and fixed yesterday, and a version 2.0.5 with corrections will be released next week.
While waiting, you may try to replace the Makefile.in file in the ncs-204 directory by the one attached, and reinstall the code.
This should fix the bug for you.
Best regards,
Yvan
The bug was reproduced and fixed yesterday, and a version 2.0.5 with corrections will be released next week.
While waiting, you may try to replace the Makefile.in file in the ncs-204 directory by the one attached, and reinstall the code.
This should fix the bug for you.
Best regards,
Yvan
- Attachments
-
- Makefile.in.txt
- (48.88 KiB) Downloaded 231 times
Re: runcase
Ciao Yvan,
Thank you.
I've re-compiled everything with the new Makefile.in and now when I run the case, it's ok for the compilation.
But I now have a problem with cgns. As the mesh I was given is in cgns format, I installed cgns and compiled again the saturne code. So I put the cgns option and it seemed to be ok since I had the " CGNS (CFD General Notation System) support: yes" when installing ecs. But probably, Saturne can't find the path for the cgns libraries since I have the following message when trying to run my case :
/home/leroy/software/saturne/cs-204/bin/cs_preprocess: error while loading shared libraries: libcgns.so.3.1: cannot open shared object file: No such file or directory
Where should I tell Saturne how to find these libraries? in my computer they're at this address : /usr/local/lib/libcgns.so.3.1
I have the same error message if I try to run the version 2.1 of Saturne.
Thanks in advance.
Christine
Thank you.
I've re-compiled everything with the new Makefile.in and now when I run the case, it's ok for the compilation.
But I now have a problem with cgns. As the mesh I was given is in cgns format, I installed cgns and compiled again the saturne code. So I put the cgns option and it seemed to be ok since I had the " CGNS (CFD General Notation System) support: yes" when installing ecs. But probably, Saturne can't find the path for the cgns libraries since I have the following message when trying to run my case :
/home/leroy/software/saturne/cs-204/bin/cs_preprocess: error while loading shared libraries: libcgns.so.3.1: cannot open shared object file: No such file or directory
Where should I tell Saturne how to find these libraries? in my computer they're at this address : /usr/local/lib/libcgns.so.3.1
I have the same error message if I try to run the version 2.1 of Saturne.
Thanks in advance.
Christine