Changeset 16470 for issm/trunk-jpl/src/m/classes/settings.py
- Timestamp:
- 10/20/13 20:31:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/settings.py
r15131 r16470 15 15 self.io_gather = 0 16 16 self.lowmem = 0 17 self.results_as_patches = 018 17 self.output_frequency = 0 19 18 self.waitonlock = 0 … … 28 27 string="%s\n%s"%(string,fielddisplay(self,"io_gather","I/O gathering strategy for result outputs (default 1)")) 29 28 string="%s\n%s"%(string,fielddisplay(self,"lowmem","is the memory limited ? (0 or 1)")) 30 string="%s\n%s"%(string,fielddisplay(self,"results_as_patches","provide results as patches for each element (0 or 1)"))31 29 string="%s\n%s"%(string,fielddisplay(self,"output_frequency","frequency at which results are saved in all solutions with multiple time_steps")) 32 30 string="%s\n%s"%(string,fielddisplay(self,"waitonlock","maximum number of minutes to wait for batch results, or return 0")) … … 44 42 self.output_frequency=1 45 43 46 #do not use patches by default (difficult to plot)47 self.results_as_patches=048 49 44 #this option can be activated to load automatically the results 50 45 #onto the model after a parallel run by waiting for the lock file … … 58 53 md = checkfield(md,'settings.io_gather','numel',[1],'values',[0,1]) 59 54 md = checkfield(md,'settings.lowmem','numel',[1],'values',[0,1]) 60 md = checkfield(md,'settings.results_as_patches','numel',[1],'values',[0,1])61 55 md = checkfield(md,'settings.output_frequency','numel',[1],'>=',1) 62 56 md = checkfield(md,'settings.waitonlock','numel',[1]) … … 67 61 WriteData(fid,'object',self,'fieldname','io_gather','format','Boolean') 68 62 WriteData(fid,'object',self,'fieldname','lowmem','format','Boolean') 69 WriteData(fid,'object',self,'fieldname','results_as_patches','format','Boolean')70 63 WriteData(fid,'object',self,'fieldname','output_frequency','format','Integer') 71 64 if self.waitonlock>0:
Note:
See TracChangeset
for help on using the changeset viewer.