Changeset 14103
- Timestamp:
- 12/07/12 09:57:48 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/timestepping.m
r13040 r14103 6 6 classdef timestepping 7 7 properties (SetAccess=public) 8 start_time = 0 ;9 final_time = 0 ;10 time_step = 0 ;8 start_time = 0.; 9 final_time = 0.; 10 time_step = 0.; 11 11 time_adapt = 0; 12 cfl_coefficient = 0 ;12 cfl_coefficient = 0.; 13 13 end 14 14 methods … … 24 24 25 25 %time between 2 time steps 26 obj.time_step=1 /2;26 obj.time_step=1./2.; 27 27 28 28 %final time 29 obj.final_time=10 *obj.time_step;29 obj.final_time=10.*obj.time_step; 30 30 31 31 %time adaptation? 32 32 obj.time_adapt=0; 33 obj.cfl_coefficient= .5;33 obj.cfl_coefficient=0.5; 34 34 end % }}} 35 35 function md = checkconsistency(obj,md,solution,analyses) % {{{ -
issm/trunk-jpl/src/m/classes/timestepping.py
r13040 r14103 16 16 def __init__(self): 17 17 # {{{ Properties 18 self.start_time = 0 19 self.final_time = 0 20 self.time_step = 0 18 self.start_time = 0. 19 self.final_time = 0. 20 self.time_step = 0. 21 21 self.time_adapt = 0 22 self.cfl_coefficient = 0 22 self.cfl_coefficient = 0. 23 23 24 24 #set defaults … … 41 41 42 42 #time between 2 time steps 43 self.time_step=1 /243 self.time_step=1./2. 44 44 45 45 #final time 46 self.final_time=10 *self.time_step46 self.final_time=10.*self.time_step 47 47 48 48 #time adaptation? 49 49 self.time_adapt=0 50 self.cfl_coefficient= .550 self.cfl_coefficient=0.5 51 51 52 52 return self
Note:
See TracChangeset
for help on using the changeset viewer.