source: trunk/ADOL-C/include/adolc/usrparms.h @ 354

Last change on this file since 354 was 354, checked in by kulshres, 7 years ago

Move all external headers into a separate directory

This let's us get rid of the symlink adolc that was previously required
for building and created problems sometimes
This also adjusts all Makefiles for examples to make external builds
possible.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
RevLine 
[40]1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
3 File:     usrparms.h
[42]4 Revision: $Id: usrparms.h 354 2012-10-01 11:32:26Z kulshres $
[40]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 */
[323]24#define OBUFSIZE 524288 /* 16384 or  65536  */
25#define LBUFSIZE 524288 /* 16384 or  65536  */
26#define VBUFSIZE 524288 /* 16384 or  65536  */
[40]27
28/*--------------------------------------------------------------------------*/
29/* Buffer size for temporary Taylor store */
[323]30#define TBUFSIZE  524288 /* 16384 or  65536  */
[40]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.