| 1 | == Getting an account == |
| 2 | |
| 3 | First, 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 | |
| 7 | You can add the following lines to `~/.ssh/config` on your local machine: |
| 8 | {{{ |
| 9 | #!sh |
| 10 | Host fram fram.sigma2.no |
| 11 | HostName fram.sigma2.no |
| 12 | User YOURFRAMUSERNAME |
| 13 | }}} |
| 14 | and replace `YOURFRAMUSERNAME` by your stallo username. |
| 15 | |
| 16 | Once this is done, you can ssh fram by simply doing: |
| 17 | |
| 18 | {{{ |
| 19 | #!sh |
| 20 | ssh fram |
| 21 | }}} |
| 22 | |
| 23 | == Password-less ssh == |
| 24 | |
| 25 | Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run. |
| 26 | You 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 |
| 30 | Generating public/private rsa key pair. |
| 31 | Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN |
| 32 | Enter passphrase (empty for no passphrase):RETURN |
| 33 | Enter same passphrase again:RETURN |
| 34 | Your identification has been saved in /Users/username/.ssh/id_rsa. |
| 35 | Your public key has been saved in /Users/username/.ssh/id_rsa.pub. |
| 36 | }}} |
| 37 | |
| 38 | Two 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 | |
| 45 | Now 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 | |
| 55 | On fram, add the following lines to `~/.bashrc`: |
| 56 | {{{ |
| 57 | #ISSM |
| 58 | export 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 | |
| 65 | The only package from external packages that you may require (if you need to run some inversion) is m1qn3. Install it from external packages |
| 66 | {{{ |
| 67 | cd externalpackages/m1qn3 |
| 68 | ./install.sh |
| 69 | }}} |
| 70 | |
| 71 | Once this is done in ISSM_DIR do: |
| 72 | {{{ |
| 73 | run ./scripts/automakererun.sh |
| 74 | }}} |
| 75 | |
| 76 | Use the following configuration script: |
| 77 | |
| 78 | {{{ |
| 79 | #!/bin/sh |
| 80 | #fram configuration script |
| 81 | |
| 82 | module restore system |
| 83 | module load libtool/2.4.6-GCCcore-6.3.0 |
| 84 | module load Automake/1.15.1-GCCcore-6.3.0/ |
| 85 | module load CMake/3.9.1 |
| 86 | module load PETSc/3.8.0-intel-2017a-Python-2.7.13 |
| 87 | module 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\ |
| 96 | pich -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 | |
| 103 | You can then make your configuration file executable (if it is not already) execute it and install ISSM: |
| 104 | {{{ |
| 105 | chmod +x configure.sh |
| 106 | ./configure |
| 107 | make install |
| 108 | }}} |
| 109 | |
| 110 | == fram_settings.py == |
| 111 | |
| 112 | {{{ |
| 113 | def 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 | |
| 125 | The use of the Python version of the code is encouraged at Uib but you are welcome to clone the python settings. |