Ignore:
Timestamp:
04/25/12 09:17:29 (13 years ago)
Author:
Eric.Larour
Message:

Added setdefaultparameters routines to python classes

File:
1 edited

Legend:

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

    r12038 r12123  
    1212                self.vertex_pairing         = float('NaN')
    1313                self.penalty_factor         = 0
     14
     15                #set defaults
     16                self.setdefaultparameters()
     17
    1418                #}}}
    1519        def __repr__(obj):
     
    2327                return string
    2428                #}}}
     29               
     30        def setdefaultparameters(obj):
     31                # {{{setdefaultparameters
     32               
     33                #Type of stabilization to use 0:nothing 1:artificial_diffusivity 3:Discontinuous Galerkin
     34                obj.stabilization=1
     35
     36                #Factor applied to compute the penalties kappa=max(stiffness matrix)*10^penalty_factor
     37                obj.penalty_factor=3
     38
     39                #Minimum ice thickness that can be used
     40                obj.min_thickness=1
     41
     42                #Hydrostatic adjustment
     43                obj.hydrostatic_adjustment='Absolute'
     44
     45                return obj
     46        #}}}
     47
Note: See TracChangeset for help on using the changeset viewer.