Changeset 611


Ignore:
Timestamp:
05/27/09 13:54:58 (16 years ago)
Author:
Mathieu Morlighem
Message:

no more sparse2 adn m2html in the startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/startup.m

    r5 r611  
    1717        error('issmdir error message: problem when running ''echo $ISSM_DIR'' shell command');
    1818end
    19 clear status;
    20 if (isempty(ISSM_DIR)) | (length(ISSM_DIR)==1),
     19if (length(ISSM_DIR)<=1),
    2120        error('issmdir error message: ''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!');
    2221end
    2322%get rid of return carriage
    24 ISSM_DIR=ISSM_DIR(1:end-1);
     23ISSM_DIR=ISSM_DIR(1:end-1); clear status;
    2524
    26 %Now add all ice code paths necessary to run ice smoothly.
     25%Now add all issm code paths necessary to run issm smoothly.
    2726%We capture the error output, so that we can warn the user to update
    2827%the variable ISSM_DIR in this file, in case it is not correctly setup.
     
    3231addpath([ISSM_DIR '/etc']);
    3332addpath([ISSM_DIR '/doc']);
     33addpath([ISSM_DIR '/bin']);
    3434addpath(genpath_ice([ISSM_DIR '/src/m']));
    35 
    36 %Suite sparse and m2html
    37 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']);
    4235
    4336%Check on any warning messages that might indicate that the paths were not correct.
    4437if ~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');
    4840else
    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');
    5242end
Note: See TracChangeset for help on using the changeset viewer.