Changeset 684


Ignore:
Timestamp:
06/01/09 17:02:52 (15 years ago)
Author:
Mathieu Morlighem
Message:

control results are now in field results

Location:
issm/trunk/src/m
Files:
3 edited

Legend:

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

    r674 r684  
    177177        %Control
    178178        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=[];
    185179        md.nsteps=0;
    186180        md.maxiter=[];
  • issm/trunk/src/m/classes/public/isresultconsistent.m

    r683 r684  
    173173end % end function
    174174
    175 function bool=testsize(md,fields,sizefield)
     175function bool=testsize(md,fields,fieldsize)
    176176        %TESTSIZE - test size of a field
    177177        bool=1;
    178178        for i=1:length(fields),
    179                 if length(eval(['md.' fields{i}]))~=sizefield
     179                if length(eval(['md.' fields{i}]))~=fieldsize
    180180                        disp(['results not consistent: field ' fields{i} ' size should be ' num2str(md.numberofgrids)]);
    181181                        bool=0; return;
  • issm/trunk/src/m/solutions/cielo/loadcontrolfinalsol.m

    r179 r684  
    11function md=loadfinalcontrolsol(md,solution);
    22
    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;
     3md.control.vx=solution.vx*md.yts;
     4md.control.vy=solution.vy*md.yts;
     5md.control.vel=solution.vel*md.yts;
     6md.control.J=solution.J;
     7md.control.parameter=solution.parameter;
Note: See TracChangeset for help on using the changeset viewer.