Changeset 26928
- Timestamp:
- 03/11/22 01:19:12 (3 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/matdamageice.py
r26359 r26928 57 57 s += '{}\n'.format(fielddisplay(self, 'rheology_law', 'law for the temperature dependance of the rheology: \'None\', \'BuddJacka\', \'Cuffey\', \'CuffeyTemperate\', \'Paterson\', \'Arrhenius\' or \'LliboutryDuval\'')) 58 58 s += '{}\n'.format(fielddisplay(self, 'earth_density', 'Mantle density [kg m^-3]')) 59 return s tring59 return s 60 60 #}}} 61 61 … … 93 93 # Thermal exchange velocity (ice-water interface) (m/s) 94 94 self.thermal_exchange_velocity = 1.00e-4 95 # Rheology law: what is the temperature dependence of B with T 95 # Rheology law: what is the temperature dependence of B with T 96 96 # available: none, paterson and arrhenius 97 97 self.rheology_law = 'Paterson' -
issm/trunk-jpl/src/m/classes/materials.py
r26840 r26928 1 1 import numpy as np 2 3 2 from checkfield import checkfield 4 3 from fielddisplay import fielddisplay … … 173 172 self.rheology_n = 3 174 173 elif nat == 'litho': 175 # We default to a configuration that enables running GIA 174 # We default to a configuration that enables running GIA 176 175 # solutions using giacaron and/or giaivins 177 176 self.numlayers = 2 178 177 179 # Center of the earth (approximation, must not be 0), then the 178 # Center of the earth (approximation, must not be 0), then the 180 179 # lab (lithosphere/asthenosphere boundary) then the surface 181 180 # (with 1d3 to avoid numerical singularities) … … 295 294 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'density', 'format', 'DoubleMat', 'mattype', 3) 296 295 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'viscosity', 'format', 'DoubleMat', 'mattype', 3) 297 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'rheologymodel', 'format', 'DoubleMat', 'mattype', 3) 296 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'rheologymodel', 'format', 'DoubleMat', 'mattype', 3) 298 297 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'burgers_viscosity', 'format', 'DoubleMat', 'mattype', 3) 299 298 WriteData(fid, prefix, 'object', self, 'class', 'materials', 'fieldname', 'burgers_mu', 'format', 'DoubleMat', 'mattype', 3) -
issm/trunk-jpl/src/m/classes/model.py
r26573 r26928 823 823 md.inversion.max_parameters = project2d(md, md.inversion.max_parameters, md.mesh.numberoflayers) 824 824 if md.smb.__class__.__name__ == 'SMBforcing' and not np.isnan(md.smb.mass_balance).all(): 825 825 md.smb.mass_balance = project2d(md, md.smb.mass_balance, md.mesh.numberoflayers) 826 826 elif md.smb.__class__.__name__ == 'SMBhenning' and not np.isnan(md.smb.smbref).all(): 827 827 md.smb.smbref = project2d(md, md.smb.smbref, md.mesh.numberoflayers) 828 828 829 829 # Results -
issm/trunk-jpl/src/m/classes/solidearth.py
r26358 r26928 1 1 import numpy as np 2 3 2 from checkfield import checkfield 4 3 from fielddisplay import fielddisplay … … 6 5 from MatlabFuncs import * 7 6 from planetradius import planetradius 8 from project3d import project3d9 7 from rotational import rotational 10 8 from solidearthsettings import solidearthsettings … … 25 23 26 24 def __init__(self, *args): # {{{ 27 self.settings 28 self.external 29 self.lovenumbers 30 self.rotational 31 self.planetradius 32 self.requested_outputs 33 self.transitions 34 self.partitionice 35 self.partitionhydro 36 self.partitionocean 25 self.settings = solidearthsettings() 26 self.external = None 27 self.lovenumbers = lovenumbers() 28 self.rotational = rotational() 29 self.planetradius = planetradius('earth') 30 self.requested_outputs = [] 31 self.transitions = [] 32 self.partitionice = [] 33 self.partitionhydro = [] 34 self.partitionocean = [] 37 35 38 36 nargs = len(args) … … 44 42 raise Exception('solidearth constructor error message: zero or one argument only!') 45 43 # }}} 44 46 45 def __repr__(self): # {{{ 47 46 s = ' solidearthinputs, forcings and settings:\n' … … 57 56 print(self.lovenumbers) 58 57 print(self.rotational) 59 if len(self.external):58 try: 60 59 print(self.external) 60 except TypeError: 61 pass 61 62 return s 62 63 # }}} 64 63 65 def setdefaultparameters(self, planet): # {{{ 64 66 # Output default … … 79 81 self.planetradius = planetradius(planet) 80 82 # }}} 83 81 84 def checkconsistency(self, md, solution, analyses): # {{{ 82 85 if ('SealevelchangeAnalysis' not in analyses) or (solution == 'TransientSolution' and not md.transient.isslc): … … 94 97 return md 95 98 # }}} 99 96 100 def defaultoutputs(self, md): # {{{ 97 101 return ['Sealevel'] 98 102 # }}} 103 99 104 def marshall(self, prefix, md, fid): # {{{ 100 105 WriteData(fid, prefix, 'object', self, 'fieldname', 'planetradius', 'format', 'Double') … … 140 145 WriteData(fid, prefix, 'data', outputs, 'name', 'md.solidearth.requested_outputs', 'format', 'StringArray') 141 146 # }}} 147 142 148 def extrude(self, md): # {{{ 143 149 return self -
issm/trunk-jpl/src/m/plot/applyoptions.py
r25125 r26928 53 53 #title font 54 54 titlefont = font.copy() 55 titlefont[' size'] = titlefontsize56 titlefont[' weight'] = titlefontweight55 titlefont['fontsize'] = titlefontsize 56 titlefont['fontweight'] = titlefontweight 57 57 ax.set_title(title, **titlefont) 58 58 # }}} -
issm/trunk-jpl/test/NightlyRun/runme.m
r26857 r26928 218 218 end 219 219 220 % CHECK for memory leaks?220 %PRODUCE nc files? 221 221 elseif strcmpi(procedure,'ncExport'), 222 222 export_netCDF(md, ['test' num2str(id) 'ma.nc'])
Note:
See TracChangeset
for help on using the changeset viewer.