LogoRefATT

Installation

Dependencies

RefATT requires the following dependencies:

  • CMake 3.16 or higher
  • C++ compiler supporting C++17
  • Spdlog
  • Yaml-cpp
  • HDF5 (Series verison)

Install Dependencies on Local Machine

conda install -c conda-forge cxx-compiler cmake openmpi hdf5 spdlog openmp yaml-cpp

Load Dependencies on HPC

module load intel intelmpi hdf5/1.10.5 cmake

Note

If hdf5 is not available, please consider installing it from source code. See HDF5 Compilation Guide for details.

Build RefATT

Clone source code

Warning

The RefATT is a closed source software as a part of our service in research and engineering domain. Please contact Mijian Xu and Ping Tong for commercial consultation and collaboration.

Build RefATT

cd RefATT
mkdir build && cd build
cmake ..

For comilation on HPC or non-conda environment, you may need to specify the compiler and external libraries:

CXX=/path/to/mpicc cmake .. -DUSE_EXTERNAL_LIBS=ON

Compile RefATT

make -j4

Following excutable files will be generated in the RefATT/bin directory:

  • REFATT_mesh3D: Tool for generating 3D mesh from underlating topography and subsurface interfaces
  • REFATT_rotation: Tool for rotating 3D mesh as well as sources and receiver locations to the desired orientation
  • REFATT_tomo: Main executable for traveltime tomography