Changeset 11492
- Timestamp:
- 02/21/12 16:23:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/startup.m
r11454 r11492 26 26 27 27 %ISSM path 28 addpath([ISSM_TIER '/src/m/utils/']); %loads recursivepath 29 addpath([ISSM_TIER '/doc']); 30 addpath([ISSM_TIER '/bin']); 31 addpath(recursivepath([ISSM_TIER '/src/m'])); 32 addpath(recursivepath([ISSM_TIER '/externalpackages/scotch'])); 33 addpath(recursivepath([ISSM_TIER '/externalpackages/canos'])); 34 addpath(recursivepath([ISSM_TIER '/externalpackages/kml'])); 35 addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/'])); 36 addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig'])); 28 addpath(pwd); %add current path first 29 30 if exist([ISSM_TIER '/src/m/utils/'],'dir'), 31 addpath([ISSM_TIER '/src/m/utils/']); %loads recursivepath 32 end 33 if exist([ISSM_TIER '/doc'],'dir'), 34 addpath([ISSM_TIER '/doc']); 35 end 36 if exist([ISSM_TIER '/bin'],'dir'), 37 addpath([ISSM_TIER '/bin']); 38 end 39 if exist([ISSM_TIER '/src/m'],'dir'), 40 addpath(recursivepath([ISSM_TIER '/src/m'])); 41 end 42 if exist([ISSM_TIER '/externalpackages/scotch'],'dir'), 43 addpath(recursivepath([ISSM_TIER '/externalpackages/scotch'])); 44 end 45 if exist([ISSM_TIER '/externalpackages/canos'],'dir'), 46 addpath(recursivepath([ISSM_TIER '/externalpackages/canos'])); 47 end 48 if exist([ISSM_TIER '/externalpackages/kml'],'dir'), 49 addpath(recursivepath([ISSM_TIER '/externalpackages/kml'])); 50 end 51 if exist([ISSM_TIER '/externalpackages/googleearthtoolbox/'],'dir'), 52 addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/'])); 53 end 54 if exist([ISSM_TIER '/externalpackages/export_fig'],'dir'), 55 addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig'])); 56 end 37 57 clear ISSM_TIER; 38 58 … … 47 67 % deal with Matlab bug (on Linux, not WinXP) -- unless 48 68 % the class has been called, "empty" method can not be found 49 normal_uncertain; 50 continuous_design; 51 continuous_state; 52 linear_inequality_constraint; 53 linear_equality_constraint; 54 response_function; 55 objective_function; 56 least_squares_term; 57 nonlinear_inequality_constraint; 58 nonlinear_equality_constraint; 59 clear ans; 69 if ~ispc, 70 normal_uncertain; 71 continuous_design; 72 continuous_state; 73 linear_inequality_constraint; 74 linear_equality_constraint; 75 response_function; 76 objective_function; 77 least_squares_term; 78 nonlinear_inequality_constraint; 79 nonlinear_equality_constraint; 80 clear ans; 81 end 60 82 61 83 %disable matlab bell! … … 64 86 % no warning if we try to plot while in nojvm (will not be supported in future releases) 65 87 warning off MATLAB:HandleGraphics:noJVM 88 89 %at the end, get to tests directory if ISSM_TESTS exists: 90 if ispc, 91 addpath([pwd '\bin']); 92 ISSM_TESTS=getenv('ISSM_TESTS'); 93 if ~isempty(ISSM_TESTS), 94 cd(ISSM_TESTS); 95 end 96 end
Note:
See TracChangeset
for help on using the changeset viewer.