Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI fix of temperature computation #150

Merged
merged 3 commits into from
Nov 12, 2024
Merged

MPI fix of temperature computation #150

merged 3 commits into from
Nov 12, 2024

Conversation

aelligp
Copy link
Collaborator

@aelligp aelligp commented Nov 11, 2024

This fixes an issue with MPI setups that was noticed when building a subducting slab setup on multiple processors.

The issue arose because the code was trying to compute the temperature at the processor boundary and failed as it returned an empty vector. This occurs when a geometry object was set with add_box! or add_sphere, but the coordinates of the object were completely outside the range of the current box.

Previous setup on 1 MPi rank:
Screenshot 2024-11-11 at 17 49 19

and with 2 ranks
Screenshot 2024-11-11 at 16 43 08

and with the fix in this PR:
Screenshot 2024-11-11 at 17 50 40

Copy link
Member

@albert-de-montserrat albert-de-montserrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Giga schon thanks!

@aelligp aelligp merged commit 6a7fb8c into main Nov 12, 2024
37 checks passed
@aelligp aelligp deleted the pa-mpi_fix branch November 12, 2024 14:16
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