Adaptivity
GridapDistributed.RedistributeGlue
— TypeRedistributeGlue
Glue linking two distributions of the same mesh.
new_parts
: Array with the new part IDs (and comms)old_parts
: Array with the old part IDs (and comms)parts_rcv
: Array with the part IDs from which each part receivesparts_snd
: Array with the part IDs to which each part sendslids_rcv
: Local IDs of the entries that are received from each partlids_snd
: Local IDs of the entries that are sent to each partold2new
: Mapping of local IDs from the old to the new meshnew2old
: Mapping of local IDs from the new to the old mesh
GridapDistributed.redistribute
— MethodRedistributes an DistributedDiscreteModel to optimally rebalance the loads between the processors. Returns the rebalanced model and a RedistributeGlue instance.
GridapDistributed.redistribute_cartesian
— Methodredistribute_cartesian(old_model,new_ranks,new_parts)
-redistribute_cartesian(old_model,pdesc::DistributedCartesianDescriptor)
Redistributes a DistributedCartesianDiscreteModel to a new set of ranks and parts. Only redistributes into a superset of the old_model ranks (i.e. towards more processors).
GridapDistributed.refine_cell_gids
— Methodrefine_cell_gids(
+Adaptivity · GridapDistributed.jl Adaptivity
GridapDistributed.RedistributeGlue
— TypeRedistributeGlue
Glue linking two distributions of the same mesh.
new_parts
: Array with the new part IDs (and comms)old_parts
: Array with the old part IDs (and comms)parts_rcv
: Array with the part IDs from which each part receivesparts_snd
: Array with the part IDs to which each part sendslids_rcv
: Local IDs of the entries that are received from each partlids_snd
: Local IDs of the entries that are sent to each partold2new
: Mapping of local IDs from the old to the new meshnew2old
: Mapping of local IDs from the new to the old mesh
sourceGridapDistributed.redistribute
— MethodRedistributes an DistributedDiscreteModel to optimally rebalance the loads between the processors. Returns the rebalanced model and a RedistributeGlue instance.
sourceGridapDistributed.redistribute_cartesian
— Methodredistribute_cartesian(old_model,new_ranks,new_parts)
+redistribute_cartesian(old_model,pdesc::DistributedCartesianDescriptor)
Redistributes a DistributedCartesianDiscreteModel to a new set of ranks and parts. Only redistributes into a superset of the old_model ranks (i.e. towards more processors).
sourceGridapDistributed.refine_cell_gids
— Methodrefine_cell_gids(
cmodel::DistributedDiscreteModel{Dc},
fmodels::AbstractArray{<:DiscreteModel{Dc}}
-) where Dc
Given a coarse model and it's local refined models, returns the gids of the fine model. The gids are computed as follows:
- First, we create a global numbering for the owned cells by adding an owner-based offset to the local cell ids (such that cells belonging to the first processor are numbered first). This is quite standard.
- The complicated part is making this numeration consistent, i.e communicating gids of the ghost cells. To do so, each processor selects it's ghost fine cells, and requests their global ids by sending two keys:
- The global id of the coarse parent
- The child id of the fine cell
sourceGridapDistributed.refine_local_models
— Methodrefine_local_models(cmodel::DistributedDiscreteModel{Dc},args...;kwargs...) where Dc
Given a coarse model, returns the locally refined models. This is done by
- refining the local models serially
- filtering out the extra fine layers of ghosts
We also return the ids of the owned fine cells.
To find the fine cells we want to keep, we have the following criteria:
- Given a fine cell, it is owned iff A) It's parent cell is owned
- Given a fine cell, it is a ghost iff not(A) and B) It has at least one neighbor with a non-ghost parent
Instead of checking A and B, we do the following:
- We mark fine owned cells by checking A
- If a cell is owned, we set it's fine neighbors as owned or ghost
sourceSettings
This document was generated with Documenter.jl version 1.8.0 on Thursday 14 November 2024. Using Julia version 1.8.5.
+) where Dc
Given a coarse model and it's local refined models, returns the gids of the fine model. The gids are computed as follows:
- First, we create a global numbering for the owned cells by adding an owner-based offset to the local cell ids (such that cells belonging to the first processor are numbered first). This is quite standard.
- The complicated part is making this numeration consistent, i.e communicating gids of the ghost cells. To do so, each processor selects it's ghost fine cells, and requests their global ids by sending two keys:
- The global id of the coarse parent
- The child id of the fine cell
GridapDistributed.refine_local_models
— Methodrefine_local_models(cmodel::DistributedDiscreteModel{Dc},args...;kwargs...) where Dc
Given a coarse model, returns the locally refined models. This is done by
- refining the local models serially
- filtering out the extra fine layers of ghosts
We also return the ids of the owned fine cells.
To find the fine cells we want to keep, we have the following criteria:
- Given a fine cell, it is owned iff A) It's parent cell is owned
- Given a fine cell, it is a ghost iff not(A) and B) It has at least one neighbor with a non-ghost parent
Instead of checking A and B, we do the following:
- We mark fine owned cells by checking A
- If a cell is owned, we set it's fine neighbors as owned or ghost