summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-05-28 14:06:55 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-05-28 14:06:55 (GMT)
commit75c60792d7e9626d536a6752136d8ed7418d9d51 (patch)
tree9b2998d7500e7e37bb8ae328e21ede9354a5dbf1 /src/tests
parent3d6794f4d8bfdf0f0a38b704a1e2a2c17026e824 (diff)
Fixed error where velocities were trashed.
Added utility functions for setting box shape (not finished or tested).
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/md_openmp_util.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/tests/md_openmp_util.c b/src/tests/md_openmp_util.c
index 41ccff5..6955df9 100644
--- a/src/tests/md_openmp_util.c
+++ b/src/tests/md_openmp_util.c
@@ -70,7 +70,7 @@ int main ( int argc, char *argv[] )
float kinetic;
float mass = 1.0;
int nd = 3;
- int np = 50;
+ int np = 10;
float *pos;
float potential;
int proc_num;
@@ -188,7 +188,7 @@ int main ( int argc, char *argv[] )
step_print = 0;
step_print_index = 0;
- step_print_num = 100;
+ step_print_num = 10;
/*
This is the main time stepping loop:
@@ -269,21 +269,6 @@ int main ( int argc, char *argv[] )
printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
exit(1);
}
-#if 1
- {
- int j,i;
- for ( j = 0; j < np; j++ )
- {
- printf("vel in md for %d %d:",step,j);
- for ( i = 0; i < nd; i++ )
- {
- printf (" %g",vel[i+j*nd]);
- }
- printf("\n");
- }
- }
-#endif
-
if(tng_util_vel_write(traj, step, vel) != TNG_SUCCESS)
{
printf("Error adding data. %s: %d\n", __FILE__, __LINE__);
@@ -305,6 +290,7 @@ int main ( int argc, char *argv[] )
free ( acc );
free ( box );
+ free ( box_shape );
free ( force );
free ( pos );
free ( vel );
contact: Jan Huwald // Impressum