source: issm/oecreview/Archive/12678-13393/ISSM-13238-13239.diff

Last change on this file was 13394, checked in by Mathieu Morlighem, 13 years ago

Added 12678-13393

File size: 2.2 KB
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/m/classes/oldclasses/materials.m

     
     1%OLD materials class definition
     2
     3classdef materials
     4        properties (SetAccess=public)
     5                rho_ice                    = 0.;
     6                rho_water                  = 0.;
     7                rho_freshwater             = 0.;
     8                mu_water                   = 0.;
     9                heatcapacity               = 0.;
     10                latentheat                 = 0.;
     11                thermalconductivity        = 0.;
     12                meltingpoint               = 0.;
     13                beta                       = 0.;
     14                mixed_layer_capacity       = 0.;
     15                thermal_exchange_velocity  = 0.;
     16                rheology_B   = NaN;
     17                rheology_n   = NaN;
     18                rheology_law = '';
     19        end
     20end
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/m/classes/oldclasses/README

     
     1We put here all old classes so that matlab can still load old models
     2When an object is renamed or deleted, matlab is not able to load it
     3anymore. We keep it here so that matlab can load the object
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/m/classes/model/model.m

     
    7171                                 disp('Recovering model object from a previous version');
    7272                                 md = structtomodel(model,md);
    7373                         end
     74
     75                         %2012 August 4th
     76                         if isa(md.materials,'materials'),
     77                                 disp('Recovering old materials');
     78                                 md.materials=matice(md.materials);
     79                         end
     80
    7481                 end% }}}
    7582         end
    7683         methods
Note: See TracBrowser for help on using the repository browser.