Changeset 20671


Ignore:
Timestamp:
05/30/16 16:38:13 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: process units

File:
1 edited

Legend:

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

    r19958 r20671  
    249249                        y        = self.y;
    250250                        z        = zeros(self.numberofvertices,1);
     251
     252                        if exist(options,'xunit'),
     253                                unit=getfieldvalue(options,'xunit');
     254                                x=x*unit; % Apply to x only
     255                        end
     256                        if exist(options,'yunit'),
     257                                unit=getfieldvalue(options,'yunit');
     258                                x=x*unit; % Apply to x only
     259                        end
    251260                end % }}}
    252261        end
Note: See TracChangeset for help on using the changeset viewer.