33 #ifndef __H__UG_replace_coordinate
34 #define __H__UG_replace_coordinate
63 UG_LOG(
"WARNING: Target attachment not found in PartitionPreProcessor "
64 "PPP_ReplaceCoordinate");
69 UG_LOG(
"WARNING: Attachment 'aNewCoord' not found in PartitionPreProcessor "
70 "PPP_ReplaceCoordinate");
75 "VertexAttachment missing: aNewCoord");
93 || (positions.size() != newCoords.size()),
94 "Attachment containers have incompatible sizes");
96 for(
size_t i = 0; i < positions.size(); ++i){
107 UG_LOG(
"WARNING: Target attachment not found in PartitionPreProcessor "
108 "PPP_ReplaceCoordinate");
113 UG_LOG(
"WARNING: Attachment 'aOrigCoord' not found in PartitionPreProcessor "
114 "PPP_ReplaceCoordinate");
125 "Attachment containers have incompatible sizes");
127 for(
size_t i = 0; i < positions.size(); ++i){
TAttachment::ContainerType ContainerType
Definition: attachment_pipe.h:515
A generic specialization of IAttachedDataContainer.
Definition: attachment_pipe.h:135
void detach_from_vertices(IAttachment &attachment)
Definition: grid.h:787
bool has_vertex_attachment(IAttachment &attachment)
Definition: grid.h:798
void attach_to_vertices(IAttachment &attachment, bool passOnValues)
Definition: grid.h:728
TAttachment::ContainerType * get_attachment_data_container(TAttachment &attachment)
Definition: grid_impl.hpp:399
allows to pre-process data before partitioning starts
Definition: partitioner.h:119
Partitioners can be used inside a LoadBalancer or separately to create partition maps.
Definition: partitioner.h:162
Definition: multi_grid.h:72
Temporarily replaces the specified coordinate in the given position attachment.
Definition: replace_coordinate.h:46
Grid::VertexAttachmentAccessor< apos_t > aapos_t
Definition: replace_coordinate.h:50
Attachment< vector_t > apos_t
Definition: replace_coordinate.h:49
virtual void partitioning_starts(MultiGrid *mg, IPartitioner *partitioner)
Definition: replace_coordinate.h:59
apos_t m_aPos
Definition: replace_coordinate.h:135
int m_newCoordIndex
Definition: replace_coordinate.h:138
MathVector< dim > vector_t
Definition: replace_coordinate.h:48
ANumber m_aNewCoord
Definition: replace_coordinate.h:136
ANumber m_aOrigCoord
Definition: replace_coordinate.h:137
virtual void partitioning_done(MultiGrid *mg, IPartitioner *partitioner)
Definition: replace_coordinate.h:103
PPP_ReplaceCoordinate(apos_t aPos, ANumber aNewCoord, int newCoordIndex)
Definition: replace_coordinate.h:52
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
#define UG_LOG(msg)
Definition: log.h:367
#define UG_COND_THROW(cond, msg)
UG_COND_THROW(cond, msg) : performs a UG_THROW(msg) if cond == true.
Definition: error.h:61