Changeset 25400


Ignore:
Timestamp:
08/15/20 13:34:33 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: making friction and rheology B more flexible:

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

Legend:

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

    r25161 r25400  
    8282
    8383                        WriteData(fid,prefix,'name','md.friction.law','data',1,'format','Integer');
    84                         WriteData(fid,prefix,'object',self,'fieldname','coefficient','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     84                        if(size(self.coefficient,1)==md.mesh.numberofelements | size(self.coefficient,1)==md.mesh.numberofelements+1),
     85                                mattype=2; tsl = md.mesh.numberofelements;
     86                        else
     87                                mattype=1; tsl = md.mesh.numberofvertices;
     88                        end
     89                        WriteData(fid,prefix,'object',self,'fieldname','coefficient','format','DoubleMat','mattype',mattype,'timeserieslength',tsl+1,'yts',md.constants.yts);
    8590                        WriteData(fid,prefix,'object',self,'fieldname','p','format','DoubleMat','mattype',2);
    8691                        WriteData(fid,prefix,'object',self,'fieldname','q','format','DoubleMat','mattype',2);
  • issm/trunk-jpl/src/m/classes/inversionvalidation.m

    r22303 r25400  
    7070                        md = checkfield(md,'fieldname','inversion.cost_functions','size',[1 num_costfunc],'values',supportedcostfunctions());
    7171                        md = checkfield(md,'fieldname','inversion.cost_functions_coefficients','size',[md.mesh.numberofvertices num_costfunc],'>=',0);
    72                         md = checkfield(md,'fieldname','inversion.min_parameters','size',[md.mesh.numberofvertices num_controls]);
    73                         md = checkfield(md,'fieldname','inversion.max_parameters','size',[md.mesh.numberofvertices num_controls]);
     72                        md = checkfield(md,'fieldname','inversion.min_parameters','size',[NaN num_controls]);
     73                        md = checkfield(md,'fieldname','inversion.max_parameters','size',[NaN num_controls]);
    7474
    7575                        if strcmp(solution,'BalancethicknessSolution')
  • issm/trunk-jpl/src/m/classes/matice.m

    r25383 r25400  
    175175                        WriteData(fid,prefix,'object',self,'class','materials','fieldname','mixed_layer_capacity','format','Double');
    176176                        WriteData(fid,prefix,'object',self,'class','materials','fieldname','thermal_exchange_velocity','format','Double');
    177                         WriteData(fid,prefix,'object',self,'class','materials','fieldname','rheology_B','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     177                        if(size(self.rheology_B,1)==md.mesh.numberofelements | size(self.rheology_B,1)==md.mesh.numberofelements+1),
     178                                mattype=2; tsl = md.mesh.numberofelements;
     179                        else
     180                                mattype=1; tsl = md.mesh.numberofvertices;
     181                        end
     182                        WriteData(fid,prefix,'object',self,'class','materials','fieldname','rheology_B','format','DoubleMat','mattype',mattype,'timeserieslength',tsl+mattype,'yts',md.constants.yts);
    178183                        WriteData(fid,prefix,'object',self,'class','materials','fieldname','rheology_n','format','DoubleMat','mattype',2);
    179184                        WriteData(fid,prefix,'data',self.rheology_law,'name','md.materials.rheology_law','format','String');
Note: See TracChangeset for help on using the changeset viewer.