awslabs / palace

3D finite element solver for computational electromagnetics
https://awslabs.github.io/palace/dev
Apache License 2.0
224 stars 50 forks source link

Fix global synchronization bug for optional material properties #201

Closed sebastiangrimberg closed 4 months ago

sebastiangrimberg commented 4 months ago

Methods like MaterialOperator::HasLossTangent are expected to return a value which is consistent globally. This is not the case currently, as material properties are parsed only with respect to local subdomains. This PR fixes this issue and potential hangs for large processor counts or small domains of nonzero loss tangent or conductivity.