Commit 7a93bdce authored by Markus Scheinert's avatar Markus Scheinert

Update nemo_xios2.md

parent 098e8aea
# Install NEMO on TSUBASA (SX-Aurora)
\ No newline at end of file
# Install NEMO on TSUBASA (SX-Aurora)
## Prepare Installation
### Install NEMOGCM
Follow instructions in [NEMOGCM: INSTALL.md](https://git.geomar.de/NEMO/NEMOGCM/blob/release-3.6.3.x/INSTALL.md)
{+ tsubasa-specific: +}
```bash
# Environment
GITUSER= # <== use your own namespace here
NPREFIX=$HOME/NEMOGCM
BRANCH=release-3.6.3.x
SITE=tsubasa
# Local repo & update from upstream
[[ -d $NPREFIX ]] || mkdir -p $NPREFIX
cd $NPREFIX/NEMOGCM
git clone git@git.geomar.de:$GITUSER/NEMOGCM.git fork
cd $NPREFIX/fork
git remote add -f --tags upstream git@git.geomar.de:NEMO/NEMOGCM.git
git checkout -b release-3.6.3.x remotes/origin/release-3.6.3.x
git checkout -b ${BRANCH}-update
git merge upstream/${BRANCH}
git checkout $BRANCH
git merge ${BRANCH}-update
git branch -d ${BRANCH}-update
git push
# Tsubasa-branch
git worktree add -b $BRANCH-$SITE ../$BRANCH-$SITE origin/$BRANCH
cd $NPREFIX/$BRANCH-$SITE
```
### Build NEMO
#### Create new configuration `ORCA025.L46.LIM2vp.CFCSF6.JRA.XIOS2.tsubasa`
```bash
# within $NPREFIX/$BRANCH-$SITE/
./makenemo -r ORCA025.L46.LIM2vp.CFCSF6.JRA.XIOS2 -n ORCA025.L46.LIM2vp.CFCSF6.JRA.XIOS2.tsubasa -m SX-aurora -j 0
```
#### Compile `ORCA025.L46.LIM2vp.CFCSF6.JRA.XIOS2.tsubasa`
<details>
<summary>File <code>arch-SX-aurora.fcm</code></summary>
```bash
# SX-Aurora
# NCDF_INC netcdf include file
# NCDF_LIB netcdf library
# FC Fortran compiler command
# FCFLAGS Fortran compiler flags
# FFLAGS Fortran 77 compiler flags
# LD linker
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
# FPPFLAGS pre-processing flags
# AR assembler
# ARFLAGS assembler flags
# MK make
# USER_INC additional include files for the compiler, e.g. -I<include dir>
# USER_LIB additional libraries to pass to the linker, e.g. -l<library>
%NCDF_INC -I/sfs/fs5/home-sh/xeext098/libs/beta-new/include
%NCDF_LIB -L/sfs/fs5/home-sh/xeext098/libs/beta-new/lib -lnetcdff -lnetcdf -lhdf5_hl_fortran-static -lhdf5_fortran-static -lhdf5_hl_f90cstub-static -lhdf5_f90cstub-static -lhdf5_hl -lhdf5 -lz
%FC mpinfort
%FCFLAGS -Nftrace -fpp -fdefault-real=8 -O4 -floop-count=999999 -report-all -finline-functions -I/sfs/fs5/home-sh/xeext098/libs/XIOS-r982/inc
%FFLAGS %FCFLAGS
%LD mpinfort
%LDFLAGS -ftrace -L/sfs/fs5/home-sh/xeext098/libs/XIOS-r982/lib -lxios # -L/opt/nec/ve/musl/lib -lveperf
%FPPFLAGS -P -C -traditional
%AR nar
%CPP ncc -E
%ARFLAGS rs
%MK gmake
%USER_INC %NCDF_INC
%USER_LIB %NCDF_LIB
```
</details>
<br>
```bash
cp /sfs/fs5/home-sh/xeext098/NEMOGCM/ARCH/arch-SX-aurora.fcm ARCH/.
type mpinfort || source /opt/nec/ve/mpi/1.1.1/bin64/necmpivars.sh
./makenemo -n ORCA025.L46.LIM2vp.CFCSF6.JRA.XIOS2.tsubasa -j 1
```
See #1 for details of the evolving compilation process.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment