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

Contents of /trunk/finley/src/Finley.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1062 - (show annotations)
Mon Mar 26 06:17:53 2007 UTC (12 years, 6 months ago) by gross
File MIME type: text/plain
File size: 2331 byte(s)
reduced integration schemes are implemented now for grad, integrate, etc. Tests still to be added.
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
29 /**************************************************************/
30 /*#define Finley_TRACE */
31 #define FINLEY_UNKNOWN -1
32 #define FINLEY_UNPREPARED -3
33 #define FINLEY_PREPARED -2
34 #define FINLEY_DEGREES_OF_FREEDOM 1
35 #define FINLEY_NODES 3
36 #define FINLEY_ELEMENTS 4
37 #define FINLEY_FACE_ELEMENTS 5
38 #define FINLEY_POINTS 6
39 #define FINLEY_CONTACT_ELEMENTS_1 7
40 #define FINLEY_CONTACT_ELEMENTS_2 8
41 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
42 #define FINLEY_REDUCED_NODES 14
43 #define FINLEY_REDUCED_ELEMENTS 10
44 #define FINLEY_REDUCED_FACE_ELEMENTS 11
45 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
46 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
47
48 /* status stuff */
49 typedef int Finley_Status_t;
50 #define Finley_increaseStatus(self) ((self)->status)++
51 #define FINLEY_INITIAL_STATUS 0
52
53 #ifdef PASO_MPI
54 #define FINLEY_INIT_ITEMSIZE (sizeof(double)*8)
55 #define FINLEY_NODE_TAG 0;
56 #define FINLEY_ELEMENT_TAG 10000;
57 extern int __g_nodeTag;
58 extern int __g_elementTag;
59 #endif
60
61 /* error codes */
62
63
64 typedef Paso_ErrorCodeType Finley_ErrorCodeType;
65
66 /* interfaces */
67
68 double Finley_timer(void);
69 bool_t Finley_checkPtr(void*);
70 void Finley_resetError(void);
71 void Finley_setError(Finley_ErrorCodeType err,char* msg);
72 bool_t Finley_noError(void);
73 Finley_ErrorCodeType Finley_getErrorType(void);
74 char* Finley_getErrorMessage(void);
75 void Finley_convertPasoError(void);
76
77 #ifdef PASO_MPI
78 bool_t Finley_MPI_noError( Paso_MPIInfo *mpi_info );
79 #endif
80
81 #endif /* #ifndef INC_FINLEY */
82

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26