MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
intg.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/utils/intg.h,v 1.11 2017/01/12 15:10:27 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  *
10  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
11  * via La Masa, 34 - 20156 Milano, Italy
12  * http://www.aero.polimi.it
13  *
14  * Changing this copyright notice is forbidden.
15  *
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation (version 2 of the License).
19  *
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program; if not, write to the Free Software
28  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29  */
30 
31 #ifndef INTG_H
32 #define INTG_H
33 
34 #include <iostream>
35 
36 typedef int (pread_f)(void**, const char*);
37 typedef std::ostream& (phelp_f)(void *, std::ostream&);
38 typedef int (pinit_f)(void*, VectorHandler&);
39 typedef int (psize_f)(void*);
40 typedef int (pgrad_f)(void*, MatrixHandler&, const VectorHandler&, const doublereal&);
41 typedef int (pfunc_f)(void*, VectorHandler&, const VectorHandler&, const doublereal&);
42 typedef std::ostream& (pout_f)(void*, std::ostream&, const VectorHandler&, const VectorHandler&);
43 typedef int (pdestroy_f)(void**);
44 
45 struct funcs {
46  pread_f *read;
47  phelp_f *help;
48  pinit_f *init;
49  psize_f *size;
50  pgrad_f *grad;
51  pfunc_f *func;
52  pout_f *out;
54 };
55 
56 #endif // INTG_H
57 
pinit_f * init
Definition: dae-intg.h:53
pdestroy_f * destroy
Definition: dae-intg.h:58
int( pfunc_f)(void *, VectorHandler &, const VectorHandler &, const doublereal &)
Definition: intg.h:41
pfunc_f * func
Definition: dae-intg.h:56
phelp_f * help
Definition: dae-intg.h:52
psize_f * size
Definition: dae-intg.h:54
int( pgrad_f)(void *, MatrixHandler &, const VectorHandler &, const doublereal &)
Definition: intg.h:40
int( pinit_f)(void *, VectorHandler &)
Definition: intg.h:38
int( pread_f)(void **, const char *)
Definition: intg.h:36
pread_f * read
Definition: dae-intg.h:51
pout_f * out
Definition: dae-intg.h:57
int( pdestroy_f)(void **)
Definition: intg.h:43
int( psize_f)(void *)
Definition: intg.h:39
double doublereal
Definition: colamd.c:52
Definition: dae-intg.h:50
std::ostream &( phelp_f)(void *, std::ostream &)
Definition: intg.h:37
pgrad_f * grad
Definition: dae-intg.h:55
std::ostream &( pout_f)(void *, std::ostream &, const VectorHandler &, const VectorHandler &)
Definition: intg.h:42