Changeset 9730
- Timestamp:
- 09/09/11 14:07:21 (14 years ago)
- Location:
- issm/trunk
- Files:
-
- 13 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/constants.m
r9621 r9730 45 45 46 46 end % }}} 47 function flag = checkconsistency(obj,md) % {{{ 48 49 end % }}} 47 50 end 48 51 end -
issm/trunk/src/m/classes/mesh.m
r9729 r9730 65 65 obj.average_vertex_connectivity=25; 66 66 end % }}} 67 function checkconsistency(obj,md) % {{{ 68 69 fields={'dimension'}; 70 checkgreaterstrict(md,'mesh',fields,0); 71 72 end % }}} 67 73 function disp(obj) % {{{ 68 74 disp(sprintf(' Mesh:')); -
issm/trunk/src/m/model/ismodelselfconsistent.m
r9726 r9730 5 5 % ismodelselfconsistent(md), 6 6 7 %nothing for now 7 %initialize consistency as true 8 modelconsistency(true); 9 10 %Always check mesh 11 md.mesh.checkconsistency(md); 12 13 %error message if mode is not consistent 14 if modelconsistency==false, 15 error(' '); 16 end -
issm/trunk/src/m/utils/recursivepath.m
r9724 r9730 1 function p = genpath_ice(d)2 % GENPATH_ICE- generate paths in a directory1 function p = recursivepath(d) 2 %RECURSIVEPATH - generate paths in a directory 3 3 % 4 4 % this routine is equivalent to Matlab's genpath except that it skips CVS and .svn directories 5 5 % 6 6 % Usage: 7 % p = genpath_ice(d)7 % p = recursivepath(d) 8 8 9 9 %initialize path to be returned … … 34 34 ~strcmp(dirname,'private') %private directories not allowed in MATLAB path 35 35 36 p = [p genpath_ice(fullfile(d,dirname))];36 p = [p recursivepath(fullfile(d,dirname))]; 37 37 end 38 38 end -
issm/trunk/startup.m
r8969 r9730 24 24 25 25 %ISSM path 26 addpath([ISSM_TIER '/src/m/utils/']); %loads genpath_ice26 addpath([ISSM_TIER '/src/m/utils/']); %loads recursivepath 27 27 addpath([ISSM_TIER '/doc']); 28 28 addpath([ISSM_TIER '/bin']); 29 addpath( genpath_ice([ISSM_TIER '/src/m']));30 addpath( genpath_ice([ISSM_TIER '/externalpackages/scotch']));31 addpath( genpath_ice([ISSM_TIER '/externalpackages/canos']));32 addpath( genpath_ice([ISSM_TIER '/externalpackages/kml']));33 addpath( genpath_ice([ISSM_TIER '/externalpackages/googleearthtoolbox/']));34 addpath( genpath_ice([ISSM_TIER '/externalpackages/export_fig']));29 addpath(recursivepath([ISSM_TIER '/src/m'])); 30 addpath(recursivepath([ISSM_TIER '/externalpackages/scotch'])); 31 addpath(recursivepath([ISSM_TIER '/externalpackages/canos'])); 32 addpath(recursivepath([ISSM_TIER '/externalpackages/kml'])); 33 addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/'])); 34 addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig'])); 35 35 36 36 %Check on any warning messages that might indicate that the paths were not correct. … … 57 57 58 58 %Now, load personal startup preferences, using the local user name: 59 rmpath( genpath_ice([ISSM_TIER '/src/m/usr']));59 rmpath(recursivepath([ISSM_TIER '/src/m/usr'])); 60 60 if exist([ISSM_TIER '/src/m/usr/' USERNAME],'dir'), 61 addpath( genpath_ice([ISSM_TIER '/src/m/usr/' USERNAME]));61 addpath(recursivepath([ISSM_TIER '/src/m/usr/' USERNAME])); 62 62 end 63 63
Note:
See TracChangeset
for help on using the changeset viewer.