Changeset 15fc6a
- Timestamp:
- May 19, 2021, 7:06:29 PM (4 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 55c494
- Parents:
- c4afdf3
- git-author:
- Frederik Heber <frederik.heber@…> (05/14/21 22:00:46)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/regression/Potential/FitPotential/testsuite-potential-fit-potential.at
rc4afdf3 r15fc6a 188 188 189 189 AT_CLEANUP 190 191 AT_SETUP([Potential - Fit tersoff potential to water]) 192 AT_KEYWORDS([potential parse-homologies fit-potential tersoff]) 193 AT_XFAIL_IF([/bin/true]) 194 AT_SKIP_IF([../../molecuilder --help fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi]) 195 # homology files probably originate from Labspace/PotentialFitting/WaterAngle 196 # recreate homology file: PYTHONPATH=... /usr/bin/python .../tests/regression/Potential/FitPotential/pre/measurement_function.py length_common.pdb 2 0 0 5 4 127.0.0.1 2050 6-311G* 1 2. 10 .../share/molecuilder/data/bondtables/bondtable.dat 197 198 file=length_homology.dat 199 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0) 200 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 201 AT_CHECK([../../molecuilder \ 202 --parse-homologies $file \ 203 --set-random-number-engine "lagged_fibonacci607" \ 204 --random-number-engine-parameters "seed=1;" \ 205 --set-random-number-distribution "uniform_real" \ 206 --random-number-distribution-parameters "min=0;max=1;" \ 207 --fit-potential \ 208 --potential-type "tersoff" \ 209 --potential-charges 8 1 \ 210 --fragment-charges 1 8 1 \ 211 --set-threshold 5e-6 \ 212 --save-potentials tersoff.potentials], 0, [stdout], [ignore]) 213 # check that L_2 error is below 1e-6 214 #AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 5e-6) exit 1}'], 0, [ignore], [ignore]) 215 # check parameters to printed precision 216 #AT_CHECK([grep "morse:.*particle_type1=8,.*particle_type2=1,.*spring_constant=1.3.*,.*equilibrium_distance=1.7.*,.*dissociation_energy=0.19.*;" length.potentials], 0, [ignore], [ignore]) 217 218 AT_CLEANUP 219
Note:
See TracChangeset
for help on using the changeset viewer.
