Skip to content

Commit

Permalink
Merge pull request #3 from nqdu/devel
Browse files Browse the repository at this point in the history
update manual
  • Loading branch information
nqdu authored May 31, 2024
2 parents b42a5e3 + 131f0f3 commit 10427d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ Part of the code are adapted from [Instaseis](https://github.com/krischer/instas
```bash
conda create -n axisem_lib python=3.8
conda activate axisem_lib
conda install numpy scipy numba pyproj
conda install numpy scipy numba pyproj tqdm
pip install pybind11-global
```
3. Install [parallel-hdf5](https://support.hdfgroup.org/HDF5/PHDF5/), [mpi4py](https://mpi4py.readthedocs.io/en/stable/install.html) and [h5py-mpi](https://docs.h5py.org/en/stable/mpi.html), and [netcdf-fortran](https://docs.unidata.ucar.edu/netcdf-fortran/current/).
3. Install several packages:
* [parallel-hdf5](https://support.hdfgroup.org/HDF5/PHDF5/) using your MPI libraries.
* [netcdf-fortran](https://docs.unidata.ucar.edu/netcdf-fortran/current/), only serial version.
* [mpi4py](https://mpi4py.readthedocs.io/en/stable/install.html): You can build it by using existing mpi libraries:
```bash
MPICC=mpicc pip install mpi4py --no-binary mpi4py
```
* [h5py-mpi](https://docs.h5py.org/en/stable/mpi.html) using existing `parallel-hdf5` libraries:
```bash
CC="mpicc" HDF5_MPI="ON" HDF5_DIR=/path/to/parallel-hdf5 pip install --no-binary=h5py h5py
```

4. build `AxiSEMLib` by using:
```bash
Expand Down
1 change: 1 addition & 0 deletions test/specfem_injection/create_interfaces.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ nt=1000
dt=0.025
t0=0. # started from earthquake origin time

# the cores can be different from # of discon files.
mpirun -np 120 python ../../coupling.py $axisem_data_dir $coordir $t0 $dt $nt $outdir

0 comments on commit 10427d2

Please sign in to comment.