Skip to content

Trying to find local TDof number of Global TDof #3013

Answered by v-dobrev
JacobLotz asked this question in Q&A
Discussion options

You must be logged in to vote

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: my_global_tdof_offset + ParFiniteElementSpace::GetTrueVSize() - 1.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JacobLotz
Comment options

JacobLotz May 18, 2022
Collaborator Author

Answer selected by JacobLotz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants