Skip to content

Commit

Permalink
Update and correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvachier committed Nov 28, 2023
1 parent a45c6b7 commit 93a3b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*.txt
*.bin
*data/
*videos/

# Ignore specific file
test.mp4
Expand Down
8 changes: 3 additions & 5 deletions src/abp_3D_confine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,14 @@ int main(int argc, char *argv[])
double r = 5.0 * L;

/* does not work when using openmp
clock_t tStart = clock(); // check time for one trajectory
fprintf(datacsv, "Particles,x-position,y-position,z-position,ex-orientation,ey-orientation,ez-orientation,time\n");
clock_t tStart = clock(); // check time for one trajectory
*/

// Open MP to get execution time
double itime, ftime, exec_time;
itime = omp_get_wtime();


fprintf(datacsv, "Particles,x-position,y-position,z-position,ex-orientation,ey-orientation,ez-orientation,time\n");

// initialization position and activity
initialization(
Expand All @@ -115,8 +114,7 @@ int main(int argc, char *argv[])
printf("Initialization done.\n");

// Time evoultion
int time;
for (time = 0; time < N; time++)
for (int time = 0; time < N; time++)
{
update_position(
x, y, z, ex, ey, ez, prefactor_e, Particles,
Expand Down

0 comments on commit 93a3b09

Please sign in to comment.