Ignore:
Timestamp:
02/08/19 18:51:47 (5 years ago)
Author:
jisesh
Message:

devel/Python/Baroclinic_3D_ullrich : output Phi at half-levels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/test/py/Baroclinic_3D_ullrich.py

    r802 r806  
    3838from dynamico import xios 
    3939from dynamico import precision as prec 
    40 from dynamico.meshes import Cartesian_mesh as Mesh 
    4140from dynamico.kernels import grad, curl, div, KE 
    4241from dynamico.LAM import Davies 
     
    158157    for l in range(llm): 
    159158        v[:,l]=(Phi[:,l+1]-Phi[:,l])/(g*m[:,l]) 
    160         w[:,l]=.5*params.g*(W[:,l+1]+W[:,l])/m[:,l] 
    161         z[:,l]=.5*(Phi[:,l+1]+Phi[:,l])/params.g 
     159        w[:,l]=.5*g*(W[:,l+1]+W[:,l])/m[:,l] 
     160        z[:,l]=.5*(Phi[:,l+1]+Phi[:,l])/g 
    162161        un[:,l]=u[:,l]/mesh.de 
    163162        abs_vort_vk[:,l]=curl_vk[:,l] + mesh.fv 
     
    282281 
    283282            context.send_field_primal('uz', w) 
     283            context.send_field_primal('Phi', Phi) 
    284284            context.send_field_primal('z', z) 
    285285            context.send_field_primal('div_fast', div_fast) 
Note: See TracChangeset for help on using the changeset viewer.