ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gradchk.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include <fvar.hpp>
12 #include <stdint.h>
13 
18 void grad_chk(void)
19 {
21  <= gradient_structure::GRAD_STACK1->ptr_first)
22  {
23  cout << " 0 offset in gradstack " << endl;
24  } // current is one past the end so -- it
25  else
26  {
27 #if (defined(__GNUC__) && defined(__i386)) || (defined(_MSC_VER) && defined(_M_IX86))
28  cout << int(gradient_structure::GRAD_STACK1->ptr)
29  -int(gradient_structure::GRAD_STACK1->ptr_first)
30 #else
31  cout << intptr_t(gradient_structure::GRAD_STACK1->ptr)
32  - intptr_t(gradient_structure::GRAD_STACK1->ptr_first)
33 #endif
34  << " offset in gradstack " << endl;
35  }
36 }
void grad_chk(void)
Description not yet available.
Definition: gradchk.cpp:18
prnstream & endl(prnstream &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
static _THREAD grad_stack * GRAD_STACK1