mirror of
https://github.com/pfloos/quack
synced 2024-11-03 20:53:53 +01:00
bug in makefile debug
This commit is contained in:
parent
96254cd22d
commit
7af5a35157
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
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
|
||||
|
||||
@ -15,41 +15,40 @@ subroutine US51_lda_exchange_energy(nGrid,weight,rho,Ex)
|
||||
|
||||
! Local variables
|
||||
|
||||
integer(8) :: nGri8
|
||||
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
|
||||
|
||||
double precision :: Ex
|
||||
double precision :: ExLDA
|
||||
|
||||
! Cxw2 parameters for He N->N+1
|
||||
! a2 = 0.135068d0
|
||||
! b2 = -0.00774769d0
|
||||
! c2 = -0.0278205d0
|
||||
! Memory allocation
|
||||
|
||||
! Cxw1 parameters for He N->N-1
|
||||
! a1 = 0.420243d0
|
||||
! b1 = 0.0700561d0
|
||||
! c1 = -0.288301d0
|
||||
nGri8 = int(nGrid,8)
|
||||
print*,nGri8
|
||||
allocate(Ex(nGrid))
|
||||
|
||||
! Cx coefficient for Slater LDA exchange
|
||||
call xc_f90_func_init(xc_func, func_id, XC_POLARIZED)
|
||||
xc_info = xc_f90_func_get_info(xc_func)
|
||||
call xc_f90_lda_exc(xc_func, nGri8, rho(1), Ex(1))
|
||||
|
||||
alpha = -(3d0/2d0)*(3d0/(4d0*pi))**(1d0/3d0)
|
||||
ExLDA = 0d0
|
||||
|
||||
! alphaw = alpha*(1d0 - wEns(2)*(1d0 - wEns(2))*(a1 + b1*(wEns(2) - 0.5d0) + c1*(wEns(2) - 0.5d0)**2))
|
||||
! Compute LDA exchange energy
|
||||
! do iG=1,nGrid
|
||||
|
||||
Ex = 0d0
|
||||
do iG=1,nGrid
|
||||
! write(*,"(F8.6,1X,F9.6)") rho(iG), Ex(iG)
|
||||
|
||||
r = max(0d0,rho(iG))
|
||||
! ExLDA = ExLDA + weight(iG)*Ex(iG)
|
||||
|
||||
if(r > threshold) then
|
||||
! enddo
|
||||
|
||||
Ex = Ex + weight(iG)*alpha*r**(4d0/3d0)
|
||||
call xc_f90_func_end(xc_func)
|
||||
|
||||
endif
|
||||
|
||||
enddo
|
||||
|
||||
end subroutine US51_lda_exchange_energy
|
||||
|
@ -24,7 +24,7 @@ if not DEBUG:
|
||||
compile_gfortran_mac = """
|
||||
FC = gfortran
|
||||
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
|
||||
CXX = g++
|
||||
LAPACK=-lblas -llapack
|
||||
@ -34,7 +34,7 @@ else:
|
||||
compile_gfortran_mac = """
|
||||
FC = gfortran
|
||||
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
|
||||
CXX = g++
|
||||
LAPACK=-lblas -llapack
|
||||
@ -133,6 +133,7 @@ rule install_qcaml
|
||||
command = cd $QUACK_ROOT/qcaml-tools ; ./install_qcaml.sh
|
||||
pool = console
|
||||
description = Installing QCaml
|
||||
generator = true
|
||||
|
||||
build $QUACK_ROOT/qcaml-tools/qcaml/README.md: install_qcaml
|
||||
generator = true
|
||||
@ -256,8 +257,11 @@ def create_makefile(directory):
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
""")
|
||||
|
||||
|
@ -2,6 +2,9 @@ default:
|
||||
ninja
|
||||
make -C ..
|
||||
|
||||
clean:
|
||||
ninja -t clean
|
||||
|
||||
debug:
|
||||
ninja
|
||||
ninja -t clean
|
||||
make -C .. debug
|
||||
|
Loading…
Reference in New Issue
Block a user