Changeset 16274


Ignore:
Timestamp:
09/30/13 16:44:13 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: python should also marshall ThermalIsdynamicbasalspc

Location:
issm/trunk-jpl/src/m/classes
Files:
2 edited

Legend:

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

    r16273 r16274  
    1313                penalty_factor    = 0;
    1414                isenthalpy        = 0;
    15                 isdynamicbasalspc = 0;
     15                isdynamicbasalspc = 0;
    1616        end
    1717        methods
     
    4141                        obj.isenthalpy=0;
    4242
    43                         %will basal boundary conditions be set dynamically
    44                         obj.isdynamicbasalspc=0;
     43                        %will basal boundary conditions be set dynamically
     44                        obj.isdynamicbasalspc=0;
    4545                end % }}}
    4646                function md = checkconsistency(obj,md,solution,analyses) % {{{
     
    5656                                md = checkfield(md,'thermal.spctemperature(find(md.thermal.spctemperature(1:md.mesh.numberofvertices,:)~=NaN))','<',md.materials.meltingpoint-md.materials.beta*md.materials.rho_ice*md.constants.g*replicate(pos),'message','spctemperature should be below the adjusted melting point');
    5757                                md = checkfield(md,'thermal.isenthalpy','numel',[1],'values',[0 1]);
    58                                 md = checkfield(md,'thermal.isdynamicbasalspc','numel',[1],'values',[0 1]);
     58                                md = checkfield(md,'thermal.isdynamicbasalspc','numel',[1],'values',[0 1]);
    5959                        end
    6060                end % }}}
     
    6969                        fielddisplay(obj,'penalty_factor','scaling exponent (default is 3)');
    7070                        fielddisplay(obj,'isenthalpy','use an enthalpy formulation to include temperate ice (default is 0)');
    71                         fielddisplay(obj,'isdynamicbasalspc',['enable dynamic setting of basal forcing. required for enthalpy formulation (default is 0)']);
     71                        fielddisplay(obj,'isdynamicbasalspc',['enable dynamic setting of basal forcing. required for enthalpy formulation (default is 0)']);
    7272
    7373                end % }}}
  • issm/trunk-jpl/src/m/classes/thermal.py

    r16273 r16274  
    2121                self.penalty_factor    = 0
    2222                self.isenthalpy        = 0
     23                self.isdynamicbasalspc = 0;
    2324
    2425                #set defaults
     
    3435                string="%s\n%s"%(string,fielddisplay(self,'penalty_threshold','threshold to declare convergence of thermal solution (default is 0)'))
    3536                string="%s\n%s"%(string,fielddisplay(self,'isenthalpy','use an enthalpy formulation to include temperate ice (default is 0)'))
     37                string="%s\n%s"%(string,fielddisplay(self,'isdynamicbasalspc','enable dynamic setting of basal forcing. required for enthalpy formulation (default is 0)'))
    3638                return string
    3739                #}}}
     
    5355                self.isenthalpy=0
    5456
     57                #will basal boundary conditions be set dynamically
     58                self.isdynamicbasalspc=0;
    5559                return self
     60
    5661        #}}}
    5762        def checkconsistency(self,md,solution,analyses):    # {{{
     
    6873                        md = checkfield(md,'thermal.spctemperature[numpy.nonzero(numpy.logical_not(numpy.isnan(md.thermal.spctemperature[0:md.mesh.numberofvertices,:])))]','<',md.materials.meltingpoint-md.materials.beta*md.materials.rho_ice*md.constants.g*replicate[pos],'message',"spctemperature should be below the adjusted melting point")
    6974                        md = checkfield(md,'thermal.isenthalpy','numel',[1],'values',[0,1])
     75                        md = checkfield(md,'thermal.isdynamicbasalspc','numel',[1],'values',[0,1]);
    7076
    7177                return md
Note: See TracChangeset for help on using the changeset viewer.