Changeset 18766


Ignore:
Timestamp:
11/10/14 08:36:15 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed extrusion of calving parameters in python

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

Legend:

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

    r18757 r18766  
    2626                return string
    2727                #}}}
    28         def defaultoutputs(self,md): # {{{
    29 
    30                 return []
    31 
    32         #}}}
    3328        def setdefaultparameters(self): # {{{
    3429
  • issm/trunk-jpl/src/m/classes/calvinglevermann.m

    r18757 r18766  
    66classdef calvinglevermann
    77        properties (SetAccess=public)
    8                  coeff                  = 0;
     8                 coeff = NaN;
    99        end
    1010        methods
     
    3737                end % }}}
    3838                function disp(obj) % {{{
    39                         disp(sprintf('   Calving parameters:'));
     39                        disp(sprintf('   Calving Levermann parameters:'));
    4040                        fielddisplay(obj,'coeff','proportionality coefficient in Levermann model');
    4141
  • issm/trunk-jpl/src/m/classes/model.py

    r18757 r18766  
    1616from matice import matice
    1717from calving import calving
     18from calvinglevermann import calvinglevermann
    1819from damage import damage
    1920from friction import friction
     
    664665
    665666                # Calving variables
    666                 if hasattr(md.calving,'calving'):
     667                if isinstance(md.calving,calving):
    667668                        md.calving.calvingrate=project3d(md,'vector',md.calving.calvingrate,'type','node')
    668                 if hasattr(md.calving,'calvinglevermann'):
     669                if isinstance(md.calving,calvinglevermann):
    669670                        md.calving.coeff=project3d(md,'vector',md.calving.coeff,'type','node')
    670671
Note: See TracChangeset for help on using the changeset viewer.