Ignore:
Timestamp:
01/07/09 16:49:58 (16 years ago)
Author:
pinsard
Message:

correction of usage of print function, fix side effect of load function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ircaam_startup.m

    r16 r24  
    2222% 
    2323% 
    24 % If linked or copy to ${HOME}/startup.m, it will be automaticaly 
     24% If linked or copy to ./startup.m, it will be automaticaly 
    2525% run by matlab at start. 
    2626% 
     
    3939% 
    4040% $Id$ 
     41% 
     42% - fplod 2009-01-07T11:12:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
     43% 
     44%   * add indice_flore directory to path 
     45%   * more elegant way to know if eithe octave or matlab is running 
     46%     thanks to http://enacit1.epfl.ch/cours_matlab/mfiles.html#scripts 
    4147% 
    4248% - fplod 2008-12-22T13:24:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    6975addpath([ircaam '/mode_sahelien/']); 
    7076addpath([ircaam '/SIMULS_IRCAAM/']); 
     77addpath([ircaam '/indice_flore/']); 
    7178% 
    7279% IO directories 
     
    8491% 
    8592% detect if either octave or matlab running 
    86 cversion=version(); 
    87 if cversion(1:1) < '7' 
     93if ~ exist('OCTAVE_VERSION') 
     94 run_octave=0; 
     95else 
    8896 run_octave=1; 
    89 else 
    90  run_octave=0; 
    9197end 
    9298% 
Note: See TracChangeset for help on using the changeset viewer.