set(GROMACS_CXX_FLAGS "${GROMACS_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
-#set( CMAKE_CXX_FLAGS "-fsanitize=thread -O2 -g")
+set( CMAKE_CXX_FLAGS "-fsanitize=thread -O2 -g -fopenmp")
add_executable(spacetimecorr spacetimecorr.cpp)
include_directories(
${GROMACS_INCLUDE_DIRS}
#include <gromacs/trajectoryanalysis.h>
#include <gromacs/utility/smalloc.h>
#include <gromacs/math/do_fit.h>
+
using namespace gmx;
using gmx::RVec;
for (int i = tauS; i <= tauE; i += 1) {
std::vector< RVec > medx, medy;
RVec temp1, temp2;
- float tmp;
+ double tmp;
medx.resize(traj.front().size(), temp_zero);
medy.resize(traj.front().size(), temp_zero);
for (int j = 0; j < traj.size() - i - 1; j++) {