Access the coordinates of an element and neighbor inside an interface kernel #21510
-
Hi there. I need to access the coordinates of the element and neighbor inside an interface kernel to compute a penalty term. This is my code:
and this is the error I get:
Can anyone help me fix this issue please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
hello You may not access _coords directly from a Node. You need to access using the () operator Guillaume |
Beta Was this translation helpful? Give feedback.
hello
You may not access _coords directly from a Node.
As you may see on the doxygen
https://libmesh.github.io/doxygen/classlibMesh_1_1Node.html
and as the compiler tells you, it's protected.
You need to access using the () operator
https://libmesh.github.io/doxygen/classlibMesh_1_1Node.html#a3568df25f9c0db5decbcaa9d42420439
Guillaume