Hello Joachim,
thanks for your reply. Even though my code is a bit messy, there is already a "Norm( ... )" contained in it. From my understanding the problem arises with the PML, as this area becomes a complex domain (therefore i want to exclude it from the computation).
Please correct me if I am mistaken.
Greetings,
Philipp
Edit: I tried integrating over the "inner" (not "pml") area via
Code:
eberr2 = Integrate ( h * Norm( ... )**2*dx(element_boundary=True, definedon= mesh.Materials("inner")), mesh, element_wise=True)
but still get the error
"NgException: ComputeNormalsAndMeasure not available for complex IR".
Edit2: I found a workaround by unsetting the PML during each error estimation and reapplying it to the refined mesh, but this seems quite a bruteforce method.