From 8192da0664a87efa567b3783f8174ee39bbf092b Mon Sep 17 00:00:00 2001 From: baol Date: Wed, 15 May 2024 10:18:26 +0800 Subject: [PATCH] update readme.md --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++ example6/hello.cc | 6 ----- 2 files changed, 58 insertions(+), 6 deletions(-) delete mode 100644 example6/hello.cc diff --git a/README.md b/README.md index 093c304..e4aa208 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,61 @@ g++ hello.cpp -L. -lmath_module -o main g++ hello.cpp /path/to/math_module.so -o main ``` + + +## install mini-requirements for clm + +### netCDF-C + +``` shell +sudo apt install libhdf5-dev +wget https://path/to/netcdf-c.source.zip +unzip netCDF.zip +cd netcdf +mkdir build +cd build +cmake ../. +make +sudo make install + +``` + +### netcdf-fortran + +``` shell +wget https://github.com/Unidata/netcdf-fortran/archive/refs/tags/v4.6.1.zip +unzip netcdf-fortran +cd netcdf-fortran +./configure +make check +sudo make install + +``` + +### pnetcdf + +``` shell + +git clone https://github.com/Parallel-NetCDF/PnetCDF.git +cd PnetCDF +autoreconf -i + +./configure +make +sudo make install + +``` + + +### lapack + +``` shell +wget https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.0.zip +unzip v3.12.0.zip +cd v3.12.0 +mkdir build +cd build +cmake .. +make +sudo make install +``` diff --git a/example6/hello.cc b/example6/hello.cc deleted file mode 100644 index 1fff3d8..0000000 --- a/example6/hello.cc +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int main() { - std::cout << "Hello, world\n"; - return 0; -}