~ubuntu-branches/ubuntu/warty/petsc/warty

« back to all changes in this revision

Viewing changes to src/mesh/examples/tutorials/unstructured_2d.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2004-06-07 13:41:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040607134143-92p586zrauvie0le
Tags: 2.2.0-2
* Upstream patch level 2.
* New PETSC_BOPT_EXTRA option for different BOPT and lib names, with _c++
  symlinks only for plain and single (closes: #249617).
* New DEBIAN_DIST=contrib option to link with hypre, parmetis (closes:
  #249619).
* Combined petsc-c and petsc-fortran substvars into petsc-compilers.
* Extra quote in -dev prerm eliminates "too many arguments" problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: unstructured_2d.h,v 1.2 2000/02/01 17:02:52 knepley Exp $ */
2
 
 
3
 
/* Main include file for the Stokes flow test problem */
4
 
 
5
 
#ifndef __UNSTRUCTURED_2D_H
6
 
#define __UNSTRUCTURED_2D_H
7
 
 
8
 
#include "mesh.h"
9
 
 
10
 
struct _MeshContext {
11
 
  PETSCHEADER(int)
12
 
  Mesh                mesh;          /* The problem mesh */
13
 
 
14
 
  int                 numLocalNodes; /* The number of nodes on an element */
15
 
  MeshBoundary2D      boundaryCtx;   /* Describes the domain boundary */
16
 
  MeshGeometryContext geometryCtx;   /* Describes the domain geometry */
17
 
 
18
 
  int                 numRefine;     /* The number of refinement steps */
19
 
  int                 numCoarsen;    /* The number of coarsening steps */
20
 
};
21
 
typedef struct _MeshContext *MeshContext;
22
 
 
23
 
/* Creation functions */
24
 
extern int MeshContextCreate(MPI_Comm, MeshContext *);
25
 
extern int MeshContextDestroy(MeshContext);
26
 
 
27
 
/* Setup functions */
28
 
extern int MeshContextSetup(MeshContext);
29
 
extern int MeshContextCleanup(MeshContext);
30
 
extern int MeshContextCreateMesh(MeshContext);
31
 
extern int MeshContextRefineMesh(MeshContext);
32
 
extern int MeshContextCoarsenMesh(MeshContext);
33
 
extern int MeshContextDestroyMesh(MeshContext);
34
 
 
35
 
/* Checking functions */
36
 
 
37
 
/* Callback functions */
38
 
 
39
 
/* Main computation */
40
 
extern int MeshContextRun(MeshContext);
41
 
 
42
 
#endif /* __UNSTRUCTURED_2D_H */