Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the SWAN installation package directory.
cd /path/to/SWAN
- Decompress the SWAN installation package.
tar -zxvf swan4131.tar.gz
- Go to the directory generated after the decompression.
cd swan4131
- Modify the platform.pl file.
- Create a configuration file.
export CC=`which clang` export CXX=`which clang++` make config

- Load the environment variables.
export NETCDFROOT=/path/to/NETCDF
- Create a swan.exe file.
make mpi
Output for the start:

Output for the end:

- Check whether the swan.exe file is generated.
ll swan.exe

Parent topic: SWAN 41.31 Porting Guide (openEuler 20.03)

