Changeset 8313 for issm/trunk
- Timestamp:
- 05/16/11 16:43:53 (14 years ago)
- Location:
- issm/trunk/src/m/model
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/extrude.m
r8298 r8313 153 153 md.dhdt=project3d(md,md.dhdt,'node'); 154 154 md.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,:)]; 155 156 156 157 %results -
issm/trunk/src/m/model/ismodelselfconsistent.m
r8298 r8313 91 91 checksize(md,fields,[md.numberofelements 1]); 92 92 %}}} 93 %SIZE NUMBEROF GRIDS {{{193 %SIZE NUMBEROFNODES {{{1 94 94 fields={'x','y','z','rheology_B','drag_coefficient','melting_rate','accumulation_rate','surface','thickness','bed','nodeonbed','nodeonsurface'}; 95 95 checksize(md,fields,[md.numberofnodes 1]); … … 277 277 error(['model not consistent: model ' md.name ' cfl_coefficient field should between 0 and 1']); 278 278 end 279 280 if(md.cfl_coefficient>1 | md.cfl_coefficient<0), 281 error(['model not consistent: model ' md.name ' cfl_coefficient field should between 0 and 1']); 282 end 283 284 %Check that forcing has length numberofnodes+1 285 fields={'forcing_accumulation'}; 286 checklength(md,fields,md.numberofnodes+1) 287 288 %Check that forcing columns are properly ordered 289 if md.forcing_accumulation(end,:)~=sort(md.forcing_accumulation(end,:)), 290 error(['model not consistent: model ' md.name ' forcing_accumulation field columns should be chronological']); 291 end 292 293 279 294 end 280 295 %}}} -
issm/trunk/src/m/model/marshall.m
r8309 r8313 93 93 WriteData(fid,md.melting_rate,'Mat','melting_rate'); 94 94 WriteData(fid,md.melting_rate_correction_apply,'Integer','melting_rate_correction_apply'); 95 WriteData(fid,md.forcing_accumulation,'Mat','forcing_accumulation'); 95 96 if md.melting_rate_correction_apply, 96 97 WriteData(fid,md.melting_rate_correction,'Mat','melting_rate_correction');
Note:
See TracChangeset
for help on using the changeset viewer.