Changeset 25385
- Timestamp:
- 08/12/20 11:02:04 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBd18opdd.py
r25382 r25385 89 89 self.temperatures_reconstructed = project3d(md, 'vector', self.temperatures_reconstructed, 'type', 'node') 90 90 if self.isprecipscaled == 0: 91 self.temperatures_reconstructed = project3d(md, 'vector', self.precipitations_reconstructed, 'type', 'node') 92 if self.isd18opd: 93 self.precipitations_presentday = project3d(md, 'vector', self.precipitations_presentday, 'type', 'node') 91 self.precipitations_reconstructed = project3d(md, 'vector', self.precipitations_reconstructed, 'type', 'node') 94 92 self.s0p = project3d(md, 'vector', self.s0p, 'type', 'node') 95 93 self.s0t = project3d(md, 'vector', self.s0t, 'type', 'node') -
issm/trunk-jpl/src/m/classes/initialization.py
r25026 r25385 104 104 md = checkfield(md, 'fieldname', 'initialization.vx', 'NaN', 1, 'Inf', 1, 'size', [md.mesh.numberofvertices]) 105 105 md = checkfield(md, 'fieldname', 'initialization.vy', 'NaN', 1, 'Inf', 1, 'size', [md.mesh.numberofvertices]) 106 md = checkfield(md, 'fieldname', 'initialization.temperature', 'NaN', 1, 'Inf', 1, 'size', [md.mesh.numberofvertices])106 md = checkfield(md, 'fieldname', 'initialization.temperature', 'NaN', 1, 'Inf', 1, 'size', 'universal') 107 107 if md.mesh.dimension() == 3: 108 108 md = checkfield(md, 'fieldname', 'initialization.vz', 'NaN', 1, 'Inf', 1, 'size', [md.mesh.numberofvertices]) -
issm/trunk-jpl/src/m/classes/matice.py
r25170 r25385 124 124 md = checkfield(md, 'fieldname', 'materials.rho_freshwater', '>', 0) 125 125 md = checkfield(md, 'fieldname', 'materials.mu_water', '>', 0) 126 md = checkfield(md, 'fieldname', 'materials.rheology_B', '>', 0, ' timeseries', 1, 'NaN', 1, 'Inf', 1)126 md = checkfield(md, 'fieldname', 'materials.rheology_B', '>', 0, 'universal', 1, 'NaN', 1, 'Inf', 1) 127 127 md = checkfield(md, 'fieldname', 'materials.rheology_n', '>', 0, 'size', [md.mesh.numberofelements]) 128 128 md = checkfield(md, 'fieldname', 'materials.rheology_law', 'values', ['None', 'BuddJacka', 'Cuffey', 'CuffeyTemperate', 'Paterson', 'Arrhenius', 'LliboutryDuval', 'NyeCO2', 'NyeH2O']) -
issm/trunk-jpl/src/m/consistency/checkfield.py
r25169 r25385 84 84 #Uniform field 85 85 if (np.size(field, 0) == 1): 86 if (np. shape(field)[1] != 1):86 if (np.ndim(field) > 1 and np.shape(field)[1] != 1): 87 87 md = md.checkmessage(options.getfieldvalue('message', "field '{}' is not supported".format(fieldname))) 88 88 89 89 #vertex oriented input, only one column allowed 90 90 elif (np.shape(field)[0] == md.mesh.numberofvertices): 91 if (np. shape(field)[1] != 1):91 if (np.ndim(field) > 1 and np.shape(field)[1] != 1): 92 92 md = md.checkmessage(options.getfieldvalue('message', "field '{}' is not supported".format(fieldname))) 93 93 … … 99 99 #vertex time series 100 100 elif (np.shape(field)[0] == md.mesh.numberofvertices + 1): 101 if (np. shape(field)[1] <= 1):101 if (np.ndim(field) > 1 and np.shape(field)[1] <= 1): 102 102 md = md.checkmessage(options.getfieldvalue('message', "field '{}' is not supported".format(fieldname))) 103 103 104 104 #element time series 105 105 elif (np.shape(field)[0] == md.mesh.numberofelements + 1): 106 if (np. shape(field)[1] <= 1):106 if (np.ndim(field) > 1 and np.shape(field)[1] <= 1): 107 107 md = md.checkmessage(options.getfieldvalue('message', "field '{}' is not supported".format(fieldname))) 108 108
Note:
See TracChangeset
for help on using the changeset viewer.