/[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 1223 - (show annotations)
Fri Aug 3 02:40:39 2007 UTC (12 years, 10 months ago) by gross
File MIME type: text/plain
File size: 2149 byte(s)
first attemt towards an improved MPI version.  

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_NODES 3
37 #define FINLEY_ELEMENTS 4
38 #define FINLEY_FACE_ELEMENTS 5
39 #define FINLEY_POINTS 6
40 #define FINLEY_CONTACT_ELEMENTS_1 7
41 #define FINLEY_CONTACT_ELEMENTS_2 8
42 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
43 #define FINLEY_REDUCED_NODES 14
44 #define FINLEY_REDUCED_ELEMENTS 10
45 #define FINLEY_REDUCED_FACE_ELEMENTS 11
46 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
47 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
48
49 /* status stuff */
50 typedef int Finley_Status_t;
51 #define Finley_increaseStatus(self) ((self)->status)++
52 #define FINLEY_INITIAL_STATUS 0
53
54 /* error codes */
55
56
57 typedef Paso_ErrorCodeType Finley_ErrorCodeType;
58
59 /* interfaces */
60
61 double Finley_timer(void);
62 bool_t Finley_checkPtr(void*);
63 void Finley_resetError(void);
64 void Finley_setError(Finley_ErrorCodeType err,char* msg);
65 bool_t Finley_noError(void);
66 Finley_ErrorCodeType Finley_getErrorType(void);
67 char* Finley_getErrorMessage(void);
68 void Finley_convertPasoError(void);
69 bool_t Finley_MPI_noError( Paso_MPIInfo *mpi_info );
70
71 #endif /* #ifndef INC_FINLEY */
72

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26