Skip to content

Commit

Permalink
Update LE_1dim_reflect.cpp
Browse files Browse the repository at this point in the history
Removed redundant variable counter.
  • Loading branch information
benlickert authored May 4, 2020
1 parent 8fd006f commit 18cb6d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions LE_1dim_reflect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ actualpoint=startpoint;

c=0;
int alreadymentioned=0;
double counter=0.0;
double timepoint=0.0;

for(a=0;a<length;a++){
Expand Down Expand Up @@ -380,8 +379,7 @@ for(a=0;a<length;a++){
actualdrift=drift(actualpointbinnumbers);
actualvelocity= actualC1*((pastC1*pastvelocity + pastC2*massesinvers*pastwhitenoise) + massesinvers*(pastdrift+actualdrift)*deltat*0.5) + actualC2*massesinvers*actualwhitenoise;

counter = counter + 1.0;
timepoint=counter*deltat;
timepoint=timepoint+deltat;
}
}

Expand Down

0 comments on commit 18cb6d6

Please sign in to comment.