Skip to content

Conversation

aelligp
Copy link
Member

@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