source: trunk/src/ircaam_startup.m @ 12

Last change on this file since 12 was 12, checked in by pinsard, 15 years ago

add matlab startup

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1%+
2%
3% module
4% ======
5%
6% initialisation of matlab/octave environment for IRCAAM project
7%
8% DESCRIPTION
9% ===========
10%
11% Define :
12%  - path for matlab/octave commands used in IRCAAM project
13%  - IO directories
14%
15% This file can be either run classicaly when currect directory
16% is ${IRCAAM} :
17% ..
18%
19%  >> ircaam_startup
20%
21%
22% If linked or copy to ${HOME}/startup.m, it will be automaticaly
23% run by matlab at start.
24%
25% SEE ALSO
26% ========
27%
28% ircaam_profile.sh_
29%
30% .. _ircaam_profile.sh : ircaam_profile.sh.html
31%
32% EVOLUTIONS
33% ==========
34%
35% $Id$
36%
37% - fplod 2008-12-22T09:38:20Z zeus.locean-ipsl.upmc.fr (Linux)
38%
39%   * creation
40%
41% TODO
42% ====
43%
44%-
45%
46clear all
47%
48disp(['iii : adding path to IRCAAM matlab tools'])
49%
50% test if IRCAAM environment set
51ircaam=getenv('IRCAAM');
52if [ isempty(ircaam) ]
53 error('eee : IRCAAM environment not set');
54else
55 disp(['iii : IRCAAM =' ircaam])
56end
57%
58% add path
59addpath([ircaam '/mode_sahelien/']);
60addpath([ircaam '/SIMULS_IRCAAM/']);
61%
62% IO directories
63% test if IRCAAM_ID environment set
64ircaam_id=getenv('IRCAAM_ID');
65if [ isempty(ircaam_id) ]
66 error('eee : IRCAAM_ID environment not set');
67end
68%
69% test if IRCAAM_OD environment set
70ircaam_od=getenv('IRCAAM_OD');
71if [ isempty(ircaam_od) ]
72 error('eee : IRCAAM_OD environment not set');
73end
74%
75more on
Note: See TracBrowser for help on using the repository browser.