我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the WAVEWATCH III installation directory.
    cd /path/to/WAVEWATCH
  3. Decompress the WAVEWATCH III source package.
    tar -xvf WW3-6.07.1.tar.gz
  4. Go to the directory generated after the decompression.
    cd WW3-6.07.1
  5. Create an environment variable file.
    1. Create an environment variable file.
      vi env_ww3.sh
    2. Press i to enter the edit mode and add the following content:
      ############# clang + hypermpi #################
      export PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/bin:$PATH
      export LD_LIBRARY_PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/lib:$LD_LIBRARY_PATH
      export PATH=/path/to/hypermpi/hmpi/bin:/path/to/hypermpi/ucx/bin:$PATH
      export LD_LIBRARY_PATH=/path/to/hypermpi/hmpi/lib:/path/to/hypermpi/ucx/lib:$LD_LIBRARY_PATH############# netcdf #################
      export NETCDF_DIR=/path/to/NETCDF
      export NETCDF_LIBDIR=$NETCDF_DIR/lib
      export NETCDF_INCDIR=$NETCDF_DIR/include
      export PATH=$NETCDF_DIR/bin:$PATH
      export LD_LIBRARY_PATH=$NETCDF_LIBDIR:$LD_LIBRARY_PATH
      export WWATCH3_NETCDF=NC4
      export NETCDF_CONFIG=$NETCDF_DIR/bin/nc-config
      ############# metis #################
      export METIS_PATH=/path/to/METIS
      export PATH=$METIS_PATH/bin:$PATH
      export LD_LIBRARY_PATH=$METIS_PATH/lib:$LD_LIBRARY_PATH
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Load the environment variables.
    source env_ww3.sh
  7. Configure the WAVEWATCH III parameters (pay attention to the information in bold).
    ./model/bin/w3_setup model/
    *****************************
    ***   WAVEWATCH III setup     ***
    *****************************
    [INFO] local env file wwatch3.env created in /home/WW3-6.07.1/model/bin/wwatch3.env
    Setup file /home/WW3-6.07.1/model/bin/wwatch3.env not found
    Default set up :
    Printer (listings)       : printer
    Auxiliary FORTRAN comp.  : gfortran
    Auxiliary C compiler     : gcc
    Scratch directory        : /path/to/WAVEWATCH/WW3-6.07.1/model/tmp
    Save sources             : yes
    Save listings            : yes
    Update settings ? [y/n] y
    Creating new set-up :
    Printer for listings [printer] :
    Auxiliary FORTRAN compiler [gfortran] :flang
    Auxiliary C compiler [gcc] :clang
    Scratch space [/home/wdy/WW3-6.07.1/model/tmp] :
    Save source code files (*.f)  [yes] :
    Save listing files  [yes] :
    Modified set up :
    Printer (listings)       : printer
    Auxiliary FORTRAN comp.  : flang
    Auxiliary C compiler     : clang
    Scratch directory        : /path/to/WAVEWATCH III/WW3-6.07.1/model/tmp
    Save sources             : yes
    Save listings            : yes
    New settings OK ? [y/n] y
    Setup makefile for auxiliary programs
    ......
    Create required model subdirectories
    Finished setting up WAVEWATCH III