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