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

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

Move some options out of usrparms.h

These should be set using the configure script arguments and are
now in a new generated header file that will be installed via
make install. This include ATRIG_ERF, and the typedefs for locint/revreal
A new option ADOLC_ADVANCED_BRANCHING is also created.

ADOLC_USE_CALLOC goes into config.h as this is only required for build
but not after installation

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

  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
3 File:     usrparms.h
4 Revision: $Id: usrparms.h 375 2012-12-14 11:22:48Z kulshres $
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 524288 /* 16384 or  65536  */
25#define LBUFSIZE 524288 /* 16384 or  65536  */
26#define VBUFSIZE 524288 /* 16384 or  65536  */
27
28/*--------------------------------------------------------------------------*/
29/* Buffer size for temporary Taylor store */
30#define TBUFSIZE  524288 /* 16384 or  65536  */
31
32/*--------------------------------------------------------------------------*/
33/* Number of temporary Taylor stores*/
34#define TBUFNUM    32
35
36/*--------------------------------------------------------------------------*/
37/* Data types used by Fortran callable versions of functions */
38#define fint       long
39#define fdouble    double
40
41/*--------------------------------------------------------------------------*/
42/* Definionion of inf and NaN */
43#define inf_num    1.0     /* don't undefine these;  on non-IEEE machines */
44#define inf_den    0.0     /* change the values to get small fractions    */
45#define non_num    0.0     /* (inf_num/inf_den) and (non_num/non_den)     */
46#define non_den    0.0     /* respectively, see the documentation         */
47#define ADOLC_EPS  10E-20  /* for test on zero                            */
48
49/****************************************************************************/
50/* Standard output used for diagnostics by ADOL-C,                          */
51/* e.g. stdout or stderr or whatever file identifier                        */
52#define DIAG_OUT stderr
53
54/*--------------------------------------------------------------------------*/
55/* Constants used by the checkpointing part (revolve) */
56#define ADOLC_CHECKUP 1000
57#define ADOLC_REPSUP 1000
58
59/*--------------------------------------------------------------------------*/
60/* Maximal size (Bytes) of a block to be written with fwrite or read with   */
61/* fread  --- power of 2 > 8 preferable ;-) ---                             */
62#define ADOLC_IO_CHUNK_SIZE 1073741824
63
64/*--------------------------------------------------------------------------*/
65#endif
Note: See TracBrowser for help on using the repository browser.