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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (show annotations)
Mon Oct 11 01:48:14 2010 UTC (8 years, 10 months ago) by jfenwick
File MIME type: text/plain
File size: 1781 byte(s)
Merging dudley and scons updates from branches

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Finley finite element solver */
18
19 /**************************************************************/
20
21 #include "Finley.h"
22 #include "esysUtils/error.h"
23
24 /* This function returns a time mark */
25 double Finley_timer(void) {
26 return Esys_timer();
27 }
28
29 /* This function checks if the pointer ptr has a target. If not an
30 error is raised and TRUE is returned. */
31 bool_t Finley_checkPtr(void* arg) {
32 return Esys_checkPtr(arg);
33 }
34
35 /* reset the error to NO_ERROR */
36 void Finley_resetError(void) {
37 Esys_resetError();
38 }
39
40 /* sets an error */
41 void Finley_setError(Finley_ErrorCodeType err,__const char* msg) {
42 Esys_setError(err,msg);
43 }
44
45 /* checks if there is no error */
46 bool_t Finley_noError(void) {
47 return Esys_noError();
48 }
49
50 /* return the error code */
51 Finley_ErrorCodeType Finley_getErrorType(void) {
52 return Esys_getErrorType();
53 }
54
55 /* return the error message */
56 char* Finley_getErrorMessage(void) {
57 return Esys_getErrorMessage();
58 }
59 /* return the error message */
60 void Finley_convertPasoError(void) {
61 /* nothing has to be done here */
62 }
63
64 /* checks that there is no error accross all processes in a communicator */
65 /* NOTE : does not make guarentee consistency of error string on each process */
66 bool_t Finley_MPI_noError( Esys_MPIInfo *mpi_info )
67 {
68 return Esys_MPIInfo_noError( mpi_info );
69 }
70
71

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26