Page 2 of 5
Re: "Preprocessing stage required but no mesh is given"
Posted: Sun Oct 27, 2019 2:35 pm
by Yvan Fournier
Hello,
Can you test replacing the bin/cs_case_domain.py with the attached file, then post the output from the script ?
Regards,
Yvan
Re: "Preprocessing stage required but no mesh is given"
Posted: Mon Oct 28, 2019 12:39 pm
by senartcon
Hello Yvan,
I pasted the script you provided in
Code: Select all
/home/.../code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne
which is where the original script was present.
The results have not changed. The attachment has the output directories of both before and after replacing with the script you provided. Am I doing as you intended?
Re: "Preprocessing stage required but no mesh is given"
Posted: Mon Oct 28, 2019 4:20 pm
by Yvan Fournier
Hello,
What I am interested in is not the output directory at this stage, but the messages in the terminal from which you ran the code, or the GUI run window contents if run from the GUI (because my modification should simply add additional messages to try to understand where things go wrong).
Regards,
Yvan
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 4:59 am
by senartcon
Hello Yvan,
here is the output at the terminal:
Code: Select all
Code_Saturne
************
Version: 6.0
Path: /home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64
Result directory:
/home/anands/Documents/Code_Saturne_Sims/Verify-VolumeHeatSource/Case-2-MiddleStove/RESU/20191028-1656
****************************
Preparing calculation data
****************************
Single processor Code_Saturne simulation.
***************************
Preprocessing calculation
***************************
Traceback (most recent call last):
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/bin/code_saturne", line 76, in <module>
retcode = cs.execute()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 93, in execute
return self.commands[command](options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 170, in run
return cs_run.main(options, self.package)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 329, in main
return run(argv, pkg)[0]
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 317, in run
stages=stages)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 2042, in run
mpiexec_options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 1738, in preprocess
d.preprocess()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case_domain.py", line 900, in preprocess
raise RunCaseError(err_str)
cs_case_domain.RunCaseError: Preprocessing stage required but no mesh is given
I couldnt find much difference except that the error earlier appeared at line 896 (post # 6 in this thread) and this time at line 900.
Anand
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 10:37 am
by Yvan Fournier
Hello,
It seems the problem occurs quite early, and the instrumentation might print empty lines.
I added some additional logging to the attached files. Could you try again with those ?
Best regards,
Yvan
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 10:46 am
by senartcon
Hello Yvan,
the following is the error report, for the files you have attached:
Code: Select all
Traceback (most recent call last):
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/bin/code_saturne", line 76, in <module>
retcode = cs.execute()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 93, in execute
return self.commands[command](options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 170, in run
return cs_run.main(options, self.package)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 330, in main
return run(argv, pkg)[0]
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 318, in run
stages=stages)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 2042, in run
mpiexec_options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 1738, in preprocess
d.preprocess()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case_domain.py", line 900, in preprocess
raise RunCaseError(err_str)
cs_case_domain.RunCaseError: Preprocessing stage required but no mesh is given
Anand
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 12:08 pm
by Yvan Fournier
Hello,
If you only post the backtrace and not the previous lines, I won't be able to do much.
Regards,
Yvan
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 12:09 pm
by Yvan Fournier
Hello,
If you only post the backtrace and not the previous lines, I won't be able to do much.
Regards,
Yvan
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 12:16 pm
by senartcon
Hello Yvan,
sorry for the mistake, here is the full listing:
Code: Select all
cs_run.py: param = None
read_parameter_file_1 None
Code_Saturne
************
Version: 6.0
Path: /home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64
Result directory:
/home/anands/Documents/Code_Saturne_Sims/Verify-VolumeHeatSource/Case-2-MiddleStove/RESU/20191029-1518
****************************
Preparing calculation data
****************************
Single processor Code_Saturne simulation.
***************************
Preprocessing calculation
***************************
Traceback (most recent call last):
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/bin/code_saturne", line 76, in <module>
retcode = cs.execute()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 93, in execute
return self.commands[command](options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_script.py", line 170, in run
return cs_run.main(options, self.package)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 330, in main
return run(argv, pkg)[0]
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_run.py", line 318, in run
stages=stages)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 2042, in run
mpiexec_options)
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case.py", line 1738, in preprocess
d.preprocess()
File "/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/lib/python3.6/site-packages/code_saturne/cs_case_domain.py", line 900, in preprocess
raise RunCaseError(err_str)
cs_case_domain.RunCaseError: Preprocessing stage required but no mesh is given
Re: "Preprocessing stage required but no mesh is given"
Posted: Tue Oct 29, 2019 12:49 pm
by Yvan Fournier
Hello,
It seems the parameters file is not passed to the execution script.
Do you start the code with the GUI or directly running the "runcase" file from a terminal ? Could you post your runcase in SCRIPTS ?
Regards,
Yvan