2
/*******************************************************
4
* Copyright (c) 2003-2010 by University of Queensland
5
* Earth Systems Science Computational Center (ESSCC)
6
* http://www.uq.edu.au/esscc
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
12
*******************************************************/
14
/**************************************************************/
16
/* Dudley finite element solver */
18
/**************************************************************/
22
/* This function returns a time mark */
23
double Dudley_timer(void)
28
/* This function checks if the pointer ptr has a target. If not an
29
error is raised and TRUE is returned. */
30
bool_t Dudley_checkPtr(void *arg)
32
return Esys_checkPtr(arg);
35
/* reset the error to NO_ERROR */
36
void Dudley_resetError(void)
42
void Dudley_setError(Dudley_ErrorCodeType err, __const char *msg)
44
Esys_setError(err, msg);
47
/* checks if there is no error */
48
bool_t Dudley_noError(void)
50
return Esys_noError();
53
/* return the error code */
54
Dudley_ErrorCodeType Dudley_getErrorType(void)
56
return Esys_getErrorType();
59
/* return the error message */
60
char *Dudley_getErrorMessage(void)
62
return Esys_getErrorMessage();
65
/* return the error message */
66
void Dudley_convertPasoError(void)
68
/* nothing has to be done here */
71
/* checks that there is no error accross all processes in a communicator */
72
/* NOTE : does not make guarentee consistency of error string on each process */
73
bool_t Dudley_MPI_noError(Esys_MPIInfo * mpi_info)
75
return Esys_MPIInfo_noError(mpi_info);