Skip to content

Commit f8ffb99

Browse files
committed
patchkernel: add tracking of ghost cells during adaptation/partitioning
1 parent e1ed6c9 commit f8ffb99

File tree

5 files changed

+291
-77
lines changed

5 files changed

+291
-77
lines changed

src/patchkernel/patch_kernel.cpp

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,13 @@ std::vector<adaption::Info> PatchKernel::adaption(bool trackAdaption, bool squee
742742
track the changes that will be performed to the patch. During this phase
743743
no changes will be performed to the patch.
744744
745+
Tracking will only list changes that may data collection on the internal
746+
data structured (e.g., adaption preparation will not track adaption of
747+
ghost cells).
748+
749+
Information available for tracking purposes are the following:
750+
- internal cells that will be coarsened/refined.
751+
745752
\param trackAdaption if set to true the function will return the changes
746753
that will be performed in the alter step
747754
\result If the adaption is tracked, returns a vector of adaption::Info that
@@ -774,7 +781,17 @@ std::vector<adaption::Info> PatchKernel::adaptionPrepare(bool trackAdaption)
774781
775782
The actual modification of the patch takes place during this phase. After
776783
this phase the adaption is completed and the patch is in its final state.
777-
Optionally the patch can track the changes performed to the patch.
784+
785+
Optionally, this funciton can track the changes performed to the patch.
786+
787+
Tracking information will not contain changes that involve data collection
788+
on ghost data structured (e.g., ghost cells adaption is not tracked, only
789+
deletion and creation of ghost cells will be tracked).
790+
791+
Information available for tracking purposes are the following:
792+
- internal cells that have been coarsened/refined;
793+
- new ghost cells that have been created;
794+
- ghost cells that have been deleted.
778795
779796
\param trackAdaption if set to true the function will return the changes
780797
done to the patch during the adaption
@@ -5118,6 +5135,9 @@ std::vector<adaption::Info> PatchKernel::_spawn(bool trackSpawn)
51185135
51195136
Default implementation is a no-op function.
51205137
5138+
See PatchKernel::adaptionPrepare(bool trackPartitioning) for the
5139+
documentation about the tracking information returned by this function.
5140+
51215141
\param trackAdaption if set to true the function will return the changes
51225142
that will be performed in the alter step
51235143
\result If the adaption is tracked, returns a vector of adaption::Info that
@@ -5136,6 +5156,9 @@ std::vector<adaption::Info> PatchKernel::_adaptionPrepare(bool trackAdaption)
51365156
51375157
Default implementation is a no-op function.
51385158
5159+
See PatchKernel::adaptionAlter(bool trackPartitioning) for the
5160+
documentation about the tracking information returned by this function.
5161+
51395162
\param trackAdaption if set to true the function will return the changes
51405163
done to the patch during the adaption
51415164
\result If the adaption is tracked, returns a vector of adaption::Info

src/patchkernel/patch_kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ friend class PatchManager;
10301030

10311031
void computeCellHaloLayer(int id);
10321032

1033-
void _partitioningAlter_deleteGhosts();
1033+
std::vector<adaption::Info> _partitioningAlter_deleteGhosts(bool trackPartitioning);
10341034

10351035
std::unordered_map<long, int> _partitioningAlter_evalGhostCellOwnershipChanges();
10361036
void _partitioningAlter_applyGhostCellOwnershipChanges(int sendRank, std::unordered_map<long, int> *ghostCellOwnershipChanges);

0 commit comments

Comments
 (0)