Revision 1109 trunk/src/df1b2-separable/df1b2fun.h

df1b2fun.h (revision 1109)
3 3
 *
4 4
 * Author: David Fournier
5 5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 * 
6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "BSD" license.
9 9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
26 26
 * specific prior written permission.
27
 * 
27
 *
28 28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......
44 44
 */
45 45

  
46 46
#if !defined(__DF1B2FUN__)
47
#  define __DF1B2FUN__ 
47
#  define __DF1B2FUN__
48 48

  
49 49
#if defined(__GNUC__)
50 50
  #if (__GNUC__ < 3)
......
99 99
{
100 100
  int ind_index;
101 101
public:
102
  virtual void get_ind_index(void) 
103
  { 
104
    cerr << "cannot use this type here" << endl; ad_exit(1); 
102
  virtual void get_ind_index(void)
103
  {
104
    cerr << "cannot use this type here" << endl; ad_exit(1);
105 105
  }
106 106

  
107 107
  int node_number;
......
115 115
  double f3;
116 116
  double fd;
117 117
  double delta;
118
  dercheck_info(int _node_number,double _delta,int _index); 
118
  dercheck_info(int _node_number,double _delta,int _index);
119 119
  void set_delta(double d){delta=d;}
120 120
  void set_node_number(int n){node_number=n;}
121 121
  void set_pass_number(int n){pass_number=n;}
......
134 134
typedef void * &  vreference;
135 135

  
136 136
#if !defined(__MSVC32__)
137
inline void increment_pointer(vreference p,int n) 
137
inline void increment_pointer(vreference p,int n)
138 138
{
139 139
  char * cs =(char*)(p);
140 140
  cs+=n;
......
149 149
extern df1b2_gradlist * globalf1b2gradlist;
150 150
extern df1b2_gradlist ** f1b2gradlist_stack;
151 151
extern int max_num_init_df1b2variable;
152
  
152

  
153 153
void df1b2_gradcalc1(void);
154 154

  
155 155
extern char AD_allocation_error_message[];
......
179 179
 * Description not yet available.
180 180
 * \param
181 181
 */
182
  struct df1b2_header 
182
  struct df1b2_header
183 183
  {
184 184
    //double * ptr;
185 185
    double * u;
......
217 217
    df1b2vector * p;
218 218
    int lb;
219 219
    int ub;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff