Changes between Initial Version and Version 1 of fram


Ignore:
Timestamp:
10/31/17 08:42:41 (7 years ago)
Author:
bdef
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • fram

    v1 v1  
     1== Getting an account ==
     2
     3First, you need to get an account from NOTUR, the webpage for you request is : https://www.metacenter.no/user/application/form/notur/.
     4
     5== ssh configuration ==
     6
     7You can add the following lines to `~/.ssh/config` on your local machine:
     8{{{
     9#!sh
     10Host fram fram.sigma2.no
     11    HostName fram.sigma2.no
     12    User YOURFRAMUSERNAME
     13}}}
     14and replace `YOURFRAMUSERNAME` by your stallo username.
     15
     16Once this is done, you can ssh fram by simply doing:
     17
     18{{{
     19#!sh
     20ssh fram
     21}}}
     22
     23== Password-less ssh ==
     24
     25Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run.
     26You need to have a SSH public/private key pair. If you do not, you can create a SSH public/private key pair by typing the following command and following the prompts (no passphrase necessary):
     27{{{
     28#!sh
     29$your_localhost% ssh-keygen -t rsa
     30Generating public/private rsa key pair.
     31Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
     32Enter passphrase (empty for no passphrase):RETURN
     33Enter same passphrase again:RETURN
     34Your identification has been saved in /Users/username/.ssh/id_rsa.
     35Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
     36}}}
     37
     38Two files were created: your private key `/Users/username/.ssh/id_rsa`, and the public key `/Users/username/.ssh/id_rsa.pub`. The private key is read-only and only for you, it is used to decrypt all correspondence encrypted with the public key. The contents of the public key need to be copied to `~/.ssh/authorized_keys` on your stallo account:
     39
     40{{{
     41#!sh
     42$your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~
     43}}}
     44
     45Now on '''fram''', copy the content of id_rsa.pub:
     46
     47{{{
     48#!sh
     49$your_remosthost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
     50$your_remosthost%rm ~/id_rsa.pub
     51}}}
     52
     53== Environment ==
     54
     55On fram, add the following lines to `~/.bashrc`:
     56{{{
     57#ISSM                                                                                                     
     58export ISSM_DIR=/cluster/work/users/USERNAME/ISSMDIRNAME
     59}}}
     60
     61''Log out and log back in'' or source you .bashrc to apply this change.
     62
     63== Installing ISSM on fram ==
     64
     65The only package from external packages that you may require (if you need to run some inversion) is m1qn3. Install it from external packages
     66{{{
     67cd externalpackages/m1qn3
     68./install.sh
     69}}}
     70
     71Once this is done in ISSM_DIR do:
     72{{{
     73run ./scripts/automakererun.sh
     74}}}
     75
     76Use the following configuration script:
     77
     78{{{
     79#!/bin/sh
     80#fram configuration script
     81                                                                                                         
     82module restore system
     83module load libtool/2.4.6-GCCcore-6.3.0
     84module load Automake/1.15.1-GCCcore-6.3.0/
     85module load CMake/3.9.1
     86module load PETSc/3.8.0-intel-2017a-Python-2.7.13
     87module load ParMETIS/4.0.3-intel-2017a
     88
     89./configure \
     90    --prefix=$ISSM_DIR \
     91    --without-kriging \
     92    --with-wrappers=no \
     93    --with-petsc-dir="/cluster/software/PETSc/3.8.0-intel-2017a-Python-2.7.13/" \
     94    --with-mpi-include="/cluster/software/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/include64" \
     95    --with-mpi-libflags="-L/cluster/software/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/lib64 -lm\
     96pich -lmpichf90 -lmpichcxx -lmpl" \
     97    --with-metis-dir="/cluster/software/ParMETIS/4.0.3-intel-2017a/include/" \
     98    --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \
     99    --enable-development
     100
     101}}}
     102
     103You can then make your configuration file executable (if it is not already) execute it and install ISSM:
     104{{{
     105chmod +x configure.sh
     106./configure
     107make install
     108}}}
     109
     110== fram_settings.py ==
     111
     112{{{
     113def fram_settings(md):                                                                                                                     
     114    md.login='YOURNOTURLOGIN'
     115    md.queue='normal'
     116    md.codepath='YOURCODEPATH'#should be in /cluster/work/users/USERNAME/ISSMNAME
     117    md.executionpath='YOUREXECPATH'#should be in /cluster/work/users/USERNAME/execution
     118    md.accountname='nn4659k'#this is for ice2ice
     119    md.numnodes=1
     120    md.numprocess=16
     121    return md
     122}}}
     123== fram_settings.m ==
     124
     125The use of the Python version of the code is encouraged at Uib but you are welcome to clone the python settings.