# SW4

**URL:** https://community.geodynamics.org/c/sw4/32.md

[Latest](https://community.geodynamics.org/latest.md) · [Categories](https://community.geodynamics.org/categories.md) · [Tags](https://community.geodynamics.org/tags.md)

---

## [About the SW4 category](https://community.geodynamics.org/t/about-the-sw4-category/232)

<div class="topic-metadata">

**Author:** [@ljhwang](https://community.geodynamics.org/u/ljhwang)\
**Replies:** 0

</div>

Discuss SW4. Get help with installation. Ask questions about running the code. Start a discussion on new and/or existing features. For help, see also GitHub Issues and Discussions: GitHub - geodynamics/sw4: SW4 (Seismi…

---

## [Cavities in subsurface model](https://community.geodynamics.org/t/cavities-in-subsurface-model/4374)

<div class="topic-metadata">

**Author:** [@ilabaro](https://community.geodynamics.org/u/ilabaro)\
**Replies:** 0\
**Last updated:** [December 2, 2025, 2:23pm UTC](https://community.geodynamics.org/t/cavities-in-subsurface-model/4374 "2025-12-02T14:23:56Z")

</div>

Dear all, I am trying to build a subsurface model containing a void space (cavity). I have tried to use the “block” command to add a rectangular cavity and set Vs = 0 and a very low density (1.2 kg/m3), but this makes m…

---

## [Running SW4 on Cluster and creating input (.in and .rfile) files](https://community.geodynamics.org/t/running-sw4-on-cluster-and-creating-input-in-and-rfile-files/3366)

<div class="topic-metadata">

**Author:** [@sajankc](https://community.geodynamics.org/u/sajankc)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 3:31am UTC](https://community.geodynamics.org/t/running-sw4-on-cluster-and-creating-input-in-and-rfile-files/3366 "2024-04-02T03:31:36Z")

</div>

Hello all, I am using SW4 for the first time. I am running it on a HPC cluster. I tried executing some files given in the tutorial folder in the github repository. It said the code was executed successfully. However, I …

---

## [Apple M3 install support](https://community.geodynamics.org/t/apple-m3-install-support/3220)

<div class="topic-metadata">

**Author:** [@amt.seismo](https://community.geodynamics.org/u/amt.seismo)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 1:07am UTC](https://community.geodynamics.org/t/apple-m3-install-support/3220 "2024-01-11T01:07:13Z")

</div>

Hi, I am attempting to install sw4 on a Macbook with an Apple M3 Pro chip by following the installation instructions. I installed gcc13 via Macports, and the lapack and blas libraries came preinstalled. I modified mak…

---

## [SW4: Slides Wanted for CIG Annual Business Meeting](https://community.geodynamics.org/t/sw4-slides-wanted-for-cig-annual-business-meeting/3167)

<div class="topic-metadata">

**Author:** [@ljhwang](https://community.geodynamics.org/u/ljhwang)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 9:36pm UTC](https://community.geodynamics.org/t/sw4-slides-wanted-for-cig-annual-business-meeting/3167 "2023-11-06T21:36:09Z")

</div>

Subject: Slides Wanted for CIG Annual Business Meeting Hi I am looking for figures and photos (e.g. fieldwork, workshops) from research using CIG community codes from the past year for a slide loop at our AGU Business …

---

## [Spack install Sw4 ubuntu 22.4.3](https://community.geodynamics.org/t/spack-install-sw4-ubuntu-22-4-3/3102)

<div class="topic-metadata">

**Author:** [@Yaron](https://community.geodynamics.org/u/Yaron)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 5:37pm UTC](https://community.geodynamics.org/t/spack-install-sw4-ubuntu-22-4-3/3102 "2023-09-15T17:37:15Z")

</div>

hi, while install on ubuntu 22.4.3 i got breaks " /usr/bin/ld: main.o: in function main': main.C:(.text.startup+0x239): undefined reference to H5Z\_zfp\_initialize’ /usr/bin/ld: main.C:(.text.startup+0x324): undefined re…

---

## [SW4 3.0 released](https://community.geodynamics.org/t/sw4-3-0-released/3109)

<div class="topic-metadata">

**Author:** [@houjun](https://community.geodynamics.org/u/houjun)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 10:35pm UTC](https://community.geodynamics.org/t/sw4-3-0-released/3109 "2023-09-14T22:35:17Z")

</div>

Hi all, We released SW4 3.0 with various bug fixes and new features: Curvilinear mesh refinement. Read material properties in the sfile and GeoModelGrids (HDF5) formats. Output material properties data in the sfile fo…

---

## [3D velocity model](https://community.geodynamics.org/t/3d-velocity-model/2653)

<div class="topic-metadata">

**Author:** [@DanielBrox](https://community.geodynamics.org/u/DanielBrox)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 4:50pm UTC](https://community.geodynamics.org/t/3d-velocity-model/2653 "2022-11-01T16:50:37Z")

</div>

Trying to write an SW4 input file with a 3D velocity model of southern Vancouver Island. The data provided to me is for a volume on the order of ~100km x 100km x 100km, and consists of P and S wave velocities on a 36 x …

---

## [SW4 make and python test](https://community.geodynamics.org/t/sw4-make-and-python-test/2524)

<div class="topic-metadata">

**Author:** [@DanielBrox](https://community.geodynamics.org/u/DanielBrox)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 7:22pm UTC](https://community.geodynamics.org/t/sw4-make-and-python-test/2524 "2022-07-28T19:22:52Z")

</div>

SW4 make resulted in several warnings of type: ld: warning: could not create compact unwind for rhouttlumf registers 23 and 24 not saved contiguously in frame and although the SW4 Lives banner shows afterwards, the pyt…

---

## [Installing with the Big Sur update](https://community.geodynamics.org/t/installing-with-the-big-sur-update/1894)

<div class="topic-metadata">

**Author:** [@ChelseyA](https://community.geodynamics.org/u/ChelseyA)\
**Replies:** 3\
**Last updated:** [July 9, 2021, 12:19am UTC](https://community.geodynamics.org/t/installing-with-the-big-sur-update/1894 "2021-07-09T00:19:14Z")

</div>

Hi! I’m having trouble installing SW4 on my computer with the Big Sur update with an M1 processor. It doesn’t seem to be compatible with the compiler and I get an error every time I try to install gcc7 or gcc72, and the …

---

## [Looking for GPU syntax](https://community.geodynamics.org/t/looking-for-gpu-syntax/1173)

<div class="topic-metadata">

**Author:** [@BlaerA](https://community.geodynamics.org/u/BlaerA)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 5:29pm UTC](https://community.geodynamics.org/t/looking-for-gpu-syntax/1173 "2020-03-26T17:29:56Z")

</div>

Hi there, Im looking for Running my Earthquake simulations via my GPU processor. So far I use my CPU cores by using: mpirun -np 2 sw4 \*.in However It is time cosuming. Thx all :slight\_smile:

---

## [Creating r-file?](https://community.geodynamics.org/t/creating-r-file/860)

<div class="topic-metadata">

**Author:** [@mlabuta](https://community.geodynamics.org/u/mlabuta)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 8:03pm UTC](https://community.geodynamics.org/t/creating-r-file/860 "2019-10-23T20:03:08Z")

</div>

Hello, I would like to ask, if there is some software which would simplify the creation process of the r-file. So far I tried to create simple blocks of material properties with headers in Matlab but I do not see how to…

---

## [Ppfile on Cartesian coordinates](https://community.geodynamics.org/t/ppfile-on-cartesian-coordinates/835)

<div class="topic-metadata">

**Author:** [@hramos](https://community.geodynamics.org/u/hramos)\
**Replies:** 0\
**Last updated:** [October 10, 2019, 4:09pm UTC](https://community.geodynamics.org/t/ppfile-on-cartesian-coordinates/835 "2019-10-10T16:09:16Z")

</div>

Hi everyone! I’m a new user of SW4 and I’m trying to test a grid I created in UTM coordinates. I paste here the first lines of my ppfile to have an easier look of the issue : EjidoLamb 250 9 4068522.12 4070522.12 9 …
