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