Skip to content

Commit ffab485

Browse files
committed
Division inside of a loop is incorrect #17
A division v=v/2 inside of a loop is a logic error because this division will be done each loop iteration.
1 parent 6c9e994 commit ffab485

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Mdiffsim.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ int main(int argc, char* argv[])
122122
it0 = round(pt0[k]/dt0);
123123
m0 = im0*dm0+om0;
124124
t0 = it0*dt0+ot0;
125-
//v = v/2;
126125

127126
for(i=im0-ntraces;i<im0+ntraces;i++){
128127

0 commit comments

Comments
 (0)