problems with MEI

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yunyi_wang
Posts: 1
Joined: Wed Nov 20, 2019 4:43 pm

problems with MEI

Post by yunyi_wang »

Dear all,

I have a problem with a calling functionality of MEI from GUI. When I am trying to call "Calculation by formula" in GUI (initialization or boundary conditions) I have next error message:

Code: Select all

Traceback (most recent call last):
  File "/libre/wangyu/opt/code_saturne_bin/lib/python2.7/site-packages/code_saturne/Pages/QMegEditorView.py", line 330, in accept
    check, err_msg, n_erros = self.mei_to_c.check_meg_code_syntax(func_type)
  File "/libre/wangyu/opt/code_saturne_bin/lib/python2.7/site-packages/code_saturne/cs_mei_to_c.py", line 2596, in check_meg_code_syntax
    solver = "cs_solver" + self.package.config.exeext
AttributeError: mei_to_c_interpreter instance has no attribute 'package'
I am using master version of CS from gitlab.pleaide.

Thanks for help

Yunyi
Attachments
setup.xml
(10.12 KiB) Downloaded 137 times
Yvan Fournier
Posts: 4074
Joined: Mon Feb 20, 2012 3:25 pm

Re: problems with MEI

Post by Yvan Fournier »

Hello,

This might be related to recent changes in the scripts to make things more modular, which may have introduced a bug.

I'll check this soon.

Best regards,

Yvan

Edit: I am not sure I pushed to fix to the GitLab repo last week, and may not have direct access this week, so you can apply the given patch using "git am 0001-GUI-fix-crash-when-validating-MEI-expression-due-to-.patch.txt"
Attachments
0001-GUI-fix-crash-when-validating-MEI-expression-due-to-.patch.txt
(861 Bytes) Downloaded 132 times
Post Reply