zailushang2010 发表于 2009-8-10 20:31:17

hist 变量不发生变化??

定义了一个函数:
def fl_time
    ft=.0
    fl_hour=.0
    fl_day=.0
    ft=fltime
    fl_hour=ft/3600
    fl_day=f_hour/24
end
fl_time
his fl_hour
his fltime
结果: fltime变化;fl_hour 却不变,即:fl_hour一直是最初的值,尽管计算进行了许多步。
不知是什么原因,还望各位高人指点下哈!!

fengIiu 发表于 2009-8-10 21:05:26

HISTORY        var
    causes a history of the FISH variable or function to be taken during stepping. If var is a function, then it will be evaluated every time histories are stored (controlled by HISTORY nstep command);If var is a FISH variable, then its current value will be taken. Hence, caution should be exercised when using variables (rather than functions) for histories. The history may be plotted in the usual way.

fengIiu 发表于 2009-8-10 21:07:19

HISTORY        var
    causes a history of the FISH variable or function to be taken during stepping. If var is a function, then it will be evaluated every time histories are stored (controlled by HISTORY nstep command);If var is a FISH variable, then its current value will be taken. Hence, caution should be exercised when using variables (rather than functions) for histories. The history may be plotted in the usual way.
页: [1]
查看完整版本: hist 变量不发生变化??