Revision 1109 trunk/src/df1b2-separable/df33fun1.cpp

df33fun1.cpp (revision 1109)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
/**
8 8
 * \file
......
19 19
 * Description not yet available.
20 20
 * \param
21 21
 */
22
 int df1b2_gradlist::write_pass1(const df1b2variable * _px, 
22
 int df1b2_gradlist::write_pass1(const df1b2variable * _px,
23 23
   const df1b2variable * _py,const df1b2variable * pw,
24 24
   const df1b2variable * pz,
25
   double df_x, double df_y, double df_z, 
25
   double df_x, double df_y, double df_z,
26 26
   double df_xx, double df_xy,double df_xz,double df_yy,
27 27
   double df_yz,double df_zz,
28 28
   double df_xxx,
......
116 116
void read_pass2_1_dvdvdv(void);
117 117
void read_pass2_2_dvdvdv(void);
118 118
void read_pass2_3_dvdvdv(void);
119
  
119

  
120 120
/**
121 121
 * Description not yet available.
122 122
 * \param
......
135 135
    read_pass2_3_dvdvdv();
136 136
    break;
137 137
  default:
138
    cerr << "illegal value for df1b2variable::pass = " 
138
    cerr << "illegal value for df1b2variable::pass = "
139 139
         << df1b2variable::passnumber << endl;
140 140
    exit(1);
141 141
  }
......
151 151
  // and  forward for bptr2 and nbptr2
152 152
  // the current entry+2 in bptr is the size of the record i.e
153 153
  // points to the next record
154
  //char * bptr=f1b2gradlist->bptr; 
155
  //char * bptr2=f1b2gradlist2->bptr; 
154
  //char * bptr=f1b2gradlist->bptr;
155
  //char * bptr2=f1b2gradlist2->bptr;
156 156
  int nvar=df1b2variable::nvar;
157
  test_smartlist& list=f1b2gradlist->list; 
157
  test_smartlist& list=f1b2gradlist->list;
158 158
  //f1b2gradlist->nlist-=sizeof(int);
159 159
  int num_bytes=f1b2gradlist->nlist.bptr->numbytes;
160 160
  list-=num_bytes;
......
269 269
  double * wdot=(double*)bptr;
270 270

  
271 271
  list.restoreposition(); // save pointer to beginning of record;
272
 
272

  
273 273
  // ****************************************************************
274 274
  // turn this off if no third derivatives are calculated
275 275
  // if (!no_third_derivatives)
......
305 305
  (df2),(d2f11),(d2f12),(d2f22),
306 306
  (d3f111),(d3f112),(d3f122),
307 307
  (d3f222),1);
308
 print_derivatives(pz,"z"); 
309
 print_derivatives(px,"x"); 
310
 print_derivatives(py,"y"); 
308
 print_derivatives(pz,"z");
309
 print_derivatives(px,"x");
310
 print_derivatives(py,"y");
311 311
#endif
312 312
#if defined(__DERCHECK__)
313 313
  if (derchecker)
......
324 324
        case 1:
325 325
          if (!derchecker->dotflag)
326 326
            px->u_bar[derchecker->index-1]+=derchecker->delta;
327
          else 
327
          else
328 328
            px->u_dot_bar[derchecker->index-1]+=derchecker->delta;
329 329
          break;
330 330
        case 2:
......
340 340
            pz->u_dot_bar[derchecker->index-1]+=derchecker->delta;
341 341
          break;
342 342
        default:
343
          cerr << "Invalid index value for dercheck_index was " 
343
          cerr << "Invalid index value for dercheck_index was "
344 344
               << derchecker->index << endl;
345 345
          break;
346 346
        }
......
351 351
        case 1:
352 352
          if (!derchecker->dotflag)
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff