petsc-3.10.5 2019-03-28
Report Typos and Errors

PCSetCoordinates

sets the coordinates of all the nodes on the local process

Synopsis

#include "petscksp.h" 
PetscErrorCode PCSetCoordinates(PC pc, PetscInt dim, PetscInt nloc, PetscReal *coords)
Collective on PC

Input Parameters

pc - the solver context
dim - the dimension of the coordinates 1, 2, or 3
coords - the coordinates

Notes

coords is an array of the 3D coordinates for the nodes on the local processor. So if there are 108 equation on a processor for a displacement finite element discretization of elasticity (so that there are 36 = 108/3 nodes) then the array must have 108 double precision values (ie, 3 * 36). These x y z coordinates should be ordered for nodes 0 to N-1 like so: [ 0.x, 0.y, 0.z, 1.x, ... , N-1.z ].

See Also

MatSetNearNullSpace()

Level

intermediate

Location

src/ksp/pc/interface/precon.c

Examples

src/ksp/ksp/examples/tutorials/ex54.c.html
src/ksp/ksp/examples/tutorials/ex55.c.html
src/ksp/ksp/examples/tutorials/ex56.c.html

Implementations

PCSetCoordinates_BDDC in src/ksp/pc/impls/bddc/bddc.c
PCSetCoordinates_AGG in src/ksp/pc/impls/gamg/agg.c
PCSetCoordinates_GEO in src/ksp/pc/impls/gamg/geo.c
PCSetCoordinates_HYPRE in src/ksp/pc/impls/hypre/hypre.c
PCSetCoordinates_ML in src/ksp/pc/impls/ml/ml.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages