biod.pnpi.spb.ru
/
alexxy
/
gromacs-spacetimecorr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94c6ffb
)
- fixed a potentional bug with negative values
author
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 12:28:29 +0000
(15:28 +0300)
committer
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 12:28:29 +0000
(15:28 +0300)
src/corrtype.cpp
patch
|
blob
|
history
diff --git
a/src/corrtype.cpp
b/src/corrtype.cpp
index f83e7253a3a465ee8031faf1dd9a2367567c668d..426d306ffdd7956499b09bca8b08d2e81c6444aa 100644
(file)
--- a/
src/corrtype.cpp
+++ b/
src/corrtype.cpp
@@
-40,8
+40,7
@@
void correlationType::update(const int frameNum, const std::vector< RVec > &curF
trajectory.erase(trajectory.begin());
}
if (mode == 1) {
- if ((frameNum - temp + 1) % tauStep == 0) {
- std::cout << frameNum << " " << window << " " << tau << " " << tauStep << "\n";
+ if ( ((frameNum - temp + 1) >= 0) && ((frameNum - temp + 1) % tauStep == 0)) {
correlationEval();
selections.erase(selections.begin());
std::cout << "\n\t\tcorrEval successful\n" << std::endl;