Changeset 806


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

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

Location:
codes/icosagcm/devel/Python/test
Files:
3 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) 
  • codes/icosagcm/devel/Python/test/xml/field_def_simple.xml

    r795 r806  
    2222      <field id="Ai" /> 
    2323      <field id="phis" /> 
    24       <field id="phi" /> 
    2524 
     25      <field_group axis_ref="levp1"> 
     26        <field id="Phi" /> 
     27      </field_group> 
     28  
    2629      <field_group axis_ref="lev">  
    2730        <field id="temp" /> 
  • codes/icosagcm/devel/Python/test/xml/filedef_simple.xml

    r795 r806  
    1919      <field field_ref="uz" /> 
    2020      <field field_ref="z" /> 
     21      <field field_ref="Phi" /> 
    2122      <field field_ref="theta" /> 
    2223      <field field_ref="curl" /> 
Note: See TracChangeset for help on using the changeset viewer.