source: trunk/ADOL-C/src/usrparms.h @ 173

Last change on this file since 173 was 173, checked in by awalther, 9 years ago

new get_HP in sparsedrivers.cpp

  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
3 File:     usrparms.h
4 Revision: $Id: usrparms.h 173 2010-10-06 13:48:23Z awalther $
5 Contents: User parameters:
6           These parameters might affect the performance of the ADOL-C
7           system; they are intended to be tweeked by users and local
8           maintainence personal.
9 
10 Copyright (c) Andrea Walther, Andreas Griewank, Andreas Kowarz,
11               Hristo Mitev, Sebastian Schlenkrich, Jean Utke, Olaf Vogel
12 
13 This file is part of ADOL-C. This software is provided as open source.
14 Any use, reproduction, or distribution of the software constitutes
15 recipient's acceptance of the terms of the accompanying license file.
16                           
17----------------------------------------------------------------------------*/
18
19#if !defined(ADOLC_USRPARMS_H)
20#define ADOLC_USRPARMS_H 1
21
22/*--------------------------------------------------------------------------*/
23/* Buffer sizes */
24#define OBUFSIZE  80000000 /* 16384 or  524288  */
25#define LBUFSIZE  80000000 /* 16384 or  524288  */
26#define VBUFSIZE  80000000 /* 16384 or  524288  */
27
28/*--------------------------------------------------------------------------*/
29/* Buffer size for temporary Taylor store */
30#define TBUFSIZE  65536 /* 16384 or  524288  */
31
32/*--------------------------------------------------------------------------*/
33/* Number of temporary Taylor stores*/
34#define TBUFNUM    32
35
36/*--------------------------------------------------------------------------*/
37/* ADOL-C data types */
38#define locint     unsigned int                /* ensure locint is unsigned */
39#define revreal    double
40
41/*--------------------------------------------------------------------------*/
42/* Data types used by Fortran callable versions of functions */
43#define fint       long
44#define fdouble    double
45
46/*--------------------------------------------------------------------------*/
47/* Definionion of inf and NaN */
48#define inf_num    1.0     /* don't undefine these;  on non-IEEE machines */
49#define inf_den    0.0     /* change the values to get small fractions    */
50#define non_num    0.0     /* (inf_num/inf_den) and (non_num/non_den)     */
51#define non_den    0.0     /* respectively, see the documentation         */
52#define ADOLC_EPS  10E-20  /* for test on zero                            */
53
54/*--------------------------------------------------------------------------*/
55/* Enable/disable asinh, acosh,atanh, erf */
56#undef ATRIG_ERF
57/* #define ATRIG_ERF 1 */
58
59/****************************************************************************/
60/* Standard output used for diagnostics by ADOL-C,                          */
61/* e.g. stdout or stderr or whatever file identifier                        */
62#define DIAG_OUT stderr
63
64/*--------------------------------------------------------------------------*/
65/* Use 'calloc' instead of 'malloc' in ADOL-C allocation routines. If you   */
66/* have any trouble with uninitialized memory, then define ADOLC_USE_CALLOC.*/
67#define ADOLC_USE_CALLOC 1
68
69/*--------------------------------------------------------------------------*/
70/* Constants used by the checkpointing part (revolve) */
71#define ADOLC_CHECKUP 1000
72#define ADOLC_REPSUP 1000
73
74/*--------------------------------------------------------------------------*/
75/* Maximal size (Bytes) of a block to be written with fwrite or read with   */
76/* fread  --- power of 2 > 8 preferable ;-) ---                             */
77#define ADOLC_IO_CHUNK_SIZE 1073741824
78
79/*--------------------------------------------------------------------------*/
80#endif
Note: See TracBrowser for help on using the repository browser.