source: trunk/ADOL-C/src/checkpointing_p.h

Last change on this file was 541, checked in by kulshres, 5 years ago

correct paths in internal headers too.

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

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/*----------------------------------------------------------------------------
2 ADOL-C -- Automatic Differentiation by Overloading in C++
3 File:     checkpointing_p.h
4 Revision: $Id: checkpointing_p.h 541 2014-08-15 14:11:16Z stefan $
5 Contents: private functions for the checkpointing functions.
6 
7 Copyright (c) Andreas Kowarz, Jean Utke
8 
9 This file is part of ADOL-C. This software is provided as open source.
10 Any use, reproduction, or distribution of the software constitutes
11 recipient's acceptance of the terms of the accompanying license file.
12   
13----------------------------------------------------------------------------*/
14
15#if !defined(ADOLC_CHECKPOINTING_P_H)
16#define ADOLC_CHECKPOINTING_P_H 1
17
18#include <adolc/internal/common.h>
19#include <adolc/checkpointing.h>
20#include "buffer_temp.h"
21#include "taping_p.h"
22
23#include <stack>
24using std::stack;
25
26BEGIN_C_DECLS
27/****************************************************************************/
28/*                                                         Now the C THINGS */
29
30#define CP_BLOCK_SIZE 10
31
32CpInfos *get_cp_fct(int index);
33
34void init_CpInfos(CpInfos *cpInfos);
35
36END_C_DECLS
37
38/****************************************************************************/
39
40#if defined(__cplusplus)
41
42#define ADOLC_BUFFER_TYPE Buffer< CpInfos, CP_BLOCK_SIZE >
43extern ADOLC_BUFFER_TYPE ADOLC_EXT_DIFF_FCTS_BUFFER_DECL;
44
45/* field of pointers to the value fields of a checkpoint */
46typedef double **StackElement;
47extern stack<StackElement> ADOLC_CHECKPOINTS_STACK_DECL;
48
49/* a cleanup function */
50void cp_clearStack();
51
52#endif
53
54#endif /* ADOLC_CHECKPOITING_P_H */
55
Note: See TracBrowser for help on using the repository browser.