X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/385a5a6cbcab9001633efd700b2ffdeaf1aaaf6d..f46daea04f594f9f386ac6514733ec1eff860462:/neigh.cpp?ds=inline 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