PartitionGhostNodeExchange

This functions transfers data between local and ghost storage based on the node ordering.

Synopsis

#include "mesh.h" 
int PartitionGhostNodeExchange(Partition part, InsertMode addv, ScatterMode mode, int *locVars, int *ghostVars)
Collective on Partition

Input Parameters

part - The partition
addv - The insert mode, INSERT_VALUES or ADD_VALUES
mode - The direction of the transfer, SCATTER_FORWARD or SCATTER_REVERSE

Output Paramters

locVars - The local variable array
ghostVars - The ghost variables

Note

The data in ghostVars is assumed contiguous and implicitly indexed by the order of ghostProcs and ghostIndices. The SCATTER_FORWARD mode will take the requested data from locVars and copy it to ghostVars in the order specified by ghostIndices. The SCATTER_REVERSE mode will take data from ghostVars and copy it to locVars.

Keywords

ghost, exchange, grid

See Also

GridGhostExchange(), GridGlobalToLocal(), GridLocalToGlobal()

Level:advanced
Location:
src/mesh/interface/part.c
Index of all Mesh routines
Table of Contents for all manual pages
Index of all manual pages