Changeset 21354
- Timestamp:
- 11/10/16 02:14:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/mismipbasalforcings.py
r21303 r21354 6 6 7 7 class mismipbasalforcings(object): 8 """ 8 """ 9 9 MISMIP Basal Forcings class definition 10 10 … … 13 13 """ 14 14 15 def __init__(self ,md): # {{{15 def __init__(self): # {{{ 16 16 17 17 self.groundedice_melting_rate = float('NaN') … … 20 20 self.upperdepth_melt = float('NaN') 21 21 self.geothermalflux = float('NaN') 22 23 if np.all(np.isnan(self.groundedice_melting_rate)):24 self.groundedice_melting_rate=np.zeros(md.mesh.numberofvertices)25 print ' no basalforcings.groundedice_melting_rate specified: values set as zero'26 22 27 23 self.setdefaultparameters() … … 41 37 self.geothermalflux=project3d(md,'vector',self.geothermalflux,'type','node','layer',1) #bedrock only gets geothermal flux 42 38 return self 39 #}}} 40 def initialize(self,md): # {{{ 41 if np.all(np.isnan(self.groundedice_melting_rate)): 42 self.groundedice_melting_rate=np.zeros(md.mesh.numberofvertices) 43 print ' no basalforcings.groundedice_melting_rate specified: values set as zero' 44 return self 43 45 #}}} 44 46 def setdefaultparameters(self): # {{{
Note:
See TracChangeset
for help on using the changeset viewer.