Skip to content

Commit b5805a5

Browse files
Merge pull request #802 from baagaard-usgs/prepare-release-4.2.0
Prepare release v4.2.0
2 parents 0af9743 + f393c11 commit b5805a5

File tree

18 files changed

+93
-51
lines changed

18 files changed

+93
-51
lines changed

CHANGES.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ The version numbers are in the form `MAJOR.MINOR.PATCH`, where major releases in
99

1010
* **Changed**
1111
* Updated `examples/strikeslip-2d` Steps 4-7 to use a more realistic slip distribution and mesh refinement in output.
12-
* Updated to PETSc 3.22.0
12+
* Updated to PETSc 3.22.2
1313
* Switch CI from Azure Pipelines to GitHub Actions.
1414
* **Added**
1515
* Default filenames for progress monitor and parameters file are set from the simulation name like
1616
the other output files.
1717
* Consistency check for material properties and scales used in nondimensionalization (currently just the shear modulus).
18-
* Add section to User Guide on troubleshooting solver issues.
19-
* Add section to User Guide on how to run PyLith binary offline.
18+
* Added section to User Guide on troubleshooting solver issues.
19+
* Added section to User Guide on how to run PyLith binary offline.
2020
* Allow output on a finer resolution mesh than used in the simulation to facilitate accurate representation of fields with a basis order of 2 or greater.
2121
* **Fixed**
22-
* Fix inconsistency in normal direction on fault surfaces. Orientation was correct but direction was flipped at some locations. This affected local slip direction and the resulting deformation close to the fault. This bug fix was not in version 4.1.3.
23-
* Update autoconf numpy macros for compatibility with location of include files in numpy version 2.x.
22+
* Fixed inconsistency in normal direction on fault surfaces. Orientation was correct but direction was flipped at some locations. This affected local slip direction and the resulting deformation close to the fault. This bug fix in a PETSc branch was not in version 4.1.3.
23+
* Updated `TimeDependentAuxiliaryFactory::updateAuxiliaryField()` to account for some processes potentially not having points in a boundary condition (`auxiliaryFieldArray == NULL_PTR`).
24+
* Updated autoconf numpy macros for compatibility with location of include files in numpy version 2.x.
2425

2526
## Version 4.1.3 (2024/07/31)
2627

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ authors:
2222
orcid: "https://orcid.org/0000-0001-7435-9196"
2323
identifiers:
2424
- type: doi
25-
value: 10.5281/zenodo.13134616
25+
value: 10.5281/zenodo.14635926
2626
repository-code: "https://github.com/geodynamics/pylith"
2727
url: "https://geodynamics.org/resources/pylith"
2828
keywords:
@@ -31,8 +31,8 @@ keywords:
3131
- earthquake
3232
- finite element
3333
license: MIT
34-
version: 4.1.3
35-
date-released: "2024-06-05"
34+
version: 4.2.0
35+
date-released: "2025-01-17"
3636
preferred-citation:
3737
type: article
3838
authors:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# PyLith
22

3-
[![DOI](https://www.zenodo.org/badge/DOI/10.5281/zenodo.13134616.svg)](https://doi.org/10.5281/zenodo.13134616)
3+
[![DOI](https://www.zenodo.org/badge/DOI/10.5281/zenodo.14635926.svg)](https://doi.org/10.5281/zenodo.14635926)
44
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/geodynamics/pylith/blob/main/LICENSE.md)
5-
[![Build Status](https://dev.azure.com/baagaard-usgs/pylith/_apis/build/status/geodynamics.pylith?branchName=main)](https://dev.azure.com/baagaard-usgs/pylith/_build/latest?definitionId=2&branchName=main)
6-
[![codecov](https://codecov.io/gh/geodynamics/pylith/branch/master/graph/badge.svg?token=JiwLVB64EF)](https://codecov.io/gh/geodynamics/pylith)
5+
[![Build Status](https://github.com/geodynamics/pylith/actions/workflows/ci-main.yml/badge.svg)](https://github.com/geodynamics/pylith/actions/workflows/ci-main.yml)
76

87
## Description
98

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dnl ============================================================================
1010
dnl Process this file with autoconf to produce a configure script.
1111

1212
AC_PREREQ(2.59)
13-
AC_INIT([PyLith], [4.2.0dev], [https://geodynamics.org/resources/pylith])
13+
AC_INIT([PyLith], [4.2.0], [https://geodynamics.org/resources/pylith])
1414
AC_CONFIG_AUX_DIR([./aux-config])
1515
AC_CONFIG_HEADER([portinfo])
1616
AC_CONFIG_MACRO_DIR([m4])
@@ -114,7 +114,7 @@ AC_CHECK_HEADER([mpi.h], [], [AC_MSG_ERROR([header 'mpi.h' not found])])
114114

115115
dnl PETSC
116116
AC_LANG(C)
117-
CIT_PATH_PETSC([3.22.0])
117+
CIT_PATH_PETSC([3.22.2])
118118
CIT_HEADER_PETSC
119119
CIT_CHECK_LIB_PETSC
120120

@@ -185,7 +185,7 @@ CIT_FUNCTIONSTRING
185185
dnl VERSION
186186
CIG_PKG_GIT(PYLITH)
187187
AC_DEFINE_UNQUOTED([PYLITH_VERSION], ["$PACKAGE_VERSION"], [Define PyLith version])
188-
AC_DEFINE_UNQUOTED([PYLITH_DOI], ["10.5281/zenodo.13134616"], [Define PyLith doi])
188+
AC_DEFINE_UNQUOTED([PYLITH_DOI], ["10.5281/zenodo.14635926"], [Define PyLith doi])
189189

190190
dnl ENDIANNESS
191191
AC_C_BIGENDIAN

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Brad T. Aagaard, Matthew G. Knepley, Charles A. Williams'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '4.2.0dev'
25+
release = '4.2.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/intro/preface.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ The following peer-reviewed paper discusses the development of PyLith:
1717

1818
To cite the software and manual, use:
1919

20-
- Aagaard, B., M. Knepley, C. Williams (2024a), *PyLith v4.1.3.* Davis, CA: Computational Infrastructure of Geodynamics. DOI: 10.5281/zenodo.13134616.
20+
- Aagaard, B., M. Knepley, C. Williams (2025a), *PyLith v4.2.0.* Davis, CA: Computational Infrastructure of Geodynamics. DOI: 10.5281/zenodo.14635926.
2121

22-
- Aagaard, B., M. Knepley, C. Williams (2024b), *PyLith Manual, Version 4.1.3.* Davis, CA: Computational Infrastructure of Geodynamics. https://pylith.readthedocs.io/en/v4.1.3
22+
- Aagaard, B., M. Knepley, C. Williams (2025b), *PyLith Manual, Version 4.2.0.* Davis, CA: Computational Infrastructure of Geodynamics. https://pylith.readthedocs.io/en/v4.2.0
2323

2424
## Publishing Models
2525

@@ -43,7 +43,7 @@ Common output files include the solution fields and state variables as `.h5`, `.
4343

4444
The configuration files, parameters of the simulation, and solution field for the models in this study are available at DOI (Authors X, Y, Z) under CC BY-NC-SA 4.0.
4545

46-
PyLith version 4.1.3 (Aagaard et al., 2013; Aagaard et al., 2023a; Aagaard et al., 2023b) used in these models is freely available under the MIT license for download through its software landing page https://geodynamics.org/resources/pylith or Zenodo (10.5281/zenodo.11479383).
46+
PyLith version 4.2.0 (Aagaard et al., 2013; Aagaard et al., 2025a; Aagaard et al., 2025b) used in these models is freely available under the MIT license for download through its software landing page https://geodynamics.org/resources/pylith or Zenodo (10.5281/zenodo.14635926).
4747
The project is being actively developed on GitHub and can be accessed via https://github.com/geodynamics/pylith.
4848

4949
## Support

docs/user/examples/box-3d/step03-sheardisptract.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $ pylith step03_sheardisptract.cfg
7979
8080
# -- many lines omitted --
8181
82-
>> /software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/TimeDependent.py:139:run
82+
>> /software/unix/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/TimeDependent.py:139:run
8383
-- timedependent(info)
8484
-- Solving problem.
8585
0 TS dt 0.01 time 0.
@@ -88,7 +88,7 @@ $ pylith step03_sheardisptract.cfg
8888
1 SNES Function norm 2.511862662012e-17
8989
Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
9090
1 TS dt 0.01 time 0.01
91-
>> /software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
91+
>> /software/unix/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
9292
-- timedependent(info)
9393
-- Finalizing problem.
9494
```

docs/user/examples/box-3d/step05-sheardisptractrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $ pylith step05_sheardisptractrate.cfg
102102
1 SNES Function norm 1.130764208982e-17
103103
Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
104104
6 TS dt 0.1 time 0.5
105-
>> /software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
105+
>> /software/unix/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
106106
-- timedependent(info)
107107
-- Finalizing problem.
108108
```

docs/user/examples/crustal-strikeslip-2d/step01-slip.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -185,60 +185,60 @@ caption: Run Step 1 simulation with the Cubit mesh
185185
$ pylith step01_slip_cubit.cfg
186186
187187
# The output should look something like the following.
188-
>> /Users/baagaard/software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/apps/PyLithApp.py:77:main
188+
>> /software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/apps/PyLithApp.py:77:main
189189
-- pylithapp(info)
190190
-- Running on 1 process(es).
191-
>> /Users/baagaard/software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/meshio/MeshIOObj.py:38:read
191+
>> /software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/meshio/MeshIOObj.py:38:read
192192
-- meshiocubit(info)
193193
-- Reading finite-element mesh
194-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:148:void pylith::meshio::MeshIOCubit::_readVertices(ExodusII &, scalar_array *, int *, int *) const
194+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:148:void pylith::meshio::MeshIOCubit::_readVertices(ExodusII &, scalar_array *, int *, int *) const
195195
-- meshiocubit(info)
196196
-- Component 'reader': Reading 1610 vertices.
197-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:208:void pylith::meshio::MeshIOCubit::_readCells(ExodusII &, int_array *, int_array *, int *, int *) const
197+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:208:void pylith::meshio::MeshIOCubit::_readCells(ExodusII &, int_array *, int_array *, int *, int *) const
198198
-- meshiocubit(info)
199199
-- Component 'reader': Reading 3125 cells in 1 blocks.
200-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:270:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
200+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:270:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
201201
-- meshiocubit(info)
202202
-- Component 'reader': Found 10 node sets.
203-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
203+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
204204
-- meshiocubit(info)
205205
-- Component 'reader': Reading node set 'boundary_south' with id 10 containing 25 nodes.
206-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
206+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
207207
-- meshiocubit(info)
208208
-- Component 'reader': Reading node set 'boundary_east' with id 11 containing 25 nodes.
209-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
209+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
210210
-- meshiocubit(info)
211211
-- Component 'reader': Reading node set 'boundary_north' with id 12 containing 24 nodes.
212-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
212+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
213213
-- meshiocubit(info)
214214
-- Component 'reader': Reading node set 'boundary_west' with id 13 containing 23 nodes.
215-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
215+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
216216
-- meshiocubit(info)
217217
-- Component 'reader': Reading node set 'fault_main' with id 20 containing 37 nodes.
218-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
218+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
219219
-- meshiocubit(info)
220220
-- Component 'reader': Reading node set 'fault_west' with id 21 containing 13 nodes.
221-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
221+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
222222
-- meshiocubit(info)
223223
-- Component 'reader': Reading node set 'fault_east' with id 22 containing 6 nodes.
224-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
224+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
225225
-- meshiocubit(info)
226226
-- Component 'reader': Reading node set 'fault_main_ends' with id 30 containing 2 nodes.
227-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
227+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
228228
-- meshiocubit(info)
229229
-- Component 'reader': Reading node set 'fault_west_ends' with id 31 containing 2 nodes.
230-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
230+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIOCubit.cc:296:void pylith::meshio::MeshIOCubit::_readGroups(ExodusII &)
231231
-- meshiocubit(info)
232232
-- Component 'reader': Reading node set 'fault_east_ends' with id 32 containing 2 nodes.
233-
>> /Users/baagaard/src/cig/pylith/libsrc/pylith/meshio/MeshIO.cc:85:void pylith::meshio::MeshIO::read(pylith::topology::Mesh *, const bool)
233+
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIO.cc:85:void pylith::meshio::MeshIO::read(pylith::topology::Mesh *, const bool)
234234
-- meshiocubit(info)
235235
-- Component 'reader': Domain bounding box:
236236
(410000, 490000)
237237
(3.91e+06, 3.99e+06)
238238
239239
-- many lines omitted --
240240
241-
>> /Users/baagaard/software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/problems/TimeDependent.py:132:run
241+
>> /software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/problems/TimeDependent.py:132:run
242242
-- timedependent(info)
243243
-- Solving problem.
244244
0 TS dt 0.01 time 0.
@@ -247,7 +247,7 @@ $ pylith step01_slip_cubit.cfg
247247
1 SNES Function norm 1.131725395538e-12
248248
Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
249249
1 TS dt 0.01 time 0.01
250-
>> /Users/baagaard/software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/problems/Problem.py:199:finalize
250+
>> /software/unix/py3.12-venv/pylith-debug/lib/python3.12/site-packages/pylith/problems/Problem.py:199:finalize
251251
-- timedependent(info)
252252
-- Finalizing problem.
253253
```

docs/user/examples/subduction-3d/step04-eqcycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ts_type = beuler
9191
1 SNES Function norm 4.780619312733e-10
9292
Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
9393
31 TS dt 0.1 time 3.
94-
>> /software/baagaard/py38-venv/pylith-opt/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
94+
>> /software/unix/py38-venv/pylith-opt/lib/python3.8/site-packages/pylith/problems/Problem.py:201:finalize
9595
-- timedependent(info)
9696
-- Finalizing problem.
9797
```

0 commit comments

Comments
 (0)