2019-03-10 07:29:29 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
from qpms.symmetries import point_group_info
|
|
|
|
|
|
|
|
codestring = "#include <qpms/groups.h>\n"
|
2019-03-12 21:22:31 +02:00
|
|
|
for name in sorted(point_group_info.keys()):
|
|
|
|
info = point_group_info[name]
|
2019-03-10 07:29:29 +02:00
|
|
|
codestring += 'const qpms_finite_group_t QPMS_FINITE_GROUP_%s = ' %name
|
|
|
|
codestring += info.generate_c_source()
|
|
|
|
codestring += ";\n\n"
|
|
|
|
|
|
|
|
print(codestring)
|
|
|
|
|
|
|
|
|