Getting started

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Version depuis le 28 de novembre 2011 à 12:43 par Michel (Discuter | changes)
Aller à: navigation, charcher

en construction(cette page s'adresse principalement aux développeurs)

under construction(this page is mainly for developers)

Start running CRCM5 in new environment

The "new environment" is build on SSM, Simple Software Management.

This means one now subscribes to domaines and packages using s.ssmuse.dot to aquire access to certain directories, scripts, binaries, etc. In general the s.ssmuse.dot will add directories to your $PATH, $LD_LIBRARY_PATH, etc and set some environment variables.

For interactive sessions I find the following packages very useful: diagtools, difftools, runtools, vistools, fulldev

But first you will have to do the little "setup" below, then you can subscribe to one or more of these packages by typing for example:

    . s.ssmuse.dot diagtools difftools runtools vistools fulldev

I added this line to my .interactive_profile (see below).


Setup to use new environment

To use the new environment you will first (and only once) have to do a little "setup":

  1. Create two links in your HOME:
        cd
        ln -fs ~winger/ssm-domains/setup/v_000 ECssm
        ln -fs ECssm/dot-profile-setup_1.0_multi/bin/.profile

    Change the name of two files (or remove them):
        mv .bash_profile .bash_profile-
        mv .bashrc .bashrc-

    Log out and back in.

  2. There is no .profile_usr anymore. It got replaced by several .something_profile files which all have to reside in your HOME in a directory called '.profile.d'.
    Have a look at my .profile.d:
        ls -al ~winger/.profile.d

    I suggest you link to the same group profiles I link to:
        cd ~/.profile.d
        ln -s ~winger/.published_profile.d/.group_profile
        ln -s ~winger/.published_profile.d/.group0_profile

    This will give you some basic aliases I find quite useful. Have a look at them if you like.

    Your own personal aliases, exports, s.ssmuse.dot etc. for interactive use will go into the file
        .interactive_profile
    which you will have to create.

    I am not sure yet if you will need a '.batch_profile' with the command 'umask 022'. Michel's default mask is fine, mine is not. That's why I put the 'umask 022'.

    Then you either log out and back in again or source the new .profiles.

  3. Start running as if you were on marvin or colosse using the old environment.
    On guillimin you can spy on me of course:
    You will need links similar to these ones:
        ls -l ~winger/MODEL_EXEC_RUN
        ls -l ~winger/listings
    Executable directory example (Note: The names of the absolutes are slightly different now)
        /home/winger/gem/v_3.3.3/Abs/Original
    Config files example:
        /home/winger/gem/v_3.3.3/Config/CORDEX/Africa_0.44deg_new_env