Hello Yvan,
with the following command:
Code: Select all
$ code_saturne run --param MiddleStove.xml
The following is the output:
The first line is due to the addition of "print(sys.argv)"
Code: Select all
['/home/anands/Documents/CODE_SATURNE/Code_Saturne/6.0.0/code_saturne-6.0.0/arch/Linux_x86_64/bin/code_saturne', 'run', '--param', 'MiddleStove.xml']
['--param', 'MiddleStove.xml']
['--param', 'MiddleStove.xml']
options.param: MiddleStove.xml
read_parameter_file_1 MiddleStove.xml
enter _getMeshParams
<DOM Element: Code_Saturne_GUI at 0x7fab0e20c470>
self.domain_node
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 77, 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 335, 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 306, in run
domains=d)
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 275, in __init__
d.set_case_dir(self.case_dir, staging_dir)
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 532, in set_case_dir
self.read_parameter_file(self.param)
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 497, in read_parameter_file
params = P.getParams()
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_xml_reader.py", line 365, in getParams
self._getMeshParams()
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_xml_reader.py", line 212, in _getMeshParams
print(self.domain_node)
AttributeError: 'Parser' object has no attribute 'domain_node'
Anand