Changeset 14019
- Timestamp:
- 11/27/12 15:26:14 (12 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/transient.m
r13040 r14019 46 46 47 47 fielddisplay(obj,'isprognostic','indicates if a prognostic solution is used in the transient'); 48 fielddisplay(obj,'isdiagnostic','indicates if a diagnostic solution is used in the transient'); 48 49 fielddisplay(obj,'isthermal','indicates if a thermal solution is used in the transient'); 49 fielddisplay(obj,'isdiagnostic','indicates if a diagnostic solution is used in the transient');50 50 fielddisplay(obj,'isgroundingline','indicates if a groundingline migration is used in the transient'); 51 51 fielddisplay(obj,'requested_outputs','list of additional outputs requested'); -
issm/trunk-jpl/src/m/classes/transient.py
r13040 r14019 16 16 def __init__(self): 17 17 # {{{ Properties 18 self.isprognostic = 019 self.isdiagnostic = 020 self.isthermal = 021 self.isgroundingline = 018 self.isprognostic = False 19 self.isdiagnostic = False 20 self.isthermal = False 21 self.isgroundingline = False 22 22 self.requested_outputs = float('NaN') 23 23 … … 30 30 string=' transient solution parameters:' 31 31 string="%s\n%s"%(string,fielddisplay(self,'isprognostic','indicates if a prognostic solution is used in the transient')) 32 string="%s\n%s"%(string,fielddisplay(self,'isdiagnostic','indicates if a diagnostic solution is used in the transient')) 32 33 string="%s\n%s"%(string,fielddisplay(self,'isthermal','indicates if a thermal solution is used in the transient')) 33 string="%s\n%s"%(string,fielddisplay(self,'isdiagnostic','indicates if a diagnostic solution is used in the transient'))34 34 string="%s\n%s"%(string,fielddisplay(self,'isgroundingline','indicates if a groundingline migration is used in the transient')) 35 35 string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','list of additional outputs requested')) … … 41 41 42 42 #full analysis: Diagnostic, Prognostic and Thermal but no groundingline migration for now 43 self.isprognostic= 144 self.isdiagnostic= 145 self.isthermal= 146 self.isgroundingline= 043 self.isprognostic=True 44 self.isdiagnostic=True 45 self.isthermal=True 46 self.isgroundingline=False 47 47 48 48 return self -
issm/trunk-jpl/src/m/parameterization/setflowequation.py
r14017 r14019 94 94 numpy.logical_not(numpy.isnan(md.diagnostic.spcvy)).astype(int)+ \ 95 95 numpy.logical_not(numpy.isnan(md.diagnostic.spcvz)).astype(int)==3, \ 96 numpy.logical_and(nodeonpattyn,nodeonstokes).reshape(-1,1)) .astype(int)#find all the nodes on the boundary of the domain without icefront96 numpy.logical_and(nodeonpattyn,nodeonstokes).reshape(-1,1)) #find all the nodes on the boundary of the domain without icefront 97 97 # fullspcelems=double(sum(fullspcnodes(md.mesh.elements),2)==6); %find all the nodes on the boundary of the domain without icefront 98 98 fullspcelems=(numpy.sum(fullspcnodes[md.mesh.elements-1],axis=1)==6).astype(int) #find all the nodes on the boundary of the domain without icefront … … 232 232 raise TypeError("type of coupling not supported yet") 233 233 234 #Create Mac aAyealPattynApproximation where needed234 #Create MacAyealPattynApproximation where needed 235 235 md.flowequation.element_equation=numpy.zeros(md.mesh.numberofelements,int) 236 236 md.flowequation.element_equation[numpy.nonzero(noneflag)]=0
Note:
See TracChangeset
for help on using the changeset viewer.