Browse Source

Fix sampling of correlation functions for nonzero initial step

Peter Colberg 1 year ago
parent
commit
27897291e8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      nanomotor/correlation.lua

+ 1
- 1
nanomotor/correlation.lua View File

@@ -101,7 +101,7 @@ return function(integrate, file, tcf, args)
101 101
     while self.step <= final do
102 102
       local sample
103 103
       for i = 0, blockcount-1 do
104
-        if self.step % intervals[i] == 0 then
104
+        if (self.step - initial) % intervals[i] == 0 then
105 105
           local block = blocks[i]
106 106
           if self.step >= origin[i] then
107 107
             if not sample then

Loading…
Cancel
Save