2016-08-30 14:10:52 +02:00
|
|
|
use bitmasks
|
|
|
|
BEGIN_SHELL [ /usr/bin/env python ]
|
|
|
|
from generate_h_apply import *
|
|
|
|
|
|
|
|
s = H_apply("mrpt")
|
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
2016-08-30 18:10:44 +02:00
|
|
|
s = H_apply("mrpt_1h")
|
|
|
|
s.filter_only_1h()
|
2016-11-29 16:48:24 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_1p")
|
|
|
|
s.filter_only_1p()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_1h1p")
|
|
|
|
s.filter_only_1h1p()
|
2016-11-29 16:48:24 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_2p")
|
|
|
|
s.filter_only_2p()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_2h")
|
|
|
|
s.filter_only_2h()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
|
|
|
|
s = H_apply("mrpt_1h2p")
|
|
|
|
s.filter_only_1h2p()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_2h1p")
|
|
|
|
s.filter_only_2h1p()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
|
|
|
s = H_apply("mrpt_2h2p")
|
|
|
|
s.filter_only_2h2p()
|
2016-12-05 15:10:53 +01:00
|
|
|
s.unset_skip()
|
2016-08-30 18:10:44 +02:00
|
|
|
s.data["parameters"] = ", delta_ij_, Ndet"
|
|
|
|
s.data["declarations"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["keys_work"] = "call mrpt_dress(delta_ij_,Ndet,i_generator,key_idx,keys_out,N_int,iproc,key_mask)"
|
|
|
|
s.data["params_post"] += ", delta_ij_, Ndet"
|
|
|
|
s.data["params_main"] += "delta_ij_, Ndet"
|
|
|
|
s.data["decls_main"] += """
|
|
|
|
integer, intent(in) :: Ndet
|
|
|
|
double precision, intent(in) :: delta_ij_(Ndet,Ndet,*)
|
|
|
|
"""
|
|
|
|
s.data["finalization"] = ""
|
|
|
|
s.data["copy_buffer"] = ""
|
|
|
|
s.data["generate_psi_guess"] = ""
|
|
|
|
s.data["size_max"] = "3072"
|
|
|
|
print s
|
|
|
|
|
2016-08-30 14:10:52 +02:00
|
|
|
|
|
|
|
END_SHELL
|
|
|
|
|