ggslc / unicicles

The unicicles wrapper for BISICLES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UNICICLES

Build notes

Ubuntu 22.04 (serial, debug)

Assumes BISICLES at $BISICLES_HOME/bisicles-uob and Chombo at $BISICLES_HOME/Chombo. Both built with DEBUG=TRUE, OPT=FALSE, MPI=FALSE, USE_PETSC=FALSE


cd $BISICLES_HOME
git clone git@github.com:ggslc/unicicles.git
cd unicicles

# Build glimmer-cism
cd glimmer-cism
./bootstrap
cd ..
mkdir glimbike-serial
cd glimbike-serial

BIKE=$BISICLES_HOME/bisicles-uob/
BIKE_CONFIG=2d.Linux.64.g++.gfortran.DEBUG
HDF5=/usr/lib/x86_64-linux-gnu/hdf5/serial/
NETCDF=/usr

PYTHON=python3 FC=gfortran FCFLAGS="-fno-range-check -ffree-line-length-0 -DBISICLES_CDRIVER -DNO_RESCALE -g -I$BIKE/code/src " LDFLAGS="-L$BIKE/code/lib -lBisicles$BIKE_CONFIG -lChomboLibs$BIKE_CONFIG -lpython3.10 -L$HDF5 -lhdf5 -lz " ../glimmer-cism/configure --with-netcdf=$NETCDF --with-hdf5=$HDF5 --prefix=$PWD --disable-python
make
make install

# build wrappers/ukesm-ice_NETCDF
cd wrappers/ukesm-ice_NETCDF
make clean -f Makefile.ubuntu22.04
make -f Makefile.ubuntu22.04

Ubuntu 22.04 (parallel, opt, petsc, debug)

Assumes BISICLES at $BISICLES_HOME/bisicles-uob and Chombo at $BISICLES_HOME/Chombo. Both built with DEBUG=TRUE, OPT=TRUE, MPI=TRUE, USE_PETSC=TRUE


cd $BISICLES_HOME
git clone git@github.com:ggslc/unicicles.git
cd unicicles

# Build glimmer-cism
cd glimmer-cism
./bootstrap
cd ..
mkdir glimbike-parallel
cd glimbike-parallel

BIKE=$BISICLES_HOME/bisicles-uob/
BIKE_CONFIG=2d.Linux.64.mpiCC.mpif90.DEBUG.OPT.MPI.PETSC
HDF5=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/
NETCDF=/usr

PYTHON=python3 FC=gfortran FCFLAGS="-fno-range-check -ffree-line-length-0 -DBISICLES_CDRIVER -DNO_RESCALE -g -I$BIKE/code/src " LDFLAGS="-L$BIKE/code/lib -lBisicles$BIKE_CONFIG -lChomboLibs$BIKE_CONFIG -lpython3.10 -L$HDF5 -lhdf5 -lz " ../glimmer-cism/configure --with-netcdf=$NETCDF --with-hdf5=$HDF5 --prefix=$PWD --disable-python
make
make install

# build wrappers/ukesm-ice_NETCDF
cd wrappers/ukesm-ice_NETCDF
make clean -f Makefile.ubuntu22.04_opt_mpi_petsc
make -f Makefile.ubuntu22.04_opt_mpi_petsc

Ubuntu 20.04 (serial, debug)

cd unicicles

# Build glimmer-cism
cd glimmer-cism
./bootstrap
cd ..
mkdir glimbike-serial
cd glimbike-serial
BIKE=$BISICLES_HOME/bisicles-uob/
HDF5=/usr/lib/x86_64-linux-gnu/hdf5/serial/
FC=gfortran FCFLAGS="-fno-range-check -ffree-line-length-0 -DBISICLES_CDRIVER -DNO_RESCALE -g -I$BIKE/code/src " LDFLAGS="-L$BIKE/code/lib -lBisicles2d.Linux.64.g++.gfortran.DEBUG -lChomboLibs2d.Linux.64.g++.gfortran.DEBUG -lpython3.8 -L$HDF5 -lhdf5 -lz " ../glimmer-cism/configure --with-netcdf=/usr --with-hdf5=$HDF5 --prefix=$PWD
make
make install


About

The unicicles wrapper for BISICLES


Languages

Language:Fortran 68.4%Language:Python 8.1%Language:TeX 6.9%Language:C 6.2%Language:M4 4.2%Language:C++ 1.5%Language:Shell 1.2%Language:NCL 1.0%Language:MATLAB 0.8%Language:Makefile 0.7%Language:CMake 0.5%Language:Roff 0.2%Language:Pascal 0.1%Language:HTML 0.1%Language:Gnuplot 0.1%