]> git.treefish.org Git - phys/latlib.git/blobdiff - neigh.h
added virtual equilibration.
[phys/latlib.git] / neigh.h
diff --git a/neigh.h b/neigh.h
index 73ffe62d96db78128b889001ed863c1bc52f00df..9112c53db9692968356c554921761b1c3ff776f5 100644 (file)
--- a/neigh.h
+++ b/neigh.h
@@ -1,17 +1,21 @@
 #ifndef NEIGH_H
 #define NEIGH_H
 
+#include <stdarg.h>
+
 class neigh
 {
  private:
+  int *len;
   int *nfield;
+  int dirstep(int dir);
   static int ipow(const int& x, const int& p){
     if (p == 0) return 1;
     if (p == 1) return x;
     return x * ipow(x, p-1);
   }
  public:
-  neigh(const int& length, const int& dimension);
+  neigh(const int& dimension, ...);
   int& operator[] (int i) {return nfield[i];}
 };