Changeset 113


Ignore:
Timestamp:
04/28/09 16:39:07 (16 years ago)
Author:
seroussi
Message:

Better initialization of velocity (to be fixed in diagfnostic.m tomorrow)

File:
1 edited

Legend:

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

    r79 r113  
    22%INPUT function [ru_g varargout]=cielodiagnostic_core_nonlinear(m,inputs)
    33       
    4         %check inputs
    5         if isempty(inputs),
    6                 clear inputs;
    7         end
    8 
    94%   first off! We are going to modify the loads dataset. We need to shield the loads from those changes once we return;
    105        loads=m.loads;
     
    1611        count=1;
    1712        converged=0;
    18         soln(count).u_g=[];
     13        [velocity_param velocity_is_present]=recover_input(inputs,'velocity');
     14        if velocity_is_present
     15                soln(count).u_g=velocity_param;
     16        else   
     17                soln(count).u_g=[];
     18        end
    1919        soln(count).u_f=[];
    2020
     
    3030                if count>1,
    3131                        inputs.old_velocity=full(soln(count-1).u_g);
     32                else
     33                        inputs.old_velocity=full(soln(count).u_g);
    3234                end
    3335
Note: See TracChangeset for help on using the changeset viewer.