Changeset 25181
- Timestamp:
- 06/29/20 14:50:53 (5 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test2002.m
r25169 r25181 3 3 %mesh earth: 4 4 md=model; 5 md.mesh=gmshplanet('radius',6.371012*10^3,'resolution',700.); % 500 km resolution mesh5 md.mesh=gmshplanet('radius',6.371012*10^3,'resolution',700.); %700 km resolution mesh 6 6 7 7 %parameterize solidearth solution: -
issm/trunk-jpl/test/NightlyRun/test2002.py
r25171 r25181 25 25 26 26 #antarctica 27 late = np.sum(md.mesh.lat[md.mesh.elements - 1],axis=1) / 328 longe = np.sum(md.mesh.long[md.mesh.elements - 1],axis=1) / 327 late = md.mesh.lat[md.mesh.elements - 1].sum(axis=1) / 3 28 longe = md.mesh.long[md.mesh.elements - 1].sum(axis=1) / 3 29 29 pos = np.where(late < -80)[0] 30 30 md.solidearth.surfaceload.icethicknesschange[pos] = -100 … … 42 42 pos = np.where(mask == 0)[0] 43 43 icemask[pos] = -1 44 pos = np.where( np.sum(mask[md.mesh.elements - 1], axis=1) < 3)44 pos = np.where(mask[md.mesh.elements - 1].sum(axis=1) < 3)[0] 45 45 icemask[md.mesh.elements[pos, :] - 1] = -1 46 46 md.mask.ice_levelset = icemask 47 47 md.mask.ocean_levelset = -icemask 48 49 #make sure that the ice level set is all inclusive:50 md.mask.land_levelset = np.zeros((md.mesh.numberofvertices, 1))51 md.mask.ocean_levelset = -np.ones((md.mesh.numberofvertices, 1))52 48 53 49 #make sure that the elements that have loads are fully grounded … … 57 53 #make sure wherever there is an ice load, that the mask is set to ice: 58 54 #pos = np.nonzero(md.solidearth.surfaceload.icethicknesschange)[0] # Do we need to do this twice? 59 md.mask.ice_levelset[md.mesh.elements[pos, :] - 1] = 155 md.mask.ice_levelset[md.mesh.elements[pos, :] - 1] = -1 60 56 # }}} 61 57 -
issm/trunk-jpl/test/NightlyRun/test2010.py
r25178 r25181 41 41 mask = gmtmask(md.mesh.lat, md.mesh.long) 42 42 icemask = np.ones((md.mesh.numberofvertices, 1)) 43 pos = np.where(mask == 0) 44 icemask[pos [0]] = -143 pos = np.where(mask == 0)[0] 44 icemask[pos] = -1 45 45 pos = np.where(mask[md.mesh.elements - 1].sum(axis=1) < 3)[0] 46 46 icemask[md.mesh.elements[pos, :] - 1] = -1
Note:
See TracChangeset
for help on using the changeset viewer.