pairutil.h

Go to the documentation of this file.
00001 /** \file pairutil.h
00002  *
00003  */
00004  
00005 #ifndef __PAIRUTIL_H__
00006 #define __PAIRUTIL_H__
00007 
00008 /// some codes are borrowed from Orion's serial version.
00009 
00010 #include "charm++.h"
00011 #include "ckcomplex.h"
00012 
00013 /*
00014 struct Index4D {unsigned short w,x,y,z;};
00015 
00016 class CkArrayIndexIndex4D: public CkArrayIndex {
00017  public:
00018   unsigned short index[4];
00019   CkArrayIndexIndex4D(unsigned short i0,
00020                       unsigned short i1,
00021                       unsigned short i2,
00022                       unsigned short i3)
00023     {index[0] = i0; index[1] = i1; index[2] = i2; index[3] = i3; nInts = 2;}
00024 };
00025 
00026 typedef ArrayElementT<Index4D> ArrayElement4D;
00027 */
00028 
00029 /// ComplexPoint: real and imaginary components and 3 coordinates
00030 struct ComplexPt {
00031   double re, im;
00032   int x, y, z;
00033   inline ComplexPt() {re=im=0.0; x=y=z=0;}
00034   inline ComplexPt(double re_,double im_,int x_,int y_,int z_) {
00035     re=re_; im=im_;
00036     x=x_; y=y_; z=z_;
00037   }
00038 };
00039 
00040 #endif //__PAIRUTIL_H__
00041 
00042 
00043 

Generated on Thu Dec 6 18:25:31 2007 for leanCP by  doxygen 1.5.3