Ice Sheet System Model  4.18
Code documentation
AdolcEdf.h
Go to the documentation of this file.
1 /*
2  * adolc_edf.h
3  *
4  * Created on: Jun 26, 2012
5  * Author: utke
6  */
7 
8 #ifndef _ADOLC_EDF_H_
9 #define _ADOLC_EDF_H_
10 
11 #ifdef HAVE_CONFIG_H
12  #include <config.h>
13 #else
14 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
15 #endif
16 
17 #if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
18 #include "adolc/adolc.h"
19 
20 struct Adolc_edf {
21  ext_diff_fct *myEDF_for_solverx_p;
22  Adolc_edf() : myEDF_for_solverx_p(0) {}
23  inline friend std::ostream& operator << ( ostream&, const Adolc_edf& );
24 };
25 
26 std::ostream& operator << ( std::ostream& out, const Adolc_edf& a) {
27  out << a.myEDF_for_solverx_p;
28  return out;
29 }
30 
31 #endif
32 
33 #endif