-
Hey all, great package! I'm trying to write a package extension for my package Exodus.jl for reading/writing exodusII FEM files. I'm trying to write a simple helper function to generate a partition from an already decomposed mesh by reading the appropriate communication maps, etc. into My question is in regard to the optional initialization parameter
I've traced this down in Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @cmhamel, I would recommend not using If you really need a completely arbitrary partition, then use Here you have an example of how to use PartitionedArrays.jl/src/p_range.jl Line 752 in 07381fd |
Beta Was this translation helpful? Give feedback.
Hi @cmhamel,
I would recommend not using
OwnAndGhostIndices
, unless really needed (arbitrary partitions). You can create a partition without ghosts withuniform_partition
orvariable_partition
, and then add ghosts with functionunion_ghost
. In this way, ghost ids are always numbered after own ids at the local level, and global ids are ordered by rank id. This is pretty much what PETSc considers, which should be enough in most of the cases.If you really need a completely arbitrary partition, then use
OwnAndGhostIndices
. If you need to automatically discover ghost ids from the global ids like inII
in your example, you need to provideglobal_to_owner
. This is a vector containing the owner …