| 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 vilje vilje.hpc.ntnu.no |
| 11 | HostName vilje.hpc.ntnu.no |
| 12 | User YOURVILJEUSERNAME |
| 13 | }}} |
| 14 | and replace `YOURVILJEUSERNAME` by your vilje username. |
| 15 | |
| 16 | Once this is done, you can ssh vilje by simply doing: |
| 17 | |
| 18 | {{{ |
| 19 | #!sh |
| 20 | ssh vilje |
| 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 vilje account: |
| 39 | |
| 40 | {{{ |
| 41 | #!sh |
| 42 | $your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~ |
| 43 | }}} |
| 44 | |
| 45 | Now on '''Vilje''', 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 Vilje, add the following lines to `~/.bashrc`: |
| 56 | {{{ |
| 57 | #!sh |
| 58 | export ISSM_DIR=PATHTOTRUNK |
| 59 | # |
| 60 | module load intelcomp/13.0.1 mpt/2.06 petsc/3.4.1d |
| 61 | module load parmetis/4.0.2 mumps/4.10.0 |
| 62 | module load automake |
| 63 | }}} |
| 64 | |
| 65 | ''Log out and log back in'' to apply this change. |
| 66 | |
| 67 | == Installing ISSM on Vilje == |
| 68 | |
| 69 | You can check out ISSM and install m1qn3. This is the only package we will install, the module loaded from your bashrc are taking care of the rest. |
| 70 | |
| 71 | Use the following configuration script (adapt to your needs): |
| 72 | |
| 73 | {{{ |
| 74 | #!/bin/sh |
| 75 | ./configure \ |
| 76 | --prefix=$ISSM_DIR \ |
| 77 | --without-kriging \ |
| 78 | --with-wrappers=no \ |
| 79 | --with-petsc-dir="/sw/sdev/Modules/petsc/petsc-3.4.1" \ |
| 80 | --with-mpi-include="/sw/sgi/mpt/mpt-2.06/include/" \ |
| 81 | --with-mpi-libflags="-L/sw/sgi/mpt/mpt-2.06/lib -lmpi -lmpi++" \ |
| 82 | --with-metis-dir="/sw/sdev/Modules/parmetis/parmetis-4.0.2/include" \ |
| 83 | --with-mumps-dir="/sw/sdev/Modules/mumps/mumps-4.10.0" \ |
| 84 | --with-cxxoptflags="-O2 -xAVX" \ |
| 85 | --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \ |
| 86 | --enable-development |
| 87 | }}} |
| 88 | |
| 89 | == hexagon_settings.m == |
| 90 | |
| 91 | TO BE DONE function of hexagon.py |