# 需要导入模块: import output [as 别名]
# 或者: from output import Output [as 别名]
def __init__(self,param,grid):
self.list_param=['modelname','tend','fixed_dt','dt','cfl',
'plot_var','cax','colorscheme',
'plot_interactive','fixed_dt','dtmax',
'freq_save','freq_plot']
param.copy(self,self.list_param)
self.list_grid=['dx','nh','msk']
grid.copy(self,self.list_grid)
if param.modelname=='euler':
from euler import Euler
self.model = Euler(param,grid)
if param.modelname=='advection':
from advection import Advection
self.model = Advection(param,grid)
if param.modelname=='boussinesq':
from boussinesq import Boussinesq
self.model = Boussinesq(param,grid)
if param.modelname=='quasigeostrophic':
from quasigeostrophic import QG
self.model = QG(param,grid)
self.diag = Diag(param,grid)
self.plotting = Plotting(param)
# here's a shortcut to the model state
self.state = self.model.var.state
self.t = 0.
self.kt = 0
self.output=Output(param,grid,self.diag)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)