Changeset 8318


Ignore:
Timestamp:
05/16/11 16:56:15 (14 years ago)
Author:
seroussi
Message:

extrude only if not nan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/extrude.m

    r8313 r8318  
    153153md.dhdt=project3d(md,md.dhdt,'node');
    154154md.firn_layer=project3d(md,md.firn_layer,'node',md.numlayers);
    155 md.forcing_accumulation=[project3d(md,md.forcing_accumulation(1:end-1,:),'node');md.forcing_accumulation(end,:)];
     155if ~isnan(md.forcing_accumulation), md.forcing_accumulation=[project3d(md,md.forcing_accumulation(1:end-1,:),'node');md.forcing_accumulation(end,:)]; end
    156156
    157157%results
Note: See TracChangeset for help on using the changeset viewer.