Ignore:
Timestamp:
Apr 23, 2021, 8:34:11 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
ef0f8f
Parents:
addb51
git-author:
Frederik Heber <frederik.heber@…> (10/03/20 21:20:26)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:34:11)
Message:

Extending PairCorrelation to correlate element and set of atoms.

  • one may also correlate an element with a selected set of atoms.
  • TEST: Added regression test case.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Analysis/PairCorrelation/testsuite-analysis-pair-correlation.at

    raddb51 rd9e1d1  
    3535AT_CLEANUP
    3636
     37
     38AT_SETUP([Analysis - pair correlation against element])
     39AT_KEYWORDS([analysis correlation pair-correlation element])
     40
     41# here, we correlate all atoms against all of a single element
     42AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Analysis/PairCorrelation/pre/test.conf .], 0)
     43AT_CHECK([../../molecuilder -i test.conf  -v 3 --set-boundary-conditions Wrap Wrap Wrap --pair-correlation --elements 8 --output-file output.csv --bin-output-file bin_output.csv --bin-start 0 --bin-end 20], 0, [stdout], [stderr])
     44AT_CHECK([fgrep "Begin of PairCorrelation" stdout], 0, [ignore], [ignore])
     45#AT_CHECK([file=output.csv; diff $file ${abs_top_srcdir}/tests/regression/Analysis/PairCorrelation/post/output.csv], 0, [ignore], [ignore])
     46AT_CHECK([file=bin_output.csv; diff $file ${abs_top_srcdir}/tests/regression/Analysis/PairCorrelation/post/bin_output.csv], 0, [ignore], [ignore])
     47sum=0;
     48for num in `tail -n 41 bin_output.csv | awk -F" " {'print $4'}`; do
     49        let sum=$sum+$num;
     50done;
     51# 31 oxygens on 62 hydrogens yields 1922 values
     52AT_CHECK([test $sum -eq 1922], 0, [ignore], [ignore])
     53
     54AT_CLEANUP
     55
     56
Note: See TracChangeset for help on using the changeset viewer.