Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 2.15 KB

INSTALL.md

File metadata and controls

85 lines (55 loc) · 2.15 KB

Documentation for installation

Dependency & Environment

This FE library requires following libraries:

We confirm that building our codes has succeeded in the following environments:

  • Ubuntu 22.04 LTS (for case of GNU compiler)
    • GNU Fortran 11.2.0
    • OpenMPI 4.1.2
    • LAPACK 3.10.0
    • NetCDF 4.8.1
    • SCALE library 5.5.1
  • Ubuntu 20.04 LTS (for case of Intel oneAPI HPC Toolkit 2023.0)
    • Intel® Fortran Compiler
    • Intel MPI Library
    • Intel oneAPI Math Kernel Library
    • NetCDF 4.8.0
    • SCALE library develop version
  • macOS Sonoma
    • GNU Fortran 13.2.0
    • OpenMPI 5.0.3
    • LAPACK 3.12
    • NetCDF 4.9.2
    • SCALE library develop version

Our codes are also verified in Fugaku and Odyssey (Fujitsu compiler).

Build FE-library

  1. Preparation
  • Set SCALE_FE_SYS environmental variable (see the sysdef directory)

% export SCALE_FE_SYS=MacOSX-gnu-ompi (for example)

  • Set a directory in which SCALE library is contained

% export SCALE="~/workspace/scale-5.4.5/" (for example)

  • If a developing version of SCALE library is used, set a variable as

% export SCALE_DEVELOP=T

  • If you would like to enable a thread parallelization with OpenMP, set a variable as

% export SCALE_ENABLE_OPENMP=T

  • Set a directory in which a NetCDF library is contained (if necessary).

% export NETCDF="/ap/netcdf4-fortran/4.7.3/" (for example)

  1. Build the library in the directory of FElib

% cd rootdir/FElib/src/

% make

Compile and run simple sample programs

For example, in the case of sample/advect1d,

% cd rootdir/sample/advect1d/

% make

% make run

Compile and run atmospheric models

If you want to build a three-dimensional nonhydrostatic atmospheric model, and conduct an idealized test case, such as density current, using it,

% cd rootdir/model/atm_nonhydro3d/test/case/density_current

% make

% make run

In the directory of 'visualize', some python scripts with matplotlib are prepared for visualizing simulation results.