Changeset 17199
- Timestamp:
- 01/29/14 15:21:34 (11 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r17194 r17199 5041 5041 5042 5042 /*Relaxation stuff*/ 5043 thickness[i] = preceding_thickness[i]+0.8*(thickness[i]-preceding_thickness[i]); 5043 if(thickness[i]<10.0*init_thick){ 5044 thickness[i] = preceding_thickness[i]+0.8*(thickness[i]-preceding_thickness[i]); 5045 } 5046 else{ 5047 thickness[i] = 10.0*init_thick; 5048 } 5044 5049 } 5045 5050 } -
issm/trunk-jpl/src/m/classes/hydrologydc.m
r17022 r17199 11 11 penalty_lock = 0; 12 12 rel_tol = 0; 13 max_iter = 0; 13 14 sedimentlimit_flag = 0; 14 15 sedimentlimit = 0; … … 44 45 function obj = setdefaultparameters(obj) 45 46 46 %Parameters from de Fleurian 201 347 %Parameters from de Fleurian 2014 47 48 obj.water_compressibility = 5.04e-10; 48 49 obj.isefficientlayer = 1; 49 50 obj.penalty_factor = 3; 50 51 obj.rel_tol = 1.0e-06; 52 obj.max_iter = 100; 51 53 obj.sedimentlimit_flag = 0; 52 54 obj.sedimentlimit = 0; … … 77 79 md = checkfield(md,'fieldname','hydrology.penalty_factor','>',0,'numel',1); 78 80 md = checkfield(md,'fieldname','hydrology.rel_tol','>',0,'numel',1); 81 md = checkfield(md,'fieldname','hydrology.max_iter','>',0,'numel',1); 79 82 md = checkfield(md,'fieldname','hydrology.sedimentlimit_flag','numel',[1],'values',[0 1 2 3]); 80 83 md = checkfield(md,'fieldname','hydrology.transfer_flag','numel',[1],'values',[0 1]); … … 111 114 fielddisplay(obj,'penalty_lock','stabilize unstable constraints that keep zigzagging after n iteration (default is 0, no stabilization)'); 112 115 fielddisplay(obj,'rel_tol','tolerance of the nonlinear iteration for the transfer between layers [dimensionless]'); 116 fielddisplay(obj,'max_iter','maximum number of nonlinear iteration'); 113 117 fielddisplay(obj,'sedimentlimit_flag','what kind of upper limit is applied for the inefficient layer'); 114 118 disp(sprintf('%55s 0: no limit',' ')); … … 152 156 WriteData(fid,'object',obj,'fieldname','penalty_lock','format','Integer'); 153 157 WriteData(fid,'object',obj,'fieldname','rel_tol','format','Double'); 158 WriteData(fid,'object',obj,'fieldname','max_iter','format','Integer'); 154 159 WriteData(fid,'object',obj,'fieldname','sedimentlimit_flag','format','Integer'); 155 160 WriteData(fid,'object',obj,'fieldname','transfer_flag','format','Integer');
Note:
See TracChangeset
for help on using the changeset viewer.