pseudopotentiallibrary icon indicating copy to clipboard operation
pseudopotentiallibrary copied to clipboard

Order of items for an ECP

Open aannabe opened this issue 6 years ago • 2 comments

This is minor, but when clicked on an element, the listed items - basis-sets, ECPs - are in no particular order. Listing ECPs first and then basis-sets with increasing cardinality/quality would make it easier to navigate.

aannabe avatar Jun 05 '19 14:06 aannabe

Good point. Can you write down an algorithm for your preferred ordering? e.g. Put anything matching some wildcard first, another wildcard second.

prckent avatar Jun 05 '19 15:06 prckent

Something like this would work to list in bash

declare -a basis=("D" "T" "Q" "5" "6")
ecp=ccECP       # ECP name

ls *.${ecp}*

for k in "${basis[@]}"
do
        ls *.cc-pV${k}*
done

for k in "${basis[@]}"
do
        ls *.cc-pCV${k}*
done

for k in "${basis[@]}"
do
        ls *.aug-cc-pV${k}*
done

for k in "${basis[@]}"
do
        ls *.aug-cc-pCV${k}*
done

CEPP and eCEPP nomenclature will have to be changed to be consistent.

aannabe avatar Jun 05 '19 16:06 aannabe