Changeset 611
- Timestamp:
- 05/27/09 13:54:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/startup.m
r5 r611 17 17 error('issmdir error message: problem when running ''echo $ISSM_DIR'' shell command'); 18 18 end 19 clear status; 20 if (isempty(ISSM_DIR)) | (length(ISSM_DIR)==1), 19 if (length(ISSM_DIR)<=1), 21 20 error('issmdir error message: ''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!'); 22 21 end 23 22 %get rid of return carriage 24 ISSM_DIR=ISSM_DIR(1:end-1); 23 ISSM_DIR=ISSM_DIR(1:end-1); clear status; 25 24 26 %Now add all i ce code paths necessary to run icesmoothly.25 %Now add all issm code paths necessary to run issm smoothly. 27 26 %We capture the error output, so that we can warn the user to update 28 27 %the variable ISSM_DIR in this file, in case it is not correctly setup. … … 32 31 addpath([ISSM_DIR '/etc']); 33 32 addpath([ISSM_DIR '/doc']); 33 addpath([ISSM_DIR '/bin']); 34 34 addpath(genpath_ice([ISSM_DIR '/src/m'])); 35 36 %Suite sparse and m2html37 addpath(genpath_ice([ISSM_DIR '/packages/suitesparse/install/CHOLMOD/MATLAB/']));38 addpath(genpath_ice([ISSM_DIR '/packages/m2html/install']));39 40 %last one, to pick up binaries first!41 addpath([ISSM_DIR '/bin']);42 35 43 36 %Check on any warning messages that might indicate that the paths were not correct. 44 37 if ~isempty(lastwarn), 45 disp(' '); 46 disp(' Error trying to setup ''ISSM'' code paths. Try and update the ISSM_DIR variable in the startup.m file'); 47 disp(' ''ISSM'' will not work at all until this is resolved'); 38 fprintf('\n Error trying to setup ''ISSM'' code paths. Try and update the ISSM_DIR variable in your .cshrc or .bashrc!\n'); 39 fprintf(' ''ISSM'' will not work at all until this is resolved\n\n'); 48 40 else 49 disp(' '); 50 disp(' To get started with ISSM, type issmdoc at the command prompt.'); 51 disp(' '); 41 fprintf('\n To get started with ISSM, type issmdoc at the command prompt.\n\n'); 52 42 end
Note:
See TracChangeset
for help on using the changeset viewer.