Ignore:
Timestamp:
06/07/17 10:50:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: merged branch back to trunk-jpl 21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/classes/settings.js

    r20777 r21759  
    2727                //upload options:
    2828                upload_port         = 0;
     29               
     30                //throw an error if solver residue exceeds this value
     31                self.solver_residue_threshold=1e-6;
    2932
    3033        }// }}}
     
    4346                fielddisplay(this,'upload_port','port login (default is 0)');
    4447                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');
    4549
    4650
     
    5862                        checkfield(md,'fieldname','settings.recording_frequency','numel',[1],'>=',0);
    5963                        checkfield(md,'fieldname','settings.waitonlock','numel',[1]);
     64                        checkfield(md,'fieldname','settings.solver_residue_threshold','numel',[1],'>',0);
    6065                } // }}}
    6166                this.marshall=function(md,prefix,fid) { //{{{
     
    6570                        WriteData(fid,prefix,'object',this,'fieldname','output_frequency','format','Integer');
    6671                        WriteData(fid,prefix,'object',this,'fieldname','recording_frequency','format','Integer');
     72                        WriteData(fid,prefix,'object',this,'fieldname','solver_residue_threshold','format','Double');
    6773                        if (this.waitonlock>0) WriteData(fid,prefix,'name','md.settings.waitonlock','data',true,'format','Boolean');
    6874                        else WriteData(fid,prefix,'name','md.settings.waitonlock','data',false,'format','Boolean');
     
    8389        this.upload_port         = 0;
    8490        this.upload_filename     = '';
     91        this.solver_residue_threshold = 0;
    8592        this.setdefaultparameters();
    8693        //}}}
Note: See TracChangeset for help on using the changeset viewer.