dolfin_log_post.i

来自「利用C」· I 代码 · 共 38 行

I
38
字号
%pythoncode%{def debug(message):    import traceback    file, line, func, txt = traceback.extract_stack(None, 2)[0]    __debug(file, line, func, message)%}%extend dolfin::Progress {void __add(int incr) {    for (int j=0;j<incr; ++j)         (*self)++;}void __set(real value) {    *self = value;}%pythoncode%{def __iadd__(self, other):    if isinstance(other, int):        self.__add(other)    elif isinstance(other, float):        self.__set(other)    return selfdef update(self, other):    if isinstance(other, float):        self.__set(other)%}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?