precice / micro-manager

A manager tool to facilitate two-scale coupling in multi-physics simulations using preCICE.
GNU Lesser General Public License v3.0
16 stars 11 forks source link

Use absolute values to calculate normalizing factor for relative norms in adaptivity #125

Closed IshaanDesai closed 3 months ago

IshaanDesai commented 3 months ago

As the title states, absolute values of quantities need to be compared while picking the maximum value from a pair of values, to use as the normalizing factor for relative norms in the adaptivity computation. This is important when two negative values, or a negative value and a zero value are being compared in the adaptivity computation. @mathiskelm pointed this out.

Checklist: