Changeset 687 for codes/icosagcm/devel/Python/test/py/DCMIP2008c5.py
- Timestamp:
- 03/08/18 13:05:02 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/test/py/DCMIP2008c5.py
r680 r687 109 109 #------------------------ main program ------------------------- 110 110 111 grid, llm = 40962, 26 111 #grid, llm = 40962, 26 112 grid, llm = 2562, 26 112 113 T, Nslice, courant = 14400, 24, 3.0 113 #caldyn_thermo, caldyn_eta = unst.thermo_entropy, unst.eta_lag114 caldyn_thermo, caldyn_eta = unst.thermo_entropy, unst.eta_mass114 caldyn_thermo, caldyn_eta = unst.thermo_entropy, unst.eta_lag 115 #caldyn_thermo, caldyn_eta = unst.thermo_entropy, unst.eta_mass 115 116 thermo, mesh, hybrid_coefs, params, flow0, gas0 = DCMIP2008c5(grid,llm) 116 117 llm, dx = mesh.llm, params.dx … … 120 121 else: 121 122 print 'Mass-based coordinate.' 122 unst.ker.dynamico_init_hybrid(*hybrid_coefs) 123 124 unst.ker.dynamico_init_hybrid(*hybrid_coefs) 123 125 124 126 dt = courant*.5*dx/np.sqrt(gas0.c2.max()) … … 129 131 130 132 mesh.plot_e(mesh.le/mesh.de) ; plt.title('le/de') 131 plt.savefig('fig_DCMIP2008c5/le_de.png') ;plt.close()133 plt.savefig('fig_DCMIP2008c5/le_de.png'); plt.close() 132 134 133 135 mesh.plot_i(mesh.Ai) ; plt.title('Ai') … … 146 148 def next_flow(m,S,u): 147 149 caldyn_step.mass[:,:], caldyn_step.theta_rhodz[:,:], caldyn_step.u[:,:] = m,S,u 150 caldyn_step.remap() 148 151 caldyn_step.next() 149 152 return (caldyn_step.mass.copy(), caldyn_step.theta_rhodz.copy(),
Note: See TracChangeset
for help on using the changeset viewer.