Changeset 3104


Ignore:
Timestamp:
02/23/10 16:43:30 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/ismodelselfconsistent.m

    r3099 r3104  
    420420                if isnan(fieldsize(1)),
    421421                        if (size(eval(['md.' fields{i}]),2)~=fieldsize(2)),
     422                                %LOG warning:
     423                                if strcmpi(fields{i},'pressureload'),
     424                                        disp(' ');
     425                                        disp('   If pressureload does not have the right size (one column missing), this is due to a change in md.pressure.');
     426                                        disp('      To update your model, use the following line');
     427                                        disp('      md.pressureload=[md.pressureload WaterEnum*md.elementoniceshelf(md.pressureload(:,end))+AirEnum*md.elementonicesheet(md.pressureload(:,end))];');
     428                                        disp(' ');
     429                                end
    422430                                error(['model not consistent: field ' fields{i} ' should have ' num2str(fieldsize(2)) ' columns']);
    423431                        end
Note: See TracChangeset for help on using the changeset viewer.