Changeset 12168 for issm/branches/trunk-jpl-damage/startup.m
- Timestamp:
- 05/01/12 17:28:47 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:ignore
-
old new 7 7 config.status 8 8 configure 9 doxygen10 9 ISSM.paf 11 10 ISSM.ppf 12 11 ISSM.ppf_cache 13 12 libtool 14 list15 13 Makefile 16 14 Makefile.in 17 15 stamp-h1 18 16 svn-commit* 19 nightlylog
-
- Property svn:mergeinfo changed
/issm/trunk merged: 11526,11533,11681-11682,11710,11778-11779,11995 /issm/trunk-jpl merged: 11992-11994,11996-12003,12005-12113,12115-12161,12163-12166
- Property svn:ignore
-
issm/branches/trunk-jpl-damage/startup.m
r12004 r12168 11 11 lastwarn(''); 12 12 13 %Recover ISSM_ TIER , or if on a Windows machine, ISSM_TIER_WIN13 %Recover ISSM_DIR , or if on a Windows machine, ISSM_DIR_WIN 14 14 if ~ispc, 15 ISSM_ TIER=getenv('ISSM_TIER');15 ISSM_DIR=getenv('ISSM_DIR'); 16 16 else 17 ISSM_ TIER=getenv('ISSM_TIER_WIN');18 %ISSM_ TIER='';17 ISSM_DIR=getenv('ISSM_DIR_WIN'); 18 %ISSM_DIR=''; 19 19 end 20 if (isempty(ISSM_ TIER)),21 error('''ISSM_ TIER'' environment variable is empty! You should define ISSM_TIER in your .cshrc or .bashrc!');20 if (isempty(ISSM_DIR)), 21 error('''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!'); 22 22 end 23 23 24 24 %Now add all issm code paths necessary to run issm smoothly. 25 25 %We capture the error output, so that we can warn the user to update 26 %the variable ISSM_ TIER in this file, in case it is not correctly setup.26 %the variable ISSM_DIR in this file, in case it is not correctly setup. 27 27 28 28 %ISSM path 29 addpath([ISSM_ TIER '/src/m/utils/']); %loads recursivepath30 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/export_fig']));36 addpath(recursivepath([ISSM_ TIER '/externalpackages/googleearthtoolbox']));37 addpath(recursivepath([ISSM_ TIER '/externalpackages/cm_and_cb_utilities']));29 addpath([ISSM_DIR '/src/m/utils/']); %loads recursivepath 30 addpath([ISSM_DIR '/bin']); 31 addpath(recursivepath([ISSM_DIR '/src/m'])); 32 addpath(recursivepath([ISSM_DIR '/externalpackages/scotch'])); 33 addpath(recursivepath([ISSM_DIR '/externalpackages/canos'])); 34 addpath(recursivepath([ISSM_DIR '/externalpackages/kml'])); 35 addpath(recursivepath([ISSM_DIR '/externalpackages/export_fig'])); 36 addpath(recursivepath([ISSM_DIR '/externalpackages/googleearthtoolbox'])); 37 addpath(recursivepath([ISSM_DIR '/externalpackages/cm_and_cb_utilities'])); 38 38 39 clear ISSM_ TIER;39 clear ISSM_DIR; 40 40 41 41 %Check on any warning messages that might indicate that the paths were not correct. 42 42 if ~isempty(lastwarn), 43 fprintf('\n Error trying to setup ''ISSM'' code paths. Try and update the ISSM_ TIER variable in your .cshrc or .bashrc!\n');43 fprintf('\n Error trying to setup ''ISSM'' code paths. Try and update the ISSM_DIR variable in your .cshrc or .bashrc!\n'); 44 44 fprintf(' ''ISSM'' will not work at all until this is resolved\n\n'); 45 45 else
Note:
See TracChangeset
for help on using the changeset viewer.