proj home

Files   Classes   Functions   Hierarchy  

desystestspring2.h

Go to the documentation of this file.
00001 #ifndef DESYSTESTSPRING2_H
00002 #define DESYSTESTSPRING2_H
00003 
00004 #include <print.h>
00005 #include <typedefs.h>
00006 
00010 class desystestspring2
00011 {
00012 public:
00013 
00015   doublec * xval;
00018   doublec * wi;
00020   double ki[3];
00022   uint current;
00023 
00025   desystestspring2(doublec * xval_, doublec * wi_)
00026     : xval(xval_), wi(wi_), current(0) {}
00028 //  ~desystestspring2()
00029 //    { delete[] ki; }
00030 
00032   void kset(doublec *k);
00033 
00035   void equ01(double &  Dz, doublec z, doublec x ) const;
00037   void equ02(double &  Dz, doublec z, doublec x ) const;
00038 
00040   void operator ++ ()
00041     { ++current; current %= 2; }
00043   void operator () (double & Dz, doublec z, doublec x ) const
00044   { 
00045     switch (current)
00046     {
00047       case 0: equ01(Dz,z,x); break;
00048       case 1: equ02(Dz,z,x); break;
00049     }
00050   }
00051 };
00052 
00053 #endif
00054 
00055 

Generated on Fri Mar 4 00:49:29 2011 for Chelton Evans Source by  doxygen 1.5.8