Differences between revisions 4 and 20 (spanning 16 versions)
Revision 4 as of 2015-11-13 10:16:52
Size: 1224
Editor: NicoleThomas
Comment:
Revision 20 as of 2018-11-09 12:34:16
Size: 1369
Editor: NicoleThomas
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * To use Mercurial on JURECA expand your PATH:  * The JURECA system is accessible via ssh:
Line 6: Line 6:
PATH=/homec/jicg11/jicg1108/local/bin:$PATH
export PATH
ssh -X userid@jureca.fz-juelich.de
}}}

 * Load following modules:
 {{{
module load intel-para
module load netCDF-Fortran
module load Mercurial
Line 10: Line 16:
 * For getting the source code or commiting changes by ssh, you have to copy your '''''id_rsa''''' and '''''id_rsa.pub''''' from Cluster-Workstation to JUROPA  * For getting the source code or committing changes by ssh, you have to copy your ssh-key used for Mercurial to JURECA
 (e.g. '''''id_rsa.mercurial''''' and '''''id_rsa.mercurial.pub''''') and add to '''''.ssh/config''''' the following lines:
 {{{
User hg-messy
IdentityFile ~/.ssh/id_rsa.mercurial
 }}}
 
Line 14: Line 26:
hg clone ssh://hg-messy@messy.fz-juelich.de/messy-2.40.1-clams [outdir] hg clone ssh://hg-messy@messy.fz-juelich.de/messy-2.54.0-clams [outdir]
Line 17: Line 29:
 * Create a Mercurial configuration file ''.hgrc'' in your home directory to set your username and add ''hgext.inotify'' (to avoid incorrect ''hg status'' behavior)  * Create a Mercurial configuration file '''''.hgrc''''' in your home directory to set your username:
Line 22: Line 34:
[extensions]
hgext.inotify=!
Line 47: Line 57:
default-push = ssh://hg-messy@messy.fz-juelich.de/messy-2.40.1-clams default-push = ssh://hg-messy@messy.fz-juelich.de/messy-2.54.0-clams

MESSy/CLaMS: Get the source code (on JURECA)

  • The JURECA system is accessible via ssh:
    ssh -X userid@jureca.fz-juelich.de
  • Load following modules:
    module load intel-para 
    module load netCDF-Fortran
    module load Mercurial
  • For getting the source code or committing changes by ssh, you have to copy your ssh-key used for Mercurial to JURECA

    (e.g. id_rsa.mercurial and id_rsa.mercurial.pub) and add to .ssh/config the following lines:

    User hg-messy
    IdentityFile ~/.ssh/id_rsa.mercurial
  • Getting a copy of the source by ssh:
    hg clone ssh://hg-messy@messy.fz-juelich.de/messy-2.54.0-clams [outdir]
  • Create a Mercurial configuration file .hgrc in your home directory to set your username:

    # This is a Mercurial configuration file.
    [ui]
    username = Firstname Lastname <mailaddress>
  • Create and run configure file in messy main directory:

    autoconf
    configure
  • Compile all
    make
    Compile only basemodel CLaMS:
    cd messy/mbm/clams
    make
  • To commit changes it is neccessary to add default-push in messy-dir/.hg/hgrc:

    [paths]
    default-push = ssh://hg-messy@messy.fz-juelich.de/messy-2.54.0-clams

messy/GetSourceJureca (last edited 2019-01-07 09:40:18 by NicoleThomas)