From 36cfd96016ff6e0ecf06326f6b166c4107383f27 Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Mon, 26 Feb 2024 10:47:10 +0100 Subject: [PATCH] add patch script --- patch_n2v.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 patch_n2v.sh diff --git a/patch_n2v.sh b/patch_n2v.sh new file mode 100755 index 0000000..c0e0912 --- /dev/null +++ b/patch_n2v.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +case $1 in +r | reset) + echo "Unpatching n2v" + cp -v n2v.bak/engines/psi4.py n2v/engines/psi4.py + cp -v n2v.bak/inverter.py n2v/inverter.py + cp -v n2v.bak/methods/zmp.py n2v/methods/zmp.py + cp -v n2v.bak/grid/grider.py n2v/grid/grider.py + ;; +*) + echo "Patching n2v" + cp -v n2v.patched/engines/psi4.py n2v/engines/psi4.py + cp -v n2v.patched/inverter.py n2v/inverter.py + cp -v n2v.patched/methods/zmp.py n2v/methods/zmp.py + cp -v n2v.patched/grid/grider.py n2v/grid/grider.py + ;; +esac