Changeset 1121


Ignore:
Timestamp:
06/26/09 10:44:01 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed control output velocity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/cielo/control_core.m

    r1046 r1121  
    7373%generate output
    7474displaystring(debug,'\n%s',['      preparing final velocity solution...']);
    75 results=controlfinalsol(c,m_dh,param_g,inputs,'diagnostic','horiz');
     75
     76%compute final velocity from diagnostic_core (horiz+vertical)
     77inputs=add(inputs,m_dh.parameters.control_type,param_g,'doublevec',1,m_dh.parameters.numberofnodes);
     78results_diag=diagnostic_core(models,inputs);
     79
     80%Recover misfit at each iteration of the control method
     81J=zeros(length(c),1);
     82for i=1:length(c),
     83        J(i)=c(i).J;
     84end
     85
     86%build results
     87results.time=0;
     88results.step=1;
     89results.J=J;
     90results.param_g=param_g;
     91results.u_g=results_diag.u_g;
Note: See TracChangeset for help on using the changeset viewer.