Changeset 684
- Timestamp:
- 06/01/09 17:02:52 (15 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/@model/model.m
r674 r684 177 177 %Control 178 178 md.control_type=''; 179 md.cont_vx=NaN;180 md.cont_vy=NaN;181 md.cont_vz=NaN;182 md.cont_vel=NaN;183 md.cont_parameter=NaN;184 md.cont_J=[];185 179 md.nsteps=0; 186 180 md.maxiter=[]; -
issm/trunk/src/m/classes/public/isresultconsistent.m
r683 r684 173 173 end % end function 174 174 175 function bool=testsize(md,fields, sizefield)175 function bool=testsize(md,fields,fieldsize) 176 176 %TESTSIZE - test size of a field 177 177 bool=1; 178 178 for i=1:length(fields), 179 if length(eval(['md.' fields{i}]))~= sizefield179 if length(eval(['md.' fields{i}]))~=fieldsize 180 180 disp(['results not consistent: field ' fields{i} ' size should be ' num2str(md.numberofgrids)]); 181 181 bool=0; return; -
issm/trunk/src/m/solutions/cielo/loadcontrolfinalsol.m
r179 r684 1 1 function md=loadfinalcontrolsol(md,solution); 2 2 3 md.cont _vx=solution.vx*md.yts;4 md.cont _vy=solution.vy*md.yts;5 md.cont _vel=solution.vel*md.yts;6 md.cont _J=solution.J;7 md.cont _parameter=solution.parameter;3 md.control.vx=solution.vx*md.yts; 4 md.control.vy=solution.vy*md.yts; 5 md.control.vel=solution.vel*md.yts; 6 md.control.J=solution.J; 7 md.control.parameter=solution.parameter;
Note:
See TracChangeset
for help on using the changeset viewer.