source:
issm/oecreview/Archive/19101-20495/ISSM-19524-19525.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 1.6 KB |
-
../trunk-jpl/test/NightlyRun/test243.m
1 %Test Name: SquareShelfSMBGemb 2 md=triangle(model(),'../Exp/Square.exp',500000.); 3 md=setmask(md,'all',''); 4 md=parameterize(md,'../Par/SquareShelf.par'); 5 md=setflowequation(md,'SSA','all'); 6 md.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 11 md.surfaceforcings = SMBgemb(md.mesh,md.geometry); 12 13 %load hourly surface forcing date from 1979 to 2009: 14 inputs=load('~/gemb/TEST/TEST_INPUT_1.mat'); 15 16 dateN=inputs.dateN/365.25; %convert in years 17 md.surfaceforcings.Ta=[repmat(inputs.Ta0',md.mesh.numberofelements,1);dateN']; 18 md.surfaceforcings.V=[repmat(inputs.V0',md.mesh.numberofelements,1);dateN']; 19 md.surfaceforcings.dswrf=[repmat(inputs.dsw0',md.mesh.numberofelements,1);dateN']; 20 md.surfaceforcings.dlwrf=[repmat(inputs.dlw0',md.mesh.numberofelements,1);dateN']; 21 md.surfaceforcings.P=[repmat(inputs.P0',md.mesh.numberofelements,1);dateN']; 22 md.surfaceforcings.eAir=[repmat(inputs.eAir0',md.mesh.numberofelements,1);dateN']; 23 md.surfaceforcings.pAir=[repmat(inputs.pAir0',md.mesh.numberofelements,1);dateN']; 24 25 md.surfaceforcings.Vz=inputs.LP.Vz; 26 md.surfaceforcings.Tz=inputs.LP.Tz; 27 md.surfaceforcings.Tmean=inputs.LP.Tmean; 28 md.surfaceforcings.C=inputs.LP.C; 29 30 %settings 31 md.surfaceforcings.spinUp=2 32 33 %Run transient 34 md=solve(md,TransientSolutionEnum());
Note:
See TracBrowser
for help on using the repository browser.