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

df33fun.cpp (revision 1109)
65 65
  {
66 66
    *zd++ = dfx * *xd++ + dfy * *yd++ + dfz * *vd++;
67 67
  }
68
      
68

  
69 69
 /*
70 70
  cout << *v.get_u()  << " ";
71 71
  cout << *v.get_udot()  << " ";
......
102 102
 * Description not yet available.
103 103
 * \param
104 104
 */
105
void df3_three_variable::initialize(void) 
105
void df3_three_variable::initialize(void)
106 106
{
107 107
  for (int i=0;i<20;i++)
108 108
    v[i]=0.0;
......
146 146
 */
147 147
 dvector value(const df3_three_vector& v)
148 148
 {
149
   
150 149
   int mmin=v.indexmin();
151 150
   int mmax=v.indexmax();
152 151
   dvector cv(mmin,mmax);
......
156 155
   }
157 156
   return cv;
158 157
 }
159
   
158

  
160 159
/**
161 160
 * Description not yet available.
162 161
 * \param
......
205 204
    }
206 205
    if ( (shape=new vector_shapex(min,max,v)) == NULL)
207 206
    {
208
      cerr << "Error trying to allocate memory for df3_three_vector" 
207
      cerr << "Error trying to allocate memory for df3_three_vector"
209 208
           << endl;;
210 209
      ad_exit(1);
211 210
    }
......
215 214
/**
216 215
 * Description not yet available.
217 216
 * \param
218
 */ 
217
 */
219 218
  void df3_three_vector::allocate(void)
220 219
  {
221 220
    index_min=0;
......
223 222
    v=0;
224 223
    shape=0;
225 224
  }
226
    
225

  
227 226
/**
228 227
 * Description not yet available.
229 228
 * \param
230 229
 */
231 230
 dmatrix value(const df3_three_matrix& v)
232 231
 {
233
   
234 232
   int rmin=v.indexmin();
235 233
   int rmax=v.indexmax();
236 234
   dmatrix cm(rmin,rmax);
......
238 236
   {
239 237
     int cmin=v(i).indexmin();
240 238
     int cmax=v(i).indexmax();
241
     cm(i).allocate(cmin,cmax); 
239
     cm(i).allocate(cmin,cmax);
242 240
     for (int j=cmin;j<=cmax;j++)
243 241
     {
244 242
       cm(i,j)=value(v(i,j));
......
246 244
   }
247 245
   return cm;
248 246
 }
249
   
247

  
250 248
/**
251 249
 * Description not yet available.
252 250
 * \param
......
325 323
    }
326 324
    if ( (shape=new mat_shapex(v)) == NULL)
327 325
    {
328
      cerr << "Error trying to allocate memory for df3_three_vector" 
326
      cerr << "Error trying to allocate memory for df3_three_vector"
329 327
           << endl;;
330 328
    }
331 329
    v-=rmin;
332
    
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff