Changeset 1225


Ignore:
Timestamp:
07/02/09 16:52:27 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added residue

Location:
issm/trunk/src/m/solutions/cielo
Files:
2 edited

Legend:

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

    r1207 r1225  
    2727%Take car of Stokes : compute slope and get spc once for all
    2828if isstokes,
    29         [inputs m_ds]=ControlProcessStokes(models,inputs);
     29        [inputs m_ds]=ControlPrepareStokes(models,inputs);
    3030end
    3131
  • issm/trunk/src/m/solutions/cielo/diagnostic_core_nonlinear.m

    r1128 r1225  
    4949                [soln(count).u_f]=Solver(K_ff,p_f,[],m.parameters);
    5050
     51                %Get residue
     52                residu=norm(K_ff*soln(count).u_f-p_f,2);
     53
    5154                %Merge back to g set
    5255                [soln(count).u_g]= Mergesolutionfromftog( soln(count).u_f, m.Gmn, m.ys, m.nodesets );
     
    6770                ndu=norm(dug,2);
    6871                nu=norm(soln(count-1).u_g,2);
     72
     73                %Residue criterion
     74                displaystring(m.parameters.debug,'%s%g','      convergence criterion: norm(residue)=',residu);
    6975
    7076                %Relative criterion
Note: See TracChangeset for help on using the changeset viewer.