9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-07 05:53:37 +01:00

Fix for LIB

This commit is contained in:
Anthony Scemama 2021-05-05 17:56:46 +02:00
parent 2546cdd317
commit d3699eed5a
2 changed files with 8 additions and 4 deletions

View File

@ -110,12 +110,14 @@ def ninja_create_env_variable(pwd_config_file):
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 # Read all LIB files in modules
targetPattern = r"src/**/LIB" libfile = "LIB"
for libfile in glob.glob(targetPattern): try:
content = "" content = ""
with open(libfile,'r') as f: with open(libfile,'r') as f:
content = f.read() content = f.read()
str_lib += " "+content str_lib += " "+content
except IOError:
pass
l_string.append("LIB = {0} ".format(str_lib)) l_string.append("LIB = {0} ".format(str_lib))

View File

@ -82,6 +82,8 @@ END_PROVIDER
mpi_correspondance = {"integer": "MPI_INTEGER", mpi_correspondance = {"integer": "MPI_INTEGER",
"integer*8": "MPI_INTEGER8", "integer*8": "MPI_INTEGER8",
"character*(32)": "MPI_CHARACTER", "character*(32)": "MPI_CHARACTER",
"character*(64)": "MPI_CHARACTER",
"character*(256)": "MPI_CHARACTER",
"logical": "MPI_LOGICAL", "logical": "MPI_LOGICAL",
"double precision": "MPI_DOUBLE_PRECISION"} "double precision": "MPI_DOUBLE_PRECISION"}