Unverified Commit 1d838dad authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add checking of kspace styles

parent 555f9b34
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -203,9 +203,9 @@ fp.close()
matches = re.findall(":doc:`(.+) <.+>`",text,re.MULTILINE)
for c in command.keys():
    if not c in matches:
        if not command[c]['removed']:
            print("Command %s is missing in Commands_all.rst" % c)


f = os.path.join(doc, 'Commands_pair.rst')
fp = open(f)
text = fp.read()
@@ -251,3 +251,14 @@ for c in improper.keys():
            print("Improper style entry %s is missing or" % c,
                  "incomplete in Commands_bond.rst")

f = os.path.join(doc, 'Commands_kspace.rst')
fp = open(f)
text = fp.read()
fp.close()
matches = re.findall(":doc:`(.+) <kspace_style>`",text,re.MULTILINE)
for c in kspace.keys():
    if not add_suffix(kspace,c) in matches:
        if not kspace[c]['removed']:
            print("KSpace style entry %s is missing or" % c,
                  "incomplete in Commands_kspace.rst")
            print(kspace[c])