This is a temporary repo for source code of NSE solver porting for Kunpeng architecture
\ No newline at end of file
This is a temporary repo for source code of NSE solver porting for Kunpeng architecture.
To build the executable use make, for example on Taishan:
```
make -B MACHINE=kunpeng COMPILER=gnu
```
this will create an executable `nsenx`, which then should be run using mpiexec or mpirun:
```
mpiexec -n 32 nsenx
```
this will run the code with 32 mpi-processors. By default number of OpenMP threads is set to 1, to change that, change the following line in `model-defines.h`:
```
#define SET_OPENMP_THREADS 1 // set number of OpenMP threads by hand
```
or, comment it and use `OMP_NUM_THREADS` enviromental variable instead.
Most of the configuration of the model is done by `config.txt` file. Model diagnostics are outputed in `output/nse-data.txt`