Changeset 638


Ignore:
Timestamp:
05/28/09 17:01:13 (16 years ago)
Author:
seroussi
Message:

fixed problem with diagnostic mixed hutter/macayeal in 2d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/diagnostic2d.m

    r34 r638  
    88%
    99%   See also: ICEDIAGNOSTIC, ICEDIAGNOSTIC3D, ICEDIAGNOSTIC_CORE_NONLINEAR
     10
     11%global variables
     12iceglobal
    1013
    1114%recover inputs
     
    3639        u_g=diagnostic_core_linear(m_dhu,'diagnostic_hutter',inputs);
    3740
     41        if fem.ismacayealpattyn,
     42                gridset=fem.m_dh.gridset;
     43                fem.m_dh.ys=Reducevector_g(u_g);
     44        end
     45
    3846        %Computation of depth averaged pressure with MacAyeal's assumptions (P_bar=1/2*rho_ice*g*H in Pa)
    3947        u_g(4:6:m_dhu.gridset.gsize)=1/2*md.rho_ice*md.g*md.thickness;
Note: See TracChangeset for help on using the changeset viewer.