Changeset 19191 for issm/trunk-jpl/src/m/classes/settings.m
- Timestamp:
- 03/09/15 12:45:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/settings.m
r19040 r19191 10 10 lowmem = 0; 11 11 output_frequency = 0; 12 restart_frequency = 0; 12 13 waitonlock = 0; 13 14 upload_server = ''; … … 58 59 self.output_frequency=1; 59 60 61 %checkpoints frequency, by default never: 62 self.restart_frequency=0; 63 60 64 %this option can be activated to load automatically the results 61 65 %onto the model after a parallel run by waiting for the lock file … … 74 78 md = checkfield(md,'fieldname','settings.lowmem','numel',[1],'values',[0 1]); 75 79 md = checkfield(md,'fieldname','settings.output_frequency','numel',[1],'>=',1); 80 md = checkfield(md,'fieldname','settings.restart_frequency','numel',[1],'>=',0); 76 81 md = checkfield(md,'fieldname','settings.waitonlock','numel',[1]); 77 82 … … 84 89 fielddisplay(self,'lowmem','is the memory limited ? (0 or 1)'); 85 90 fielddisplay(self,'output_frequency','frequency at which results are saved in all solutions with multiple time_steps'); 91 fielddisplay(self,'restart_frequency','frequency at which the runs are being checkpointed, allowing for a restart'); 86 92 fielddisplay(self,'waitonlock','maximum number of minutes to wait for batch results (NaN to deactivate)'); 87 93 fielddisplay(self,'upload_server','server hostname where model should be uploaded'); … … 97 103 WriteData(fid,'object',self,'fieldname','lowmem','format','Boolean'); 98 104 WriteData(fid,'object',self,'fieldname','output_frequency','format','Integer'); 105 WriteData(fid,'object',self,'fieldname','restart_frequency','format','Integer'); 99 106 if self.waitonlock>0, 100 107 WriteData(fid,'enum',SettingsWaitonlockEnum(),'data',true,'format','Boolean');
Note:
See TracChangeset
for help on using the changeset viewer.