Changeset 20350
- Timestamp:
- 03/24/16 14:52:03 (9 years ago)
- Location:
- issm/trunk-jpl/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test243.m
r19756 r20350 1 1 %Test Name: SquareShelfSMBGemb 2 md=triangle(model(),'../Exp/Square.exp', 500000.);2 md=triangle(model(),'../Exp/Square.exp',200000.); 3 3 md=setmask(md,'all',''); 4 4 md=parameterize(md,'../Par/SquareShelf.par'); 5 5 md=setflowequation(md,'SSA','all'); 6 md.cluster=generic('name',oshostname(),'np',4); % 3 for the cluster 7 8 %md.verbose=verbose('all'); 6 md.materials.rho_ice=910; 7 md.cluster=generic('name',oshostname(),'np',3); 9 8 10 9 % Use of Gemb method for SMB computation … … 14 13 inputs=load('../Data/gemb_input.mat'); 15 14 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 21 15 %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'];16 md.smb.Ta=[repmat(inputs.Ta0',md.mesh.numberofelements,1);inputs.dateN']; 17 md.smb.V=[repmat(inputs.V0',md.mesh.numberofelements,1);inputs.dateN']; 18 md.smb.dswrf=[repmat(inputs.dsw0',md.mesh.numberofelements,1);inputs.dateN']; 19 md.smb.dlwrf=[repmat(inputs.dlw0',md.mesh.numberofelements,1);inputs.dateN']; 20 md.smb.P=[repmat(inputs.P0',md.mesh.numberofelements,1);inputs.dateN']; 21 md.smb.eAir=[repmat(inputs.eAir0',md.mesh.numberofelements,1);inputs.dateN']; 22 md.smb.pAir=[repmat(inputs.pAir0',md.mesh.numberofelements,1);inputs.dateN']; 29 23 md.smb.Vz=repmat(inputs.LP.Vz,md.mesh.numberofelements,1); 30 24 md.smb.Tz=repmat(inputs.LP.Tz,md.mesh.numberofelements,1); … … 34 28 %smb settings 35 29 md.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;39 30 40 31 %only run smb core: … … 46 37 md.timestepping.start_time=1979; 47 38 md.timestepping.final_time=1980; 48 md.timestepping.time_step=.1; 39 md.timestepping.time_step=.5; 40 md.timestepping.interp_forcings=0; 49 41 50 42 %Run transient 51 %md=solve(md,TransientSolutionEnum());43 md=solve(md,TransientSolutionEnum()); 52 44 53 45 %Fields and tolerances to track changes 54 field_names 55 field_tolerances 46 field_names ={'SmbDz','SmbT' ,'SmbD' ,'SmbRe','SmbGdn','SmbGsp','SmbA' ,'SmbEC','SmbMassBalance'}; 47 field_tolerances ={'1e-13','1e-13','1e-13','1e-13','1e-13' ,'1e-13' ,'1e-13','1e-13','1e-13'}; 56 48 57 49 field_values={...
Note:
See TracChangeset
for help on using the changeset viewer.