- Timestamp:
- 06/07/17 10:50:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/classes/settings.js
r20777 r21759 27 27 //upload options: 28 28 upload_port = 0; 29 30 //throw an error if solver residue exceeds this value 31 self.solver_residue_threshold=1e-6; 29 32 30 33 }// }}} … … 43 46 fielddisplay(this,'upload_port','port login (default is 0)'); 44 47 fielddisplay(this,'upload_filename','unique id generated when uploading the file to server'); 48 fielddisplay(this,'solver_residue_threshold','throw an error if solver residue exceeds this value'); 45 49 46 50 … … 58 62 checkfield(md,'fieldname','settings.recording_frequency','numel',[1],'>=',0); 59 63 checkfield(md,'fieldname','settings.waitonlock','numel',[1]); 64 checkfield(md,'fieldname','settings.solver_residue_threshold','numel',[1],'>',0); 60 65 } // }}} 61 66 this.marshall=function(md,prefix,fid) { //{{{ … … 65 70 WriteData(fid,prefix,'object',this,'fieldname','output_frequency','format','Integer'); 66 71 WriteData(fid,prefix,'object',this,'fieldname','recording_frequency','format','Integer'); 72 WriteData(fid,prefix,'object',this,'fieldname','solver_residue_threshold','format','Double'); 67 73 if (this.waitonlock>0) WriteData(fid,prefix,'name','md.settings.waitonlock','data',true,'format','Boolean'); 68 74 else WriteData(fid,prefix,'name','md.settings.waitonlock','data',false,'format','Boolean'); … … 83 89 this.upload_port = 0; 84 90 this.upload_filename = ''; 91 this.solver_residue_threshold = 0; 85 92 this.setdefaultparameters(); 86 93 //}}}
Note:
See TracChangeset
for help on using the changeset viewer.