X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/385a5a6cbcab9001633efd700b2ffdeaf1aaaf6d..d3e332b13eccd2fa7e467770f6d973b4f34904cf:/neigh.cpp diff --git a/neigh.cpp b/neigh.cpp index a25d1e7..8e4084c 100644 --- a/neigh.cpp +++ b/neigh.cpp @@ -1,28 +1,44 @@ #include "neigh.h" -neigh::neigh(const int& dimension, const int& length) +#include + +using namespace std; + +int neigh::dirstep(int dir) { - nfield = new int[ipow(dimension,length)*2*dimension]; + int step=1; + for(int idir=0; idir