Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.23 KB

README.md

File metadata and controls

54 lines (43 loc) · 1.23 KB

UCLALES

原始项目地址传送门

修改原因

原项目停止维护,且文档不完善,编译安装使用困难

安装方法

在 ubuntu 20.04 LTS 版本中测试通过

命令

sudo apt-get install build-essential
sudo apt-get install libc6-dev
sudo apt-get install zlib1g-dev libssl-dev
sudo apt-get install gfortran
sudo apt-get install libnetcdf-dev libnetcdff-dev

wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.1.tar.gz
tar zxvf openmpi-4.1.1.tar.gz
cd openmpi-4.1.1
./configure --prefix=$HOME/.local/openmpi CC=gcc CXX=g++ FC=gfortran
make -j
make install
MPI_HOME=$HOME/.local/openmpi
export PATH=${MPI_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${MPI_HOME}/lib:$LD_LIBRARY_PATH
export MANPATH=${MPI_HOME}/share/man:$MANPATH

cd ~ && git clone https://github.com/WidgetA/uclales.git
cd uclales/config && cp ubuntu.cmake default.cmake
cd ..
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE ..
make -j

cp uclales ../bin/

使用方法

将数据拷贝至 ${安装目录}/uclales/bin/ 下执行

./ucales

Docker

构建本地镜像方法

git clone https://github.com/WidgetA/uclales.git
cd uclales
docker build -t uclales ./