mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-21 19:13:29 +01:00
Add LIB files in plugins
This commit is contained in:
parent
cfd41fc13d
commit
2546cdd317
@ -75,7 +75,7 @@
|
|||||||
- Added ~V_ne_psi_energy~
|
- Added ~V_ne_psi_energy~
|
||||||
- Added ~h_core_guess~ routine
|
- Added ~h_core_guess~ routine
|
||||||
- Fixed Laplacians in real space (indices)
|
- Fixed Laplacians in real space (indices)
|
||||||
-
|
- Added LIB file to add extra libs in plugin
|
||||||
|
|
||||||
ao_one_e_integral_zero
|
ao_one_e_integral_zero
|
||||||
banned_excitations
|
banned_excitations
|
||||||
|
@ -108,6 +108,15 @@ def ninja_create_env_variable(pwd_config_file):
|
|||||||
lib_usr = get_compilation_option(pwd_config_file, "LIB")
|
lib_usr = get_compilation_option(pwd_config_file, "LIB")
|
||||||
|
|
||||||
str_lib = " ".join([lib_lapack, EZFIO_LIB, ZMQ_LIB, LIB, lib_usr])
|
str_lib = " ".join([lib_lapack, EZFIO_LIB, ZMQ_LIB, LIB, lib_usr])
|
||||||
|
|
||||||
|
# Read all LIB files in modules
|
||||||
|
targetPattern = r"src/**/LIB"
|
||||||
|
for libfile in glob.glob(targetPattern):
|
||||||
|
content = ""
|
||||||
|
with open(libfile,'r') as f:
|
||||||
|
content = f.read()
|
||||||
|
str_lib += " "+content
|
||||||
|
|
||||||
l_string.append("LIB = {0} ".format(str_lib))
|
l_string.append("LIB = {0} ".format(str_lib))
|
||||||
|
|
||||||
l_string.append("")
|
l_string.append("")
|
||||||
|
Loading…
Reference in New Issue
Block a user