Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alisiahkoohi/devito_basic
Basic Devito setup and example
https://github.com/alisiahkoohi/devito_basic
Last synced: 22 days ago
JSON representation
Basic Devito setup and example
- Host: GitHub
- URL: https://github.com/alisiahkoohi/devito_basic
- Owner: alisiahkoohi
- License: mit
- Created: 2021-10-11T15:54:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T03:51:13.000Z (about 3 years ago)
- Last Synced: 2024-10-30T06:05:37.440Z (2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A basic devito modeling example + zero-offset gather
## Prerequisites
First clone the repository:
```bash
git clone https://github.com/alisiahkoohi/devito_basic
cd devito_basic/
```Follow the steps below to install the necessary libraries.
```bash
conda env create -f environment.yml
conda activate devito
```Include the following environment variables in `~/.bashrc` to maximize the utilization of your hardware.
```bash
export DEVITO_ARCH=gnu
export DEVITO_LANGUAGE=openmp
export OMP_NUM_THREADS=8 # Adjust depending on your architecture.
```## Example
To run a basic seismic modeling example, run:
```bash
python modeling.py
```and for creating a zero-offset gather on the same model, execute:
```bash
python zero_offset.py
```The created zero-offset gather will be saved in a HDF5 file.
## Author
Ali Siahkoohi