source:
issm/oecreview/Archive/24684-25833/ISSM-24808-24809.diff
Last change on this file was 25834, checked in by , 4 years ago | |
---|---|
File size: 4.4 KB |
-
../trunk-jpl/test/SandBox/test2004.m
1 1 %Test Name: Earth_Antarctica_GIA 2 3 testagainst2002=1; 2 4 3 5 %Data paths: {{{ 4 6 modeldatapath='/Users/larour/ModelData'; 5 7 shppath='/Users/larour/issm-jpl/proj-group/qgis/NightlyRun'; 6 gshhsshapefile=[modeldatapath '/Gshhg/Shp/GSHHS_shp/c/GSHHS_c_L1 .shp'];8 gshhsshapefile=[modeldatapath '/Gshhg/Shp/GSHHS_shp/c/GSHHS_c_L1-NightlyRun.shp']; 7 9 %}}} 8 10 9 11 %create sealevel model to hold our information: … … 145 147 end % }}} 146 148 %Slr: {{{ 147 149 if bas.iscontinentany('antarctica'), 150 if testagainst2002, 151 md.slr.deltathickness=zeros(md.mesh.numberofelements,1); 152 %antarctica 153 late=sum(md.mesh.lat(md.mesh.elements),2)/3; 154 longe=sum(md.mesh.long(md.mesh.elements),2)/3; 155 pos=find(late <-80); 156 md.slr.deltathickness(pos)=-100; 157 else 158 delH=textread([modeldatapath '/AdhikariSciAdvTrends/AIS_delH_trend.txt']); 159 longAIS=delH(:,1); 160 latAIS=delH(:,2); 161 delHAIS=delH(:,3); 162 index=delaunay(latAIS,longAIS); 148 163 149 delH=textread([modeldatapath '/AdhikariSciAdvTrends/AIS_delH_trend.txt']); 150 longAIS=delH(:,1); 151 latAIS=delH(:,2); 152 delHAIS=delH(:,3); 153 index=delaunay(latAIS,longAIS); 164 lat=md.mesh.lat; 165 long=md.mesh.long+360; 166 pos=find(long>360);long(pos)=long(pos)-360; 154 167 155 lat=md.mesh.lat; 156 long=md.mesh.long+360; 157 pos=find(long>360);long(pos)=long(pos)-360; 168 delHAIS=InterpFromMesh2d(index,longAIS,latAIS,delHAIS,long,lat); 169 northpole=find_point(md.mesh.long,md.mesh.lat,0,90); delHAIS(northpole)=0; 158 170 159 delHAIS=InterpFromMesh2d(index,longAIS,latAIS,delHAIS,long,lat);160 northpole=find_point(md.mesh.long,md.mesh.lat,0,90); delHAIS(northpole)=0;171 md.slr.deltathickness=delHAIS(md.mesh.elements)*[1;1;1]/3/100; 172 end 161 173 162 md.slr.deltathickness=delHAIS(md.mesh.elements)*[1;1;1]/3/100;163 164 174 md.slr.sealevel=zeros(md.mesh.numberofvertices,1); 165 175 md.slr.spcthickness=NaN*ones(md.mesh.numberofvertices,1); 166 176 md.slr.Ngia=zeros(md.mesh.numberofvertices,1); … … 252 262 %}}} 253 263 %slr loading/calibration: {{{ 254 264 265 if testagainst2002, 266 md.slr.deltathickness=zeros(md.mesh.numberofelements,1); 267 %greenland 268 late=sum(md.mesh.lat(md.mesh.elements),2)/3; 269 longe=sum(md.mesh.long(md.mesh.elements),2)/3; 270 pos=find(late > 70 & late < 80 & longe>-60 & longe<-30); 271 md.slr.deltathickness(pos)=-100; 272 273 %correct mask: 274 md.mask.ice_levelset(md.mesh.elements(pos,:))=-1; 275 else 276 md.slr.deltathickness=zeros(md.mesh.numberofelements,1); 277 end 278 255 279 md.slr.sealevel=zeros(md.mesh.numberofvertices,1); 256 md.slr.deltathickness=zeros(md.mesh.numberofelements,1);257 280 md.slr.spcthickness=NaN*ones(md.mesh.numberofvertices,1); 258 281 md.slr.Ngia=zeros(md.mesh.numberofvertices,1); 259 282 md.slr.Ugia=zeros(md.mesh.numberofvertices,1); … … 357 380 md.slr.abstol=1e-3; 358 381 md.slr.geodetic=1; 359 382 360 %eustatic: 361 md.slr.rigid=0; md.slr.elastic=0; md.slr.rotation=0; 362 md.cluster=generic('name',oshostname(),'np',10); 383 % max number of iteration reverted back to 10 (i.e., the original default value) 384 md.slr.maxiter=10; 385 386 %eustatic run: 387 md.slr.rigid=0; md.slr.elastic=0;md.slr.rotation=0; 363 388 md=solve(md,'Sealevelrise'); 389 Seustatic=md.results.SealevelriseSolution.Sealevel; 364 390 365 %eustatic + rigid + elastic run: 366 md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=0; 367 md.cluster=generic('name',oshostname(),'np',16); 368 md.verbose=verbose('111111111'); 391 %eustatic + rigid run: 392 md.slr.rigid=1; md.slr.elastic=0;md.slr.rotation=0; 369 393 md=solve(md,'Sealevelrise'); 370 S noRotation=md.results.SealevelriseSolution.Sealevel;394 Srigid=md.results.SealevelriseSolution.Sealevel; 371 395 372 %eustatic + rigid + elastic + rotation run: 396 %eustatic + rigid + elastic run: 397 md.slr.rigid=1; md.slr.elastic=1;md.slr.rotation=0; 398 md=solve(md,'Sealevelrise'); 399 Selastic=md.results.SealevelriseSolution.Sealevel; 400 401 %eustatic + rigid + elastic + rotation run: 373 402 md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=1; 374 md.cluster=generic('name',oshostname(),'np',3);375 %md.verbose=verbose('111111111');376 403 md=solve(md,'Sealevelrise'); 377 S Rotation=md.results.SealevelriseSolution.Sealevel;404 Srotation=md.results.SealevelriseSolution.Sealevel; 378 405 379 %Fields and tolerances to track changes380 field_names ={'noRotation','Rotation'};381 field_tolerances={1e-13,1e-13};382 field_values={SnoRotation,SRotation};383 384 406 %}}}
Note:
See TracBrowser
for help on using the repository browser.