Changeset 20350


Ignore:
Timestamp:
03/24/16 14:52:03 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed test 243

Location:
issm/trunk-jpl/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test243.m

    r19756 r20350  
    11%Test Name: SquareShelfSMBGemb
    2 md=triangle(model(),'../Exp/Square.exp',500000.);
     2md=triangle(model(),'../Exp/Square.exp',200000.);
    33md=setmask(md,'all','');
    44md=parameterize(md,'../Par/SquareShelf.par');
    55md=setflowequation(md,'SSA','all');
    6 md.cluster=generic('name',oshostname(),'np',4); % 3 for the cluster
    7 
    8 %md.verbose=verbose('all');
     6md.materials.rho_ice=910;
     7md.cluster=generic('name',oshostname(),'np',3);
    98
    109% Use of Gemb method for SMB computation
     
    1413inputs=load('../Data/gemb_input.mat');
    1514
    16 %setup the time line:
    17 deltatindays=(inputs.dateN(2) - inputs.dateN(1));
    18 dateN=(1979:deltatindays/365.25:2011)';
    19 dateN(length(inputs.dateN)+1:end)=[];
    20 
    2115%setup the inputs:
    22 md.smb.Ta=[repmat(inputs.Ta0',md.mesh.numberofelements,1);dateN'];
    23 md.smb.V=[repmat(inputs.V0',md.mesh.numberofelements,1);dateN'];
    24 md.smb.dswrf=[repmat(inputs.dsw0',md.mesh.numberofelements,1);dateN'];
    25 md.smb.dlwrf=[repmat(inputs.dlw0',md.mesh.numberofelements,1);dateN'];
    26 md.smb.P=[repmat(inputs.P0',md.mesh.numberofelements,1);dateN'];
    27 md.smb.eAir=[repmat(inputs.eAir0',md.mesh.numberofelements,1);dateN'];
    28 md.smb.pAir=[repmat(inputs.pAir0',md.mesh.numberofelements,1);dateN'];
     16md.smb.Ta=[repmat(inputs.Ta0',md.mesh.numberofelements,1);inputs.dateN'];
     17md.smb.V=[repmat(inputs.V0',md.mesh.numberofelements,1);inputs.dateN'];
     18md.smb.dswrf=[repmat(inputs.dsw0',md.mesh.numberofelements,1);inputs.dateN'];
     19md.smb.dlwrf=[repmat(inputs.dlw0',md.mesh.numberofelements,1);inputs.dateN'];
     20md.smb.P=[repmat(inputs.P0',md.mesh.numberofelements,1);inputs.dateN'];
     21md.smb.eAir=[repmat(inputs.eAir0',md.mesh.numberofelements,1);inputs.dateN'];
     22md.smb.pAir=[repmat(inputs.pAir0',md.mesh.numberofelements,1);inputs.dateN'];
    2923md.smb.Vz=repmat(inputs.LP.Vz,md.mesh.numberofelements,1);
    3024md.smb.Tz=repmat(inputs.LP.Tz,md.mesh.numberofelements,1);
     
    3428%smb settings
    3529md.smb.requested_outputs={'SmbDz','SmbT','SmbD','SmbRe','SmbGdn','SmbGsp','SmbEC','SmbA','SmbMassBalance'};
    36 
    37 md.materials.rho_ice=910;
    38 md.timestepping.interp_forcings=0;
    3930
    4031%only run smb core:
     
    4637md.timestepping.start_time=1979;
    4738md.timestepping.final_time=1980;
    48 md.timestepping.time_step=.1;
     39md.timestepping.time_step=.5;
     40md.timestepping.interp_forcings=0;
    4941
    5042%Run transient
    51 %md=solve(md,TransientSolutionEnum());
     43md=solve(md,TransientSolutionEnum());
    5244
    5345%Fields and tolerances to track changes
    54 field_names          ={'SmbDz','SmbT' ,'SmbD' ,'SmbRe','SmbGdn','SmbGsp','SmbA' ,'SmbEC','SmbMassBalance'};
    55 field_tolerances     ={'1e-13','1e-13','1e-13','1e-13','1e-13' ,'1e-13' ,'1e-13','1e-13','1e-13'};
     46field_names      ={'SmbDz','SmbT' ,'SmbD' ,'SmbRe','SmbGdn','SmbGsp','SmbA' ,'SmbEC','SmbMassBalance'};
     47field_tolerances ={'1e-13','1e-13','1e-13','1e-13','1e-13' ,'1e-13' ,'1e-13','1e-13','1e-13'};
    5648
    5749field_values={...
Note: See TracChangeset for help on using the changeset viewer.