From: Alexander Schmidt Date: Fri, 5 Dec 2014 14:58:39 +0000 (+0100) Subject: Implemented starting configuration. X-Git-Url: http://git.treefish.org/~alex/phys/u1casc.git/commitdiff_plain/60721a3c620a58110d73e6ef36cb9548a9df11b8 Implemented starting configuration. --- diff --git a/latlib b/latlib index 4932662..c819c7a 160000 --- a/latlib +++ b/latlib @@ -1 +1 @@ -Subproject commit 493266210f4f7627378161978968e719372ef03e +Subproject commit c819c7a5996c18a6b1c5501c1984245840ddc8ca diff --git a/u1casc-flux/CMakeLists.txt b/u1casc-flux/CMakeLists.txt index 9b85594..e3d1d23 100644 --- a/u1casc-flux/CMakeLists.txt +++ b/u1casc-flux/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8) project(u1casc-flux) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + # #PROFILING # set(CMAKE_CXX_FLAGS -pg) # set(CMAKE_EXE_LINKER_FLAGS -pg) diff --git a/u1casc-flux/sim.hpp b/u1casc-flux/sim.hpp index 7fd59af..496a28d 100644 --- a/u1casc-flux/sim.hpp +++ b/u1casc-flux/sim.hpp @@ -24,10 +24,11 @@ public: double WF(int nom, int denom, int iflav); int iPlaq(int i, int j); double I(int p); - + void _newParas(); + private: + void _resetConfig(); void _makeSweep(); - void _newParas(); gsl_rng* rangsl; int lineSweep(); int lineUpdate(int x, int vardir); @@ -92,7 +93,7 @@ sim::sim(o815 *_O815) : o815::sim( _O815, } void sim::_makeSweep() -{ +{ lineSweep(); for( int x=0; xparaQ)["beta"]; Mu[0] = (*O815->paraQ)["muone"]; Mu[1] = (*O815->paraQ)["mutwo"]; +} - memset(confMem, 0, sizeof(int)*lsize4*(2*4+2*4+6)); +void sim::_resetConfig() { + memset(confMem, 0, confmemSize); } int sim::lineSweep() diff --git a/u1casc-ordinary/CMakeLists.txt b/u1casc-ordinary/CMakeLists.txt index 40225bd..d032e4a 100644 --- a/u1casc-ordinary/CMakeLists.txt +++ b/u1casc-ordinary/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8) project(u1casc) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + # #PROFILING # set(CMAKE_CXX_FLAGS -pg) # set(CMAKE_EXE_LINKER_FLAGS -pg) diff --git a/u1casc-ordinary/sim.hpp b/u1casc-ordinary/sim.hpp index f88e650..986ae37 100644 --- a/u1casc-ordinary/sim.hpp +++ b/u1casc-ordinary/sim.hpp @@ -18,10 +18,11 @@ public: neigh *nb; complex *U, *phi; double kappa[2], lambda[2], beta; - + void _newParas(); + private: + void _resetConfig(); void _makeSweep(); - void _newParas(); gsl_rng* rangsl; double rhoPhi(const int& iphi, const int& x0, const complex& candPhi); double rhoU(const int& x0, const int& nu0, const complex& candU); @@ -60,7 +61,9 @@ void sim::_newParas() { lambda[0] = (*O815->paraQ)["lambdaone"]; lambda[1] = (*O815->paraQ)["lambdatwo"]; beta = (*O815->paraQ)["beta"]; +} +void sim::_resetConfig() { for(int ix=0; ix