PRAgMaTIc  master
pragmatic.h
Go to the documentation of this file.
1 /* Copyright (C) 2010 Imperial College London and others.
2  *
3  * Please see the AUTHORS file in the main source directory for a
4  * full list of copyright holders.
5  *
6  * Gerard Gorman
7  * Applied Modelling and Computation Group
8  * Department of Earth Science and Engineering
9  * Imperial College London
10  *
11  * g.gorman@imperial.ac.uk
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  * 1. Redistributions of source code must retain the above copyright
17  * notice, this list of conditions and the following disclaimer.
18  * 2. Redistributions in binary form must reproduce the above
19  * copyright notice, this list of conditions and the following
20  * disclaimer in the documentation and/or other materials provided
21  * with the distribution.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
24  * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
25  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
28  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
30  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
32  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
33  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
34  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35  * SUCH DAMAGE.
36  */
37 
58 extern "C" {
59  void pragmatic_2d_begin(const int *NNodes, const int *NElements, const int *enlist, const double *x, const double *y);
60  void pragmatic_3d_begin(const int *NNodes, const int *NElements, const int *enlist, const double *x, const double *y, const double *z);
61  void pragmatic_vtk_begin(const char *filename);
62  void pragmatic_add_field(const double *psi, const double *error);
63  void pragmatic_set_metric(const double *metric, const double *min_length, const double *max_length);
64  void pragmatic_adapt();
65  void pragmatic_get_info(int *NNodes, int *NElements, int *NSElements);
66  void pragmatic_get_coords_2d(double *x, double *y);
67  void pragmatic_get_coords_3d(double *x, double *y, double *z);
68  void pragmatic_get_elements(int *elements);
69  void pragmatic_get_facets(int *facets);
70  void pragmatic_get_lnn2gnn(int *nodes_per_partition, int *lnn2gnn);
71  void pragmatic_get_metric(double *metric);
72  void pragmatic_dump(const char *filename);
73  void pragmatic_end();
74 }
void pragmatic_get_coords_2d(double *x, double *y)
Definition: cpragmatic.cpp:268
void pragmatic_adapt()
Definition: cpragmatic.cpp:190
void pragmatic_dump(const char *filename)
Definition: cpragmatic.cpp:53
void pragmatic_set_metric(const double *metric, const double *min_length, const double *max_length)
void pragmatic_end()
void pragmatic_get_coords_3d(double *x, double *y, double *z)
Definition: cpragmatic.cpp:276
void pragmatic_3d_begin(const int *NNodes, const int *NElements, const int *enlist, const double *x, const double *y, const double *z)
void pragmatic_vtk_begin(const char *filename)
void pragmatic_get_metric(double *metric)
Definition: cpragmatic.cpp:312
void pragmatic_get_lnn2gnn(int *nodes_per_partition, int *lnn2gnn)
void pragmatic_get_elements(int *elements)
Definition: cpragmatic.cpp:285
void pragmatic_get_facets(int *facets)
void pragmatic_get_info(int *NNodes, int *NElements, int *NSElements)
void pragmatic_2d_begin(const int *NNodes, const int *NElements, const int *enlist, const double *x, const double *y)
void pragmatic_add_field(const double *psi, const double *error)