Permalink
Browse files

Merge pull request #1609 from fweik/missing_tests

Missing tests
  • Loading branch information...
fweik committed Nov 14, 2017
2 parents 380c2cd + c3d2d34 commit b6fa6a9f7ab273adbba4b056c02377682f73614f
Showing with 8 additions and 10 deletions.
  1. +0 −6 src/core/pressure.cpp
  2. +4 −0 testsuite/CMakeLists.txt
  3. +1 −1 testsuite/analyze_chains.py
  4. +3 −3 testsuite/analyze_distance.py
View
@@ -118,12 +118,6 @@ void pressure_calc(double *result, double *result_t, double *result_nb, double *
});
/* rescale kinetic energy (=ideal contribution) */
#ifdef ROTATION_PER_PARTICLE
fprintf(stderr, "Switching rotation per particle (#define "
"ROTATION_PER_PARTICLE) and pressure calculation are "
"incompatible.\n");
#endif
virials.data.e[0] /= (3.0*volume*time_step*time_step);
calc_long_range_virials();
View
@@ -92,6 +92,10 @@ python_test(FILE lj.py MAX_NUM_PROC 4)
python_test(FILE pairs.py MAX_NUM_PROC 4)
python_test(FILE auto_exclusions.py MAX_NUM_PROC 1)
python_test(FILE subt_lj.py MAX_NUM_PROC 2)
python_test(FILE analyze_chains.py MAX_NUM_PROC 1)
python_test(FILE analyze_distance.py MAX_NUM_PROC 1)
python_test(FILE comfixed.py MAX_NUM_PROC 2)
python_test(FILE rescale.py MAX_NUM_PROC 2)
if(PY_H5PY)
python_test(FILE h5md.py MAX_NUM_PROC 2)
@@ -85,7 +85,7 @@ def calc_chain_rdf(self,bins):
data_cm=[]
data_min=[]
data_mono=[]
i=np.arange(self.num_mono*self.num_mono)/self.num_mono
i=np.arange(self.num_mono*self.num_mono)//self.num_mono
j=np.arange(self.num_mono*self.num_mono)%self.num_mono
for p1 in range(self.num_poly):
for p2 in range(p1):
@@ -23,16 +23,16 @@ def setUpClass(self):
self.system.thermostat.set_langevin(kT=1., gamma=1.)
for i in range(100):
self.system.part.add(id=i, pos=np.random.random(3) * box_l)
self.system.non_bonded_inter.set_force_cap(10)
self.system.force_cap = 10
i = 0
min_dist = self.system.analysis.mindist()
while (i < 50 and min_dist < 0.9):
system.integrator.run(100)
min_dist = self.system.analysis.mindist()
i += 1
lj_cap = lj_cap + 10
self.system.non_bonded_inter.set_force_cap(lj_cap)
self.system.non_bonded_inter.set_force_cap(0)
self.system.force_cap = lj_cap
self.system.force_cap = 0
self.system.integrator.run(1000)
# python version of the espresso core function

0 comments on commit b6fa6a9

Please sign in to comment.