Changeset 23776
- Timestamp:
- 03/08/19 09:17:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/organizer.m
r21291 r23776 14 14 15 15 classdef organizer < handle 16 16 properties (SetAccess=private) 17 17 % {{{ 18 18 currentstep =0; … … 23 23 color =''; 24 24 steps =[]; 25 skipio = false; 25 26 requestedsteps=[0]; 26 27 %}}} … … 50 51 org.requestedsteps=getfieldvalue(options,'steps',0); 51 52 53 %Skip io? 54 org.skipio=getfieldvalue(options,'skipio',0); 52 55 end 53 56 %}}} … … 56 59 disp(sprintf(' Prefix: ''%s''\n',org.prefix)); 57 60 disp(sprintf(' Color: ''%s''\n',org.color)); 61 disp(sprintf(' skipio: %i\n',org.skipio)); 58 62 if isempty(org.steps) 59 63 disp(' no step'); … … 70 74 if ~ischar(string), error('argument provided is not a string'); end 71 75 path=[org.repository '/' org.prefix string]; 76 77 %Skip if requested 78 if org.skipio, 79 disp(['WARNING: Skipping loading ' path]); 80 md = evalin('base', 'md'); 81 return; 82 end 72 83 73 84 %figure out if the model is there … … 92 103 if ~ischar(string), error('argument provided is not a string'); end 93 104 path=[org.repository '/' org.prefix string]; 105 106 %Skip if requested 107 if org.skipio, 108 disp(['WARNING: Skipping loading ' path]); 109 md = evalin('base', 'md'); 110 return; 111 end 94 112 95 113 %figure out if the model is there, otherwise, we have to use the default path supplied by user. … … 175 193 disp(['saving model as: ' name]); 176 194 195 %Skip if requested 196 if org.skipio, 197 disp(['WARNING: Skipping saving ' name]); 198 return; 199 end 200 177 201 %check that md is a model 178 202 if ~isa(md,'model') & ~isa(md,'sealevelmodel'), warning('second argument is not a model'); end … … 190 214 name=[org.repository '/' org.prefix org.steps(org.currentstep).string ]; 191 215 disp(['saving data in: ' name]); 216 217 %Skip if requested 218 if org.skipio, 219 disp(['WARNING: Skipping saving ' name]); 220 return; 221 end 192 222 193 223 %check that md is a model
Note:
See TracChangeset
for help on using the changeset viewer.