1, 安装 Ubuntu Linux 和基本工具
sudo apt install make gcc libhdf5-mpich-dev hdf5-tools cdo apt-file openssh-server net-tools curl
2, 安装 Fortran
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install -y nvhpc-24-3
3, 編譯RAMS
a.解壓原始代碼 (假設原始代碼檔案在~/Download, 安裝在~/software資料夾內)
mkdir ~/software
cd ~/software
tar xvzf ~/Download/RAMS-6.3.04.tar.gz
ln -s RAMS-6.3.04 rams
b.修改include.mk 檔,可利用Ubuntu的Text Editor應用,或nano, vim 等工具修改
c.編譯rams
cd ~/software/rams/bin.rams
make
d.編譯revu
cd ~/software/rams/bin.revu
make