ESScript
Revision_4488
Main Page
Namespaces
Classes
Files
File List
File Members
paso
src
Functions.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
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
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
17
#ifndef INC_PASO_FUNCTIONS
18
#define INC_PASO_FUNCTIONS
19
20
21
#include "
Common.h
"
22
#include "esysUtils/Esys_MPI.h"
23
#include "
performance.h
"
24
25
enum
Paso_FunctionType
{
26
LINEAR_SYSTEM
27
};
28
29
typedef
enum
Paso_FunctionType
Paso_FunctionType
;
30
31
typedef
struct
Paso_Function
{
32
Paso_FunctionType
kind
;
33
dim_t
n
;
34
Esys_MPIInfo
*
mpi_info
;
35
double
*
b
;
36
double
*
tmp
;
37
void
*
more
;
38
}
Paso_Function
;
39
40
err_t
Paso_FunctionDerivative
(
double
* J0w,
const
double
* w,
Paso_Function
* F,
const
double
*f0,
const
double
*x0,
double
* setoff,
Paso_Performance
*pp);
41
err_t
Paso_FunctionCall
(
Paso_Function
* F,
double
* value,
const
double
* arg,
Paso_Performance
*pp);
42
void
Paso_Function_free
(
Paso_Function
* F);
43
44
#endif
Generated on Fri Jun 28 2013 11:10:52 for ESScript by
1.8.1.2