"Preprocessing stage required but no mesh is given"

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Attachments
cs_case_domain.py
(63.53 KiB) Downloaded 137 times
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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?
Attachments
RESU.tar.gz
(4.78 KiB) Downloaded 134 times
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Attachments
cs_xml_reader.py
(11.45 KiB) Downloaded 147 times
cs_case_coupling.py
(11.41 KiB) Downloaded 136 times
cs_run.py
(11.39 KiB) Downloaded 139 times
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
senartcon
Posts: 37
Joined: Wed May 08, 2013 6:46 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: "Preprocessing stage required but no mesh is given"

Post 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
Post Reply