update readme.md
This commit is contained in:
parent
af9f92e864
commit
8192da0664
58
README.md
58
README.md
@ -15,3 +15,61 @@ g++ hello.cpp -L. -lmath_module -o main
|
|||||||
g++ hello.cpp /path/to/math_module.so -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
|
||||||
|
```
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
std::cout << "Hello, world\n";
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user