-
I am trying to find the local TDof number of a global Tdof. If I know the global Dof I can get the local TDof number using: However, in order to do this, I first have to find the global Dof. I have the idea that I can do this using Does anyone have suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can check the global tdof index against the global tdof offset for the current rank which you can get from the method HYPRE_BigInt ParFiniteElementSpace::GetMyTDofOffset() const; Basically the global tdof index is the sum of the global tdof offset plus the local tdof index. The last global tdof index on the current rank is: |
Beta Was this translation helpful? Give feedback.
You can check the global tdof index against the global tdof offset for the current rank which you can get from the method
Basically the global tdof index is the sum of the global tdof offset plus the local tdof index. The last global tdof index on the current rank is:
my_global_tdof_offset + ParFiniteElementSpace::GetTrueVSize() - 1
.