Changeset 20532
- Timestamp:
- 04/21/16 19:00:45 (9 years ago)
- Location:
- issm/trunk-jpl/examples
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/examples/Greenland/runme.m
r19628 r20532 1 1 clear all; 2 steps=[1 2 3 4 5];2 steps=[1]; 3 3 4 4 %Location of SeaRISE dataset … … 146 146 lat = ncread(ncbox,'lat'); 147 147 lon = ncread(ncbox,'lon'); 148 smbbox = ncread(ncbox,' SMB');148 smbbox = ncread(ncbox,'MassFlux'); 149 149 [x1 y1]=ll2xy(lat,lon,+1,45,70); 150 150 -
issm/trunk-jpl/examples/ISMIP/CheatyRunme.m
r19043 r20532 3 3 %step 8 is specific to ISMIPF 4 4 5 steps=[1 :7];5 steps=[1]; 6 6 7 7 % parameter file to be used, choose between CheatyIsmipA.par or CheatyIsmipF.par -
issm/trunk-jpl/examples/IceBridge/Greenland.par
r19163 r20532 62 62 63 63 disp(' Interpolating surface mass balance'); 64 md.s urfaceforcings.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);65 md.s urfaceforcings.mass_balance=md.surfaceforcings.mass_balance*md.materials.rho_water/md.materials.rho_ice;64 md.smb.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0); 65 md.smb.mass_balance=md.smb.mass_balance*md.materials.rho_water/md.materials.rho_ice; 66 66 67 67 disp(' Construct basal friction parameters'); -
issm/trunk-jpl/examples/IceBridge/Greenland_cheatsheet.par
r19163 r20532 66 66 67 67 disp(' Interpolating surface mass balance'); 68 md.s urfaceforcings.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);69 md.s urfaceforcings.mass_balance=md.surfaceforcings.mass_balance*md.materials.rho_water/md.materials.rho_ice;68 md.smb.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0); 69 md.smb.mass_balance=md.smb.mass_balance*md.materials.rho_water/md.materials.rho_ice; 70 70 71 71 disp(' Construct basal friction parameters'); -
issm/trunk-jpl/examples/IceBridge/Greenland_noOIB.par
r19163 r20532 40 40 41 41 disp(' Interpolating surface mass balance'); 42 md.s urfaceforcings.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);43 md.s urfaceforcings.mass_balance=md.surfaceforcings.mass_balance*md.materials.rho_water/md.materials.rho_ice;42 md.smb.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0); 43 md.smb.mass_balance=md.smb.mass_balance*md.materials.rho_water/md.materials.rho_ice; 44 44 45 45 disp(' Construct basal friction parameters'); -
issm/trunk-jpl/examples/IceBridge/runme.m
r18267 r20532 46 46 47 47 md = setmask(md,'',''); 48 md = parameterize(md,'./Greenland _cheatsheet.par');48 md = parameterize(md,'./Greenland.par'); 49 49 %md = parameterize(md,'./Greenland_noOIB.par'); 50 50 md = setflowequation(md,'SSA','all'); … … 108 108 smb = InterpFromGridToMesh(x1,y1,smb',md.mesh.x,md.mesh.y,0)*1000/md.materials.rho_ice; 109 109 smb = [smb smb smb-1.0]; 110 md.s urfaceforcings.mass_balance = [smb;1 10 20];110 md.smb.mass_balance = [smb;1 10 20]; 111 111 112 112 %Set transient options, run for 20 years, saving every year … … 117 117 %Additional options 118 118 md.inversion.iscontrol=0; 119 md.transient.requested_outputs={'IceVolume','TotalSmb','S urfaceforcingsMassBalance'};119 md.transient.requested_outputs={'IceVolume','TotalSmb','SmbMassBalance'}; 120 120 md.verbose=verbose('solution',true,'module',true,'convergence',true); 121 121 … … 134 134 plotmodel(md,'data',md.results.TransientSolution(end).Vel,'caxis',[1e-1 6000],... 135 135 'log', 10, 'title', 'Velocity (m/y)','gridded',1, ... 136 'data', md.results.TransientSolution(end).S urfaceforcingsMassBalance, ...136 'data', md.results.TransientSolution(end).SmbMassBalance, ... 137 137 'title', 'Surface mass balance (m/y)','gridded',1, ... 138 138 'data',md.results.TransientSolution(end).Thickness,... … … 146 146 %Plot surface mass balance 147 147 surfmb=[]; for i=1:100; surfmb=[surfmb ... 148 md.results.TransientSolution(i).S urfaceforcingsMassBalance]; end148 md.results.TransientSolution(i).SmbMassBalance]; end 149 149 subplot(3,1,1); plot([0.2:0.2:20],mean(surfmb)); title('Mean Surface mass balance'); 150 150 -
issm/trunk-jpl/examples/IceflowModels/EISMINT.par
r18198 r20532 29 29 sb=10^-2/1000.; %m/yr/m 30 30 rel=450.*1000.; %m 31 md.s urfaceforcings.mass_balance=min(smb_max,sb*(rel-radius));31 md.smb.mass_balance=min(smb_max,sb*(rel-radius)); 32 32 33 33 disp(' creating velocities'); -
issm/trunk-jpl/examples/Jakobshavn/Jks.par
r19163 r20532 38 38 39 39 disp(' Interpolating surface mass balance'); 40 md.s urfaceforcings.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);41 md.s urfaceforcings.mass_balance=md.surfaceforcings.mass_balance*md.materials.rho_water/md.materials.rho_ice;40 md.smb.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0); 41 md.smb.mass_balance=md.smb.mass_balance*md.materials.rho_water/md.materials.rho_ice; 42 42 43 43 disp(' Construct basal friction parameters'); -
issm/trunk-jpl/examples/Jakobshavn/runme.m
r18201 r20532 1 steps=[ 4];1 steps=[1]; 2 2 3 3 if any(steps==1) -
issm/trunk-jpl/examples/UncertaintyQuantification/runme.m
r18269 r20532 1 1 %PIG Uncertainty Quantification Application 2 steps=[1 :3];2 steps=[1]; 3 3 4 4 if any(steps==1) … … 140 140 141 141 md.stressbalance.restol=10^-5; %tighten tolerances for UQ analyses 142 143 %Turn off verbosity 144 md.verbose=verbose(0); 142 145 143 146 %solve 144 147 md.qmu.isdakota=1; md.inversion.iscontrol=0; 145 148 md.cluster=generic('name',oshostname,'np',4); 149 150 %Dakota runs in parallel with a master/slave configuration. 151 % At least 2 cpu's are needed to run the UQ 152 md.qmu.params.evaluation_scheduling='master'; 153 md.qmu.params.processors_per_evaluation=md.cluster.np-1; 154 146 155 md=solve(md,StressbalanceSolutionEnum,'overwrite','y'); 147 156 … … 217 226 md.inversion.iscontrol=0; 218 227 md.cluster=generic('name',oshostname,'np',2); 228 229 %Dakota runs in parallel with a master/slave configuration. 230 % At least 2 cpu's are needed to run the UQ 231 md.qmu.params.evaluation_scheduling='master'; 232 md.qmu.params.processors_per_evaluation=md.cluster.np-1 233 219 234 md.verbose=verbose('qmu',true); 220 235 md=solve(md,StressbalanceSolutionEnum,'overwrite','y');
Note:
See TracChangeset
for help on using the changeset viewer.