Skip to content

Instantly share code, notes, and snippets.

@derekbrokeit
Last active December 20, 2015 08:09
Show Gist options
  • Save derekbrokeit/6098565 to your computer and use it in GitHub Desktop.
Save derekbrokeit/6098565 to your computer and use it in GitHub Desktop.
Fix a temporary bug in lammps with a undefined function call
diff --git a/src/USER-OMP/pair_tip4p_cut_omp.cpp b/src/USER-OMP/pair_tip4p_cut_omp.cpp
index 536d633..8f288a6 100644
--- a/src/USER-OMP/pair_tip4p_cut_omp.cpp
+++ b/src/USER-OMP/pair_tip4p_cut_omp.cpp
@@ -101,7 +101,7 @@ void PairTIP4PCutOMP::compute(int eflag, int vflag)
loop_setup_thr(ifrom, ito, tid, inum, nthreads);
ThrData *thr = fix->get_thr(tid);
- thr->timer(ThrData::TIME_START);
+ /* thr->timer(ThrData::TIME_START); */
ev_setup_thr(eflag, vflag, nall, eatom, vatom, thr);
if (evflag) {
@@ -114,7 +114,7 @@ void PairTIP4PCutOMP::compute(int eflag, int vflag)
}
} else eval<0,0,0>(ifrom, ito, thr);
- thr->timer(ThrData::TIME_PAIR);
+ /* thr->timer(ThrData::TIME_PAIR); */
reduce_thr(this, eflag, vflag, thr);
} // end of omp parallel region
}
diff --git a/src/USER-OMP/pair_tip4p_long_omp.cpp b/src/USER-OMP/pair_tip4p_long_omp.cpp
index 808f24c..2826456 100644
--- a/src/USER-OMP/pair_tip4p_long_omp.cpp
+++ b/src/USER-OMP/pair_tip4p_long_omp.cpp
@@ -101,7 +101,7 @@ void PairTIP4PLongOMP::compute(int eflag, int vflag)
loop_setup_thr(ifrom, ito, tid, inum, nthreads);
ThrData *thr = fix->get_thr(tid);
- thr->timer(ThrData::TIME_START);
+ /* thr->timer(ThrData::TIME_START); */
ev_setup_thr(eflag, vflag, nall, eatom, vatom, thr);
if (!ncoultablebits) {
@@ -126,7 +126,7 @@ void PairTIP4PLongOMP::compute(int eflag, int vflag)
} else eval<0,0,0,0>(ifrom, ito, thr);
}
- thr->timer(ThrData::TIME_PAIR);
+ /* thr->timer(ThrData::TIME_PAIR); */
reduce_thr(this, eflag, vflag, thr);
} // end of omp parallel region
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment