- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/boundaryconditions/SetMarineIceSheetBC.py
r24313 r25836 32 32 #Guess where the ice front is 33 33 vertexonfloatingice = np.zeros((md.mesh.numberofvertices)) 34 pos = np.nonzero(np.sum(md.mask. groundedice_levelset[md.mesh.elements - 1] < 0., axis=1) > 0.)[0]34 pos = np.nonzero(np.sum(md.mask.ocean_levelset[md.mesh.elements - 1] < 0., axis=1) > 0.)[0] 35 35 vertexonfloatingice[md.mesh.elements[pos].astype(int) - 1] = 1. 36 36 vertexonicefront = np.logical_and(np.reshape(md.mesh.vertexonboundary, (-1, )), vertexonfloatingice > 0.) … … 103 103 if not isinstance(md.basalforcings.geothermalflux, np.ndarray) or not np.size(md.basalforcings.geothermalflux, axis=0) == md.mesh.numberofvertices: 104 104 md.basalforcings.geothermalflux = np.zeros((md.mesh.numberofvertices)) 105 md.basalforcings.geothermalflux[np.nonzero(md.mask. groundedice_levelset > 0.)] = 50. * 10.**- 3 #50mW / m2105 md.basalforcings.geothermalflux[np.nonzero(md.mask.ocean_levelset > 0.)] = 50. * 10.**- 3 #50mW / m2 106 106 else: 107 107 print(" no thermal boundary conditions created: no observed temperature found")
Note:
See TracChangeset
for help on using the changeset viewer.