Changeset 1718


Ignore:
Timestamp:
08/17/09 11:21:09 (15 years ago)
Author:
seroussi
Message:

changed ice time step in years

Location:
issm/trunk/src/m/solutions/ice
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/prognostic.m

    r1680 r1718  
    5252%inputs=struct('thickness',thickness,'melting',melting,'accumulation',accumulation,...
    5353%'surface_vertical_velocity',ws,'basal_vertical_velocity',wb,'dt',md.dt,'velocity_average',velocity_average);
    54 inputs=struct('thickness',thickness,'melting',melting,'accumulation',accumulation,'dt',md.dt,'velocity_average',velocity_average);
     54inputs=struct('thickness',thickness,'melting',melting,'accumulation',accumulation,'dt',md.dt*md.yts,'velocity_average',velocity_average);
    5555
    5656%Run core solution
  • issm/trunk/src/m/solutions/ice/thermal.m

    r1680 r1718  
    3333        disp('   computing temperature...');
    3434        gridset=m_t.gridset;
    35         inputs=struct('pressure',pressure,'velocity',velocity,'dt',md.dt);
     35        inputs=struct('pressure',pressure,'velocity',velocity,'dt',md.dt*md.yts);
    3636        [t_g m_t.loads_t melting_offset]=thermal_core(m_t,analysis_type,inputs);
    3737       
     
    6565
    6666                soln(n+1).time=(n)*md.dt;
    67                 disp(sprintf('\n%s%i/%i\n','time step: ',n,md.ndt/md.dt));
     67                disp(sprintf('\n%s%i/%i\n','time step: ',n,floor(md.ndt/md.dt)));
    6868
    6969                %Call core thermal computation
    7070                disp('   computing temperature...');
    7171                gridset=m_t.gridset;
    72                 inputs=struct('pressure',pressure,'temperature',soln(n).t_g,'velocity',velocity,'dt',md.dt);
     72                inputs=struct('pressure',pressure,'temperature',soln(n).t_g,'velocity',velocity,'dt',md.dt*md.yts);
    7373                [soln(n+1).t_g m_t.loads  melting_offset]=thermal_core(m_t,analysis_type,inputs);
    7474
     
    7676                disp('   computing melting...');
    7777                gridset=m_m.gridset;
    78                 inputs=struct('pressure',pressure,'temperature',soln(n+1).t_g,'melting_offset',melting_offset,'dt',md.dt);
     78                inputs=struct('pressure',pressure,'temperature',soln(n+1).t_g,'melting_offset',melting_offset,'dt',md.dt*md.yts);
    7979                soln(n+1).m_g=melting_core(m_m,analysis_type,inputs);
    8080               
  • issm/trunk/src/m/solutions/ice/transient2d.m

    r1680 r1718  
    4646fem.inputs.accumulation=accumulation;
    4747fem.inputs.melting=melting;
    48 fem.inputs.dt=md.dt;
     48fem.inputs.dt=md.dt*md.yts;
    4949
    5050%first time step is given by model.
     
    5656while  time<finaltime+dt, %make sure we run up to finaltime.
    5757
    58         disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time/md.yts,'    iteration number: ',n,'/',floor(finaltime/dt)));
     58        disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time,'    iteration number: ',n,'/',floor(finaltime/dt)));
    5959       
    6060        solution(n+1).time=time;
  • issm/trunk/src/m/solutions/ice/transient3d.m

    r1680 r1718  
    6363fem.inputs.melting=zeros(fem.m_m.gridset.gsize,1); melting=ShiftLayers(md,md.melting,1,1); fem.inputs.melting(1:6:fem.m_m.gridset.gsize)=melting;
    6464fem.inputs.accumulation=zeros(fem.m_m.gridset.gsize,1); accumulation=ShiftLayers(md,md.accumulation,md.numlayers,1); fem.inputs.accumulation(1:6:fem.m_m.gridset.gsize)=accumulation;
    65 fem.inputs.dt=md.dt;
     65fem.inputs.dt=md.dt*md.yts;
    6666
    6767%first time step is given by model.
     
    7373while  time<finaltime+dt, %make sure we run up to finaltime.
    7474
    75         disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time/md.yts,'    iteration number: ',n,'/',floor(finaltime/dt)));
     75        disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time,'    iteration number: ',n,'/',floor(finaltime/dt)));
    7676       
    7777        solution(n+1).time=time;
Note: See TracChangeset for help on using the changeset viewer.