Changeset 8407


Ignore:
Timestamp:
05/24/11 09:54:40 (14 years ago)
Author:
schlegel
Message:

get forcing length using ength(fieldnames(md.forcings))

File:
1 edited

Legend:

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

    r8399 r8407  
    151151md.vel_obs_raw=project3d(md,md.vel_obs_raw,'node');
    152152md.surface_mass_balance=project3d(md,md.surface_mass_balance,'node');
     153md.surface_accumulation_rate=project3d(md,md.surface_accumulation_rate,'node');
     154md.surface_ablation_rate=project3d(md,md.surface_ablation_rate,'node');
    153155md.dhdt=project3d(md,md.dhdt,'node');
    154156md.firn_layer=project3d(md,md.firn_layer,'node',md.numlayers);
    155157if ~isempty(md.forcings),
    156158        forcingnames=fieldnames(md.forcings);
    157         numforcings=length(md.forcings);
     159        numforcings=length(fieldnames(md.forcings));
    158160        for i=1:numforcings
    159161                forcing=md.forcings.(forcingnames{i});
Note: See TracChangeset for help on using the changeset viewer.