Changeset 6932


Ignore:
Timestamp:
01/05/11 08:27:01 (14 years ago)
Author:
seroussi
Message:

last time is ndt even if time_adapt

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/transient2d_core.m

    r6380 r6932  
    2424                if(time_adapt),
    2525                        dt=TimeAdapt(femmodel.elements,femmodel.nodes,femmodel.vertices,femmodel.loads,femmodel.materials,femmodel.parameters);
     26                        if(time+dt>ndt) dt=ndt-time;
    2627                        [femmodel.elements]=InputUpdateFromConstant(femmodel.elements,femmodel.nodes,femmodel.vertices,loads,femmodel.materials,femmodel.parameters,dt,DtEnum);
    2728                end
  • issm/trunk/src/m/solutions/transient3d_core.m

    r6380 r6932  
    2424                if(time_adapt),
    2525                        dt=TimeAdapt(femmodel.elements,femmodel.nodes,femmodel.vertices,femmodel.loads,femmodel.materials,femmodel.parameters);
     26                        if(time+dt>ndt) dt=ndt-time;
    2627                        [femmodel.elements]=InputUpdateFromConstant(femmodel.elements,femmodel.nodes,femmodel.vertices,loads,femmodel.materials,femmodel.parameters,dt,DtEnum);
    2728                end
Note: See TracChangeset for help on using the changeset viewer.