Changeset 8130
- Timestamp:
- 05/04/11 11:28:51 (14 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/model.m
r8104 r8130 219 219 eps_cm=0; 220 220 cm_noisedmp=0; 221 cm_min= 0;222 cm_max= 0;221 cm_min=NaN; 222 cm_max=NaN; 223 223 cm_jump=[]; 224 224 cm_gradient=0; … … 259 259 melting_rate=NaN; 260 260 melting_rate_correction=NaN; 261 melting_rate_correction_apply= NaN;261 melting_rate_correction_apply=0; 262 262 pressure=NaN; 263 263 … … 677 677 md.cm_jump=.7*ones(md.nsteps,1); %30 per cent decrement. 678 678 679 %cm_min is the minimum acceptable value of the680 %inversed parameter (B>0 for example)681 md.cm_min=0;682 683 %cm_max is the maximum acceptable value of the684 %inversed parameter (drag<200 for example)685 md.cm_max=200;686 687 679 %stop control solution at the gradient computation and return it? 688 680 md.cm_gradient=0; -
issm/trunk/src/m/model/ismodelselfconsistent.m
r8128 r8130 188 188 checksize(md,fields,[md.nsteps num_controls]); 189 189 fields={'cm_min','cm_max'}; 190 checksize(md,fields,[ 1num_controls]);190 checksize(md,fields,[md.numberofgrids num_controls]); 191 191 192 192 %RESPONSES … … 532 532 else 533 533 if ((size(field)~=fieldsize(1)) | (size(field,2)~=fieldsize(2))) 534 %WARNING: new version 535 if strcmp(fields{i},'cm_min'), 536 disp('!!! '); 537 disp('!!! WARNING: cm_min must now be of size [md.numberofgrids x 1]. Update your parameter file as follows:'); 538 disp('!!! '); 539 disp('!!! md.cm_min=md.cm_min*ones(md.numberofgrids,1);'); 540 disp('!!! '); 541 end 542 %WARNING: new version 543 if strcmp(fields{i},'cm_max'), 544 disp('!!! '); 545 disp('!!! WARNING: cm_max must now be of size [md.numberofgrids x 1]. Update your parameter file as follows:'); 546 disp('!!! '); 547 disp('!!! md.cm_max=md.cm_max*ones(md.numberofgrids,1);'); 548 disp('!!! '); 549 end 534 550 error(['model not consistent: field ' fields{i} ' size should be ' num2str(fieldsize(1)) ' x ' num2str(fieldsize(2))]); 535 551 end -
issm/trunk/src/m/utils/Model/loadmodel.m
r7301 r8130 19 19 try, 20 20 %recover model on file and name it md 21 warning off 21 22 struc=load(path,'-mat'); 23 warning on 22 24 name=char(fieldnames(struc)); 23 25 if size(name,1)>1,
Note:
See TracChangeset
for help on using the changeset viewer.