Skip to content
Snippets Groups Projects
Commit 25ea0432 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Regtest

parent df970021
No related branches found
No related tags found
No related merge requests found
include ../../scripts/test.make
#! FIELDS time c
0.000000 171.2953
1.000000 171.2953
2.000000 171.2953
3.000000 171.2953
4.000000 171.2953
5.000000 171.2953
6.000000 171.2953
7.000000 171.2953
8.000000 171.2953
9.000000 171.2953
10.000000 171.2953
11.000000 171.2953
12.000000 171.2953
13.000000 171.2953
14.000000 171.2953
15.000000 171.2953
16.000000 171.2953
17.000000 171.2953
18.000000 171.2953
19.000000 171.2953
20.000000 171.2953
21.000000 171.2953
22.000000 171.2953
23.000000 171.2953
24.000000 171.2953
25.000000 171.2953
26.000000 171.2953
27.000000 11555.3194
28.000000 11555.9993
29.000000 11555.7324
30.000000 11555.9999
31.000000 11551.3676
32.000000 11554.8705
33.000000 11555.8052
34.000000 11553.8594
35.000000 11555.9485
36.000000 11553.9347
37.000000 11554.7972
38.000000 11555.8020
39.000000 11555.4367
40.000000 11555.9104
41.000000 11555.6978
42.000000 11548.9711
43.000000 11555.5133
44.000000 11555.4781
45.000000 11555.4807
46.000000 11555.1716
47.000000 11555.0279
48.000000 11555.8818
49.000000 11550.7984
50.000000 11552.3158
51.000000 11555.9024
52.000000 11553.8360
53.000000 11550.5748
54.000000 11555.8688
55.000000 11555.9098
56.000000 11555.9968
57.000000 11555.9475
58.000000 11555.2190
59.000000 11554.3485
60.000000 11555.9989
61.000000 11554.1871
62.000000 11553.9961
63.000000 11553.1389
64.000000 11554.0968
65.000000 11555.9954
66.000000 11555.6342
67.000000 11553.6744
68.000000 11555.7428
69.000000 11552.3911
70.000000 11555.9997
71.000000 11555.0612
72.000000 11555.9224
73.000000 11555.9231
74.000000 11555.7558
75.000000 11551.0098
76.000000 11554.1279
77.000000 11555.7544
78.000000 11553.2694
79.000000 11555.9087
80.000000 11555.2733
81.000000 11554.4184
82.000000 11554.0377
83.000000 11555.8667
84.000000 11555.9784
85.000000 11551.7930
86.000000 11555.3497
87.000000 11555.5810
88.000000 11554.7942
89.000000 11555.2354
90.000000 11554.4651
91.000000 11555.2909
92.000000 11555.8838
93.000000 11554.7613
94.000000 11555.8958
95.000000 11555.8504
96.000000 11553.4806
97.000000 11554.3927
98.000000 11553.9367
99.000000 11555.8015
100.000000 11555.4155
101.000000 11555.2815
102.000000 11549.7315
103.000000 11555.9984
104.000000 11555.3982
105.000000 11555.5027
106.000000 11551.1266
107.000000 11555.7818
type=driver
plumed_needs=matheval
# this is to test a different name
arg="--plumed plumed.dat --ixyz trajectory.xyz"
# This is the script I used to generate trajectory.xyz
# I leave it here as a reference, but it is not necessary to run it
for((i=-1;i<=10;i++)) ; do
for((j=-1;j<=1;j++)) ; do
for((k=-1;k<=1;k++)) ; do
awk -v n=3 -v a0=2 'BEGIN{
if(a0=="") a0=1.6796
if(n=="") n=1
l=n*a0
print n*n*n*4
print l,l,l
for(i=0;i<n;i++) {
for(j=0;j<n;j++) {
for(k=0;k<n;k++) {
print "Ar",i*a0,j*a0,k*a0
print "Ar",(i+0.5)*a0,j*a0,(k+0.5)*a0
print "Ar",(i+0.5)*a0,(j+0.5)*a0,k*a0
print "Ar",i*a0,(j+0.5)*a0,(k+0.5)*a0
}
}
}
}' |
awk -v i=$i -v j=$j -v k=$k 'BEGIN{
srand(100*i+10*j+k);
}{
if(NF!=3) {
print
} else {
if(i<=1){
for(s=1;s<=3;s++) v[s,s]=$s;
for(s=1;s<=3;s++) v[1,s]=v[1,s]+i*v[2,s];
for(s=1;s<=3;s++) v[2,s]=v[2,s]+j*v[3,s];
for(s=1;s<=3;s++) v[3,s]=v[3,s]+k*v[1,s];
} else {
for(s=1;s<=3;s++) for(t=1;t<=3;t++) v[s,t]=rand()-0.5;
}
for(s=1;s<=3;s++) for(ss=1;ss<=3;ss++) printf(v[s,ss]" "); print ""
}
}'
done
done
done > trajectory.xyz
# this is to test issue #249
# in particular, this should work correctly when running with multiple threads
c: COORDINATION GROUPA=1-108 GROUPB=1-108 SWITCH={MATHEVAL R_0=1 FUNC=1/(1+x^6)}
PRINT ARG=c FILE=colvar FMT=%8.4f STRIDE=1
FLUSH STRIDE=1
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment