9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-12 22:53:29 +01:00
qp2/src/perturbation/perturbation.irp.f

14 lines
299 B
Fortran
Raw Normal View History

2020-03-17 16:39:43 +01:00
BEGIN_SHELL [ /usr/bin/env python3 ]
2019-01-25 11:39:31 +01:00
from perturbation import perturbations
import os
filename = os.environ["QP_ROOT"]+"/src/perturbation/perturbation.template.f"
file = open(filename,'r')
template = file.read()
file.close()
for p in perturbations:
2020-03-17 16:39:43 +01:00
print(template.replace("$PERT",p))
2019-01-25 11:39:31 +01:00
END_SHELL