Ignore:
Timestamp:
03/08/21 17:46:39 (4 years ago)
Author:
Eric.Larour
Message:

CHG: huge commit on solid earth capability rewrite. Complete cleanup of the sea level core.
New mass transport capabilities for ocean and tws. No more giacore. GiaIvins folded into
the sea level core. Debugging of Materials.

File:
1 edited

Legend:

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

    r25956 r26047  
    7979                                end
    8080                        end
     81
     82                        %make sure grd is the same everywhere:
     83                        for i=1:length(slm.icecaps),
     84                                md= slm.icecaps{i};
     85                                if md.solidearthsettings.isgrd~=slm.earth.solidearthsettings.isgrd),
     86                                        error(sprintf('isgrd on ice cap %s is not the same as for the earth\n',md.miscellaneous.name));
     87                                end
     88                        end
     89                        %make sure that there is no solid earth external forcing on the basins:
     90                        for i=1:length(slm.icecaps),
     91                                md= slm.icecaps{i};
     92                                if ~isempty(md.solidearth.external),
     93                                        error(sprintf('cannot run external forcings on an ice sheet when runing a coupling earth/ice sheet model');
     94                                end
     95
     96                        end
     97                        %make sure that we have the rigth grd model for computing ouf sealevel patterns:
     98                        for i=1:length(slm.icecaps),
     99                                md= slm.icecaps{i};
     100                                if md.solidearth.settings.grdmodel~=0
     101                                        error(sprintf('sealevelmodel checkconsistenty error message: ice sheets do not run GRD module, specify solidearth.settings.grdmodel=0 on ice cap %i',i));
     102                                end
     103                        end
     104
    81105
    82106                end
Note: See TracChangeset for help on using the changeset viewer.