update readme.md

This commit is contained in:
baol 2024-05-15 10:18:26 +08:00
parent af9f92e864
commit 8192da0664
2 changed files with 58 additions and 6 deletions

View File

@ -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
```

View File

@ -1,6 +0,0 @@
#include <iostream>
int main() {
std::cout << "Hello, world\n";
return 0;
}