source: issm/oecreview/Archive/19101-20495/ISSM-19524-19525.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 1.6 KB
  • ../trunk-jpl/test/NightlyRun/test243.m

     
     1%Test Name: SquareShelfSMBGemb
     2md=triangle(model(),'../Exp/Square.exp',500000.);
     3md=setmask(md,'all','');
     4md=parameterize(md,'../Par/SquareShelf.par');
     5md=setflowequation(md,'SSA','all');
     6md.cluster=generic('name',oshostname(),'np',1); % 3 for the cluster
     7
     8%md.verbose=verbose('all');
     9
     10% Use of Gemb method for SMB computation
     11md.surfaceforcings = SMBgemb(md.mesh,md.geometry);
     12
     13%load hourly surface forcing date from 1979 to 2009:
     14inputs=load('~/gemb/TEST/TEST_INPUT_1.mat');
     15
     16dateN=inputs.dateN/365.25; %convert in years
     17md.surfaceforcings.Ta=[repmat(inputs.Ta0',md.mesh.numberofelements,1);dateN'];
     18md.surfaceforcings.V=[repmat(inputs.V0',md.mesh.numberofelements,1);dateN'];
     19md.surfaceforcings.dswrf=[repmat(inputs.dsw0',md.mesh.numberofelements,1);dateN'];
     20md.surfaceforcings.dlwrf=[repmat(inputs.dlw0',md.mesh.numberofelements,1);dateN'];
     21md.surfaceforcings.P=[repmat(inputs.P0',md.mesh.numberofelements,1);dateN'];
     22md.surfaceforcings.eAir=[repmat(inputs.eAir0',md.mesh.numberofelements,1);dateN'];
     23md.surfaceforcings.pAir=[repmat(inputs.pAir0',md.mesh.numberofelements,1);dateN'];
     24
     25md.surfaceforcings.Vz=inputs.LP.Vz;
     26md.surfaceforcings.Tz=inputs.LP.Tz;
     27md.surfaceforcings.Tmean=inputs.LP.Tmean;
     28md.surfaceforcings.C=inputs.LP.C;
     29
     30%settings
     31md.surfaceforcings.spinUp=2
     32
     33%Run transient
     34md=solve(md,TransientSolutionEnum());
Note: See TracBrowser for help on using the repository browser.