Skip to content

Prevent negative adiabatic pT conditions in a benchmark#6798

Merged
tjhei merged 1 commit intogeodynamics:mainfrom
gassmoeller:fix_devel_tester
Nov 29, 2025
Merged

Prevent negative adiabatic pT conditions in a benchmark#6798
tjhei merged 1 commit intogeodynamics:mainfrom
gassmoeller:fix_devel_tester

Conversation

@gassmoeller
Copy link
Member

For the last few days we had failures of the deal.II development tester in the test sol_cx_particles like here: https://github.com/geodynamics/aspect/actions/runs/19635945253/job/56226561004?pr=6795#step:6:2028

The failure seems unrelated to any code change in either deal.II or ASPECT and at first I was a bit stumped as to what is happening. But looking at the benchmark I realize why this setup is a bit problematic. The adiabatic conditions start from p=0 and T=0. Density in parts of this benchmark is negative (or 0) and gravity is 1. Therefore the adiabatic reference profile contains negative pressures, which triggers the assert. Why this was not a problem in the past I cannot explain. We can argue if the assert is too sensitive (negative pressures in benchmark solutions are not impossible), but an easier fix is to change the start point of the reference profile. Since the profile is not used in this benchmark nothing will change.

I also have no clue why this is a problem for the particle test, but not the corresponding model with compositional fields, I can only guess that it is due to FP rounding errors.

Anyway, this should fix the confusing test failures.

@tjhei tjhei merged commit 201c063 into geodynamics:main Nov 29, 2025
9 checks passed
@gassmoeller gassmoeller deleted the fix_devel_tester branch December 1, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants