Changeset 14631


Ignore:
Timestamp:
04/17/13 11:18:22 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: changed preallocation of netcdf variable size

File:
1 edited

Legend:

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

    r14621 r14631  
    11741174
    11751175                %Preallocate variable id, needed to write variables in netcdf file
    1176                 var_id=zeros(300,1);%preallocate
     1176                var_id=zeros(1000,1);%preallocate
    11771177
    11781178                for step=1:2,
     
    11821182                end
    11831183
    1184                 if counter>300,
    1185                         warning('preallocation of var_id need to be updated');
     1184                if counter>1000,
     1185                        warning(['preallocation of var_id need to be updated from ' num2str(1000) ' to ' num2str(counter)]);
    11861186                end
    11871187
Note: See TracChangeset for help on using the changeset viewer.