MeshCreateTriangular2DCSR

Creates a basic two dimensional unstructured grid from an existing CSR representation.

Synopsis

#include "mesh.h" 
int MeshCreateTriangular2DCSR(MPI_Comm comm, int numNodes, int numFaces, double *nodes, int *offsets, int *adj, int *faces, Mesh *mesh)
Collective on MPI_Comm

Input Parameters

comm - The communicator that shares the grid
numNodes - The number of mesh nodes, here identical to vertices
numFaces - The number of elements in the mesh
nodes - The coordinates for each node
offsets - The offset of each node's adjacency list
adj - The adjacency list for the mesh
faces - The list of nodes for each element

Output Parameter

mesh -The mesh

Keywords

unstructured mesh

See Also

MeshCreateTriangular2D(), MeshCreateTriangular2DPeriodic()

Level:beginner
Location:
src/mesh/impls/triangular/2d/tri2d.c
Index of all Mesh routines
Table of Contents for all manual pages
Index of all manual pages