mirror of
https://github.com/pfloos/quack
synced 2024-06-02 11:25:28 +02:00
bug in makefile debug
This commit is contained in:
parent
96254cd22d
commit
7af5a35157
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
subroutine US51_lda_exchange_energy(nGrid,weight,rho,Ex)
|
subroutine US51_lda_exchange_energy(nGrid,weight,rho,ExLDA)
|
||||||
|
|
||||||
use xc_f90_lib_m
|
use xc_f90_lib_m
|
||||||
|
|
||||||
|
@ -15,41 +15,40 @@ subroutine US51_lda_exchange_energy(nGrid,weight,rho,Ex)
|
||||||
|
|
||||||
! Local variables
|
! Local variables
|
||||||
|
|
||||||
|
integer(8) :: nGri8
|
||||||
integer :: iG
|
integer :: iG
|
||||||
double precision :: alpha,r,alphaw,a2,b2,c2,a1,b1,c1
|
double precision :: r
|
||||||
|
double precision,allocatable :: Ex(:)
|
||||||
|
|
||||||
|
TYPE(xc_f90_func_t) :: xc_func
|
||||||
|
TYPE(xc_f90_func_info_t) :: xc_info
|
||||||
|
integer :: func_id = 1
|
||||||
|
|
||||||
! Output variables
|
! Output variables
|
||||||
|
|
||||||
double precision :: Ex
|
double precision :: ExLDA
|
||||||
|
|
||||||
! Cxw2 parameters for He N->N+1
|
! Memory allocation
|
||||||
! a2 = 0.135068d0
|
|
||||||
! b2 = -0.00774769d0
|
nGri8 = int(nGrid,8)
|
||||||
! c2 = -0.0278205d0
|
print*,nGri8
|
||||||
|
allocate(Ex(nGrid))
|
||||||
|
|
||||||
! Cxw1 parameters for He N->N-1
|
call xc_f90_func_init(xc_func, func_id, XC_POLARIZED)
|
||||||
! a1 = 0.420243d0
|
xc_info = xc_f90_func_get_info(xc_func)
|
||||||
! b1 = 0.0700561d0
|
call xc_f90_lda_exc(xc_func, nGri8, rho(1), Ex(1))
|
||||||
! c1 = -0.288301d0
|
|
||||||
|
|
||||||
! Cx coefficient for Slater LDA exchange
|
ExLDA = 0d0
|
||||||
|
|
||||||
alpha = -(3d0/2d0)*(3d0/(4d0*pi))**(1d0/3d0)
|
! do iG=1,nGrid
|
||||||
|
|
||||||
! alphaw = alpha*(1d0 - wEns(2)*(1d0 - wEns(2))*(a1 + b1*(wEns(2) - 0.5d0) + c1*(wEns(2) - 0.5d0)**2))
|
! write(*,"(F8.6,1X,F9.6)") rho(iG), Ex(iG)
|
||||||
! Compute LDA exchange energy
|
|
||||||
|
|
||||||
Ex = 0d0
|
! ExLDA = ExLDA + weight(iG)*Ex(iG)
|
||||||
do iG=1,nGrid
|
|
||||||
|
|
||||||
r = max(0d0,rho(iG))
|
! enddo
|
||||||
|
|
||||||
if(r > threshold) then
|
call xc_f90_func_end(xc_func)
|
||||||
|
|
||||||
Ex = Ex + weight(iG)*alpha*r**(4d0/3d0)
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
enddo
|
|
||||||
|
|
||||||
end subroutine US51_lda_exchange_energy
|
end subroutine US51_lda_exchange_energy
|
||||||
|
|
|
@ -24,7 +24,7 @@ if not DEBUG:
|
||||||
compile_gfortran_mac = """
|
compile_gfortran_mac = """
|
||||||
FC = gfortran
|
FC = gfortran
|
||||||
AR = libtool
|
AR = libtool
|
||||||
FFLAGS = -I$IDIR -J$IDIR -Wall -Wno-unused -Wno-unused-dummy-argument -O3
|
FFLAGS = -I$IDIR -J$IDIR -fbacktrace -g -Wall -Wno-unused -Wno-unused-dummy-argument -O3
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
LAPACK=-lblas -llapack
|
LAPACK=-lblas -llapack
|
||||||
|
@ -34,7 +34,7 @@ else:
|
||||||
compile_gfortran_mac = """
|
compile_gfortran_mac = """
|
||||||
FC = gfortran
|
FC = gfortran
|
||||||
AR = libtool
|
AR = libtool
|
||||||
FFLAGS = -I$IDIR -J$IDIR -Wall -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant
|
FFLAGS = -I$IDIR -J$IDIR -fbacktrace -Wall -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
LAPACK=-lblas -llapack
|
LAPACK=-lblas -llapack
|
||||||
|
@ -133,6 +133,7 @@ rule install_qcaml
|
||||||
command = cd $QUACK_ROOT/qcaml-tools ; ./install_qcaml.sh
|
command = cd $QUACK_ROOT/qcaml-tools ; ./install_qcaml.sh
|
||||||
pool = console
|
pool = console
|
||||||
description = Installing QCaml
|
description = Installing QCaml
|
||||||
|
generator = true
|
||||||
|
|
||||||
build $QUACK_ROOT/qcaml-tools/qcaml/README.md: install_qcaml
|
build $QUACK_ROOT/qcaml-tools/qcaml/README.md: install_qcaml
|
||||||
generator = true
|
generator = true
|
||||||
|
@ -256,8 +257,11 @@ def create_makefile(directory):
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@ default:
|
||||||
ninja
|
ninja
|
||||||
make -C ..
|
make -C ..
|
||||||
|
|
||||||
|
clean:
|
||||||
|
ninja -t clean
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
ninja
|
ninja -t clean
|
||||||
make -C .. debug
|
make -C .. debug
|
||||||
|
|
Loading…
Reference in New Issue
Block a user