/[escript]/trunk-mpi-branch/finley/src/Finley.h
ViewVC logotype

Contents of /trunk-mpi-branch/finley/src/Finley.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1011 - (show annotations)
Tue Mar 6 04:41:55 2007 UTC (13 years, 3 months ago) by gross
File MIME type: text/plain
File size: 2360 byte(s)
it seems to compile now but linking is still not working
1 /*
2 ************************************************************
3 * Copyright 2006 by ACcESS MNRF *
4 * *
5 * http://www.access.edu.au *
6 * Primary Business: Queensland, Australia *
7 * Licensed under the Open Software License version 3.0 *
8 * http://www.opensource.org/licenses/osl-3.0.php *
9 * *
10 ************************************************************
11 */
12
13
14 #ifndef INC_FINLEY
15 #define INC_FINLEY
16
17 /**************************************************************/
18
19 /* Finley finite element solver */
20
21 /**************************************************************/
22
23 /* Version: $Id$ */
24
25 /**************************************************************/
26
27 #include "paso/Paso.h"
28 #include "paso/Paso_MPI.h"
29
30 /**************************************************************/
31 /*#define Finley_TRACE */
32 #define FINLEY_UNKNOWN -1
33 #define FINLEY_UNPREPARED -3
34 #define FINLEY_PREPARED -2
35 #define FINLEY_DEGREES_OF_FREEDOM 1
36 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
37 #define FINLEY_NODES 3
38 #define FINLEY_ELEMENTS 4
39 #define FINLEY_FACE_ELEMENTS 5
40 #define FINLEY_POINTS 6
41 #define FINLEY_CONTACT_ELEMENTS_1 7
42 #define FINLEY_CONTACT_ELEMENTS_2 8
43 /* these are not used yet */
44 #define FINLEY_REDUCED_NODES 9
45 #define FINLEY_REDUCED_ELEMENTS 10
46 #define FINLEY_REDUCED_FACE_ELEMENTS 11
47 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
48 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
49
50 /* status stuff */
51 typedef int Finley_Status_t;
52 #define Finley_increaseStatus(self) ((self)->status)++
53 #define FINLEY_INITIAL_STATUS 0
54
55 #ifdef PASO_MPI
56 #define FINLEY_INIT_ITEMSIZE (sizeof(double)*8)
57 #define FINLEY_NODE_TAG 0
58 #define FINLEY_ELEMENT_TAG 10000
59 extern int __g_nodeTag;
60 extern int __g_elementTag;
61 #endif
62
63 /* error codes */
64
65
66 typedef Paso_ErrorCodeType Finley_ErrorCodeType;
67
68 /* interfaces */
69
70 double Finley_timer(void);
71 bool_t Finley_checkPtr(void*);
72 void Finley_resetError(void);
73 void Finley_setError(Finley_ErrorCodeType err,char* msg);
74 bool_t Finley_noError(void);
75 Finley_ErrorCodeType Finley_getErrorType(void);
76 char* Finley_getErrorMessage(void);
77 void Finley_convertPasoError(void);
78 bool_t Finley_MPI_noError( Paso_MPIInfo *mpi_info );
79
80 #endif /* #ifndef INC_FINLEY */
81

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26