2015-07-13 18:00:38 +02:00
|
|
|
use bitmasks
|
|
|
|
BEGIN_SHELL [ /usr/bin/env python ]
|
|
|
|
from generate_h_apply import *
|
|
|
|
|
|
|
|
s = H_apply("mrcc")
|
2016-03-29 23:18:26 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, delta_ii_, Nstates, Ndet_non_ref, Ndet_ref"
|
2015-07-13 18:00:38 +02:00
|
|
|
s.data["declarations"] += """
|
2016-03-29 23:18:26 +02:00
|
|
|
integer, intent(in) :: Nstates, Ndet_ref, Ndet_non_ref
|
|
|
|
double precision, intent(in) :: delta_ij_(Nstates, Ndet_non_ref, Ndet_ref)
|
|
|
|
double precision, intent(in) :: delta_ii_(Nstates, Ndet_ref)
|
2015-07-13 18:00:38 +02:00
|
|
|
"""
|
2016-03-29 23:18:26 +02:00
|
|
|
s.data["keys_work"] = "call mrcc_dress(delta_ij_,delta_ii_,Nstates,Ndet_non_ref,Ndet_ref,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, delta_ii_, Nstates, Ndet_non_ref, Ndet_ref"
|
|
|
|
s.data["params_main"] += "delta_ij_, delta_ii_, Nstates, Ndet_non_ref, Ndet_ref"
|
2015-07-13 18:00:38 +02:00
|
|
|
s.data["decls_main"] += """
|
2016-03-29 23:18:26 +02:00
|
|
|
integer, intent(in) :: Ndet_ref, Ndet_non_ref, Nstates
|
|
|
|
double precision, intent(in) :: delta_ij_(Nstates,Ndet_non_ref,Ndet_ref)
|
|
|
|
double precision, intent(in) :: delta_ii_(Nstates,Ndet_ref)
|
2015-07-13 18:00:38 +02:00
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
|
2016-04-01 23:46:24 +02:00
|
|
|
|
2016-05-10 23:21:38 +02:00
|
|
|
s = H_apply("mrcc_PT2")
|
2016-04-01 23:46:24 +02:00
|
|
|
s.energy = "ci_electronic_energy_dressed"
|
|
|
|
s.set_perturbation("epstein_nesbet_2x2")
|
|
|
|
s.unset_openmp()
|
|
|
|
print s
|
|
|
|
|
2017-02-10 23:46:14 +01:00
|
|
|
s = H_apply("mrcepa_PT2")
|
2016-09-17 23:33:06 +02:00
|
|
|
s.energy = "psi_energy"
|
2016-06-02 12:47:35 +02:00
|
|
|
s.set_perturbation("epstein_nesbet_2x2")
|
|
|
|
s.unset_openmp()
|
|
|
|
print s
|
2016-05-10 23:21:38 +02:00
|
|
|
|
2015-07-13 18:00:38 +02:00
|
|
|
END_SHELL
|
|
|
|
|