-Subproject commit 493266210f4f7627378161978968e719372ef03e
+Subproject commit c819c7a5996c18a6b1c5501c1984245840ddc8ca
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)
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);
}
void sim::_makeSweep()
-{
+{
lineSweep();
for( int x=0; x<lsize4; x++) {
beta = (*O815->paraQ)["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()
project(u1casc)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+
# #PROFILING
# set(CMAKE_CXX_FLAGS -pg)
# set(CMAKE_EXE_LINKER_FLAGS -pg)
neigh *nb;
complex<double> *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<double>& candPhi);
double rhoU(const int& x0, const int& nu0, const complex<double>& candU);
lambda[0] = (*O815->paraQ)["lambdaone"];
lambda[1] = (*O815->paraQ)["lambdatwo"];
beta = (*O815->paraQ)["beta"];
+}
+void sim::_resetConfig() {
for(int ix=0; ix<lsize4; ix++) {
for(int i=0; i<2; i++) phi[ i*lsize4 + ix ] = 0;
for(int nu=0; nu<4; nu++) U[ ix*4 + nu ] = 1;