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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5984 - (hide annotations)
Fri Feb 26 02:00:45 2016 UTC (3 years, 11 months ago) by caltinay
File MIME type: text/plain
File size: 1966 byte(s)
Added IOError. Also started replacing some 'setError()' calls by exception
throws as the latest test failures are bogus because an error was set but
never checked for.

1 jgs 82
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 5863 * Copyright (c) 2003-2016 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
7     * Primary Business: Queensland, Australia
8     * Licensed under the Open Software License version 3.0
9     * http://www.opensource.org/licenses/osl-3.0.php
10     *
11 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * Development 2012-2013 by School of Earth Sciences
13     * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 *
15     *****************************************************************************/
16 ksteube 1312
17 caltinay 4496 #ifndef __FINLEY_H__
18     #define __FINLEY_H__
19 ksteube 1811
20 caltinay 4496 /****************************************************************************
21 jgs 82
22 caltinay 4496 Finley finite element solver
23 jgs 82
24 caltinay 4496 *****************************************************************************/
25 jgs 82
26 caltinay 5984 #include <finley/FinleyException.h>
27    
28 jfenwick 3259 #include "esysUtils/Esys_MPI.h"
29     #include "esysUtils/error.h"
30 jgs 82
31 caltinay 5946 #include <escript/DataTypes.h>
32    
33 caltinay 4499 #include <vector>
34    
35 caltinay 4496 namespace finley {
36    
37 caltinay 5948 using escript::DataTypes::dim_t;
38     using escript::DataTypes::index_t;
39 caltinay 5950 // real_t clashes with metis real_t !
40     //using escript::DataTypes::real_t;
41 caltinay 5946
42 caltinay 4496 //#define Finley_TRACE
43 jgs 153 #define FINLEY_UNKNOWN -1
44 jgs 82 #define FINLEY_DEGREES_OF_FREEDOM 1
45     #define FINLEY_NODES 3
46     #define FINLEY_ELEMENTS 4
47     #define FINLEY_FACE_ELEMENTS 5
48     #define FINLEY_POINTS 6
49     #define FINLEY_CONTACT_ELEMENTS_1 7
50     #define FINLEY_CONTACT_ELEMENTS_2 8
51 gross 1062 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
52     #define FINLEY_REDUCED_NODES 14
53 gross 776 #define FINLEY_REDUCED_ELEMENTS 10
54     #define FINLEY_REDUCED_FACE_ELEMENTS 11
55     #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
56     #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
57 jgs 82
58 gross 776 #define FINLEY_INITIAL_STATUS 0
59    
60 caltinay 4496 typedef Esys_ErrorCodeType ErrorCodeType;
61 jgs 82
62 caltinay 4496 double timer();
63     void resetError();
64     void setError(ErrorCodeType err, const char* msg);
65     bool noError();
66     char* getErrorMessage();
67     void checkFinleyError();
68 jfenwick 4934 bool MPI_noError(esysUtils::JMPI& mpi_info);
69 jgs 82
70 caltinay 4496 } // namespace finley
71 jgs 150
72 caltinay 4496 #endif // __FINLEY_H__
73 jgs 82

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26