Looking through the test_rayleigh.py code, one thing springs to mind:
R is computed as R = assemble_scalar(form(numerator)) / assemble_scalar(form(denominator))
However, this is not going to be consistent in parallel, as you would need something along the lines of
Ref: https://github.com/openjournals/joss-reviews/issues/6897
Looking through the
test_rayleigh.py
code, one thing springs to mind:R
is computed asR = assemble_scalar(form(numerator)) / assemble_scalar(form(denominator))
However, this is not going to be consistent in parallel, as you would need something along the lines of
and then the aforementioned call would be
R= parallel_assemble_scalar(numerator)/parallel_assemble_scalar(denominator)