Changeset 14019


Ignore:
Timestamp:
11/27/12 15:26:14 (12 years ago)
Author:
jschierm
Message:

CHG: Changed md.transient boolean parameters to bool.

Location:
issm/trunk-jpl/src/m
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/transient.m

    r13040 r14019  
    4646
    4747                        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');
    4849                        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');
    5050                        fielddisplay(obj,'isgroundingline','indicates if a groundingline migration is used in the transient');
    5151                        fielddisplay(obj,'requested_outputs','list of additional outputs requested');
  • issm/trunk-jpl/src/m/classes/transient.py

    r13040 r14019  
    1616        def __init__(self):
    1717                # {{{ Properties
    18                 self.isprognostic      = 0
    19                 self.isdiagnostic      = 0
    20                 self.isthermal         = 0
    21                 self.isgroundingline   = 0
     18                self.isprognostic      = False
     19                self.isdiagnostic      = False
     20                self.isthermal         = False
     21                self.isgroundingline   = False
    2222                self.requested_outputs = float('NaN')
    2323
     
    3030                string='   transient solution parameters:'
    3131                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'))
    3233                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'))
    3434                string="%s\n%s"%(string,fielddisplay(self,'isgroundingline','indicates if a groundingline migration is used in the transient'))
    3535                string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','list of additional outputs requested'))
     
    4141               
    4242                #full analysis: Diagnostic, Prognostic and Thermal but no groundingline migration for now
    43                 self.isprognostic=1
    44                 self.isdiagnostic=1
    45                 self.isthermal=1
    46                 self.isgroundingline=0
     43                self.isprognostic=True
     44                self.isdiagnostic=True
     45                self.isthermal=True
     46                self.isgroundingline=False
    4747
    4848                return self
  • issm/trunk-jpl/src/m/parameterization/setflowequation.py

    r14017 r14019  
    9494                                              numpy.logical_not(numpy.isnan(md.diagnostic.spcvy)).astype(int)+ \
    9595                                              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 icefront
     96                                              numpy.logical_and(nodeonpattyn,nodeonstokes).reshape(-1,1))    #find all the nodes on the boundary of the domain without icefront
    9797#               fullspcelems=double(sum(fullspcnodes(md.mesh.elements),2)==6);         %find all the nodes on the boundary of the domain without icefront
    9898                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
     
    232232                        raise TypeError("type of coupling not supported yet")
    233233
    234         #Create MacaAyealPattynApproximation where needed
     234        #Create MacAyealPattynApproximation where needed
    235235        md.flowequation.element_equation=numpy.zeros(md.mesh.numberofelements,int)
    236236        md.flowequation.element_equation[numpy.nonzero(noneflag)]=0
Note: See TracChangeset for help on using the changeset viewer.