source: trunk/ADOL-C/src/dvlparms.h @ 177

Last change on this file since 177 was 177, checked in by kulshres, 10 years ago

Allow for changing the directory where tapes are written.

one can change the definition of TAPE_DIR in dvlparms.h before compiling
or on runtime by writing in .adolcrc file
"TAPE_DIR" "/path/to/dir" (unix)
"TAPE_DIR" "C:\path\to\dir" (windwos)

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

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
3 File:     dvlparms.h
4 Revision: $Id: dvlparms.h 177 2010-10-12 11:11:11Z kulshres $
5 Contents: Developer parameters:
6           These parameters are intended for use by the developers and
7           maintainers of ADOL-C to specify library wide definitions.
8 
9 Copyright (c) Andrea Walther, Andreas Griewank, Andreas Kowarz,
10               Hristo Mitev, Sebastian Schlenkrich, Jean Utke, Olaf Vogel
11 
12 This file is part of ADOL-C. This software is provided as open source.
13 Any use, reproduction, or distribution of the software constitutes
14 recipient's acceptance of the terms of the accompanying license file.
15 
16----------------------------------------------------------------------------*/
17
18#if !defined(ADOLC_DVLPARMS_H)
19#define ADOLC_DVLPARMS_H 1
20
21/*--------------------------------------------------------------------------*/
22/* Directory where tapes are created */
23#define TAPE_DIR              "."
24/* File names for the tapes */
25#define ADOLC_TAYLORS_NAME    "ADOLC-Taylors_"
26#define ADOLC_VALUES_NAME     "ADOLC-Values_"
27#define ADOLC_LOCATIONS_NAME  "ADOLC-Locations_"
28#define ADOLC_OPERATIONS_NAME "ADOLC-Operations_"
29
30#ifdef _WINDOWS
31#define PATHSEPARATOR         "\\"
32#else
33#define PATHSEPARATOR         "/"
34#endif
35/****************************************************************************/
36/* Tells ADOL-C which name space offers the mathematical functions          */
37#define ADOLC_MATH_NSP std
38/* For error function with gcc compiler                                     */
39#define ADOLC_MATH_NSP_ERF
40
41/*--------------------------------------------------------------------------*/
42/* TAPE IDENTIFICATION (ADOLC & version check) */
43#define statSpace   22
44#define adolcIDSize  5
45/* NOTE: adolcIDSize + statSize <= statSpace required! */
46
47/*--------------------------------------------------------------------------*/
48/* ADOL-C configuration (never change this) */
49#define overwrite 1
50#define compsize >
51
52/*--------------------------------------------------------------------------*/
53#endif
Note: See TracBrowser for help on using the repository browser.