Page 1 of 1

problems with MEI

Posted: Thu Nov 21, 2019 4:12 pm
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

Re: problems with MEI

Posted: Thu Nov 21, 2019 6:39 pm
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"