mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 20:54:00 +01:00
Merge branch 'master' of github.com:scemama/quantum_package
This commit is contained in:
commit
7f0f90b442
@ -4,17 +4,21 @@
|
|||||||
# - sudo apt-get install gfortran liblapack-dev gcc
|
# - sudo apt-get install gfortran liblapack-dev gcc
|
||||||
# - sudo apt-get install graphviz
|
# - sudo apt-get install graphviz
|
||||||
|
|
||||||
|
os: linux
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
compiler: gfortran
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- gfortran
|
- gfortran
|
||||||
- gcc
|
- gcc
|
||||||
- liblapack-dev
|
# - liblapack-dev
|
||||||
- libblas-dev
|
# - libblas-dev
|
||||||
- graphviz
|
- graphviz
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
@ -28,6 +32,7 @@ python:
|
|||||||
script:
|
script:
|
||||||
- ./configure ./config/travis.cfg
|
- ./configure ./config/travis.cfg
|
||||||
- source ./quantum_package.rc ; qp_module.py install Full_CI Full_CI_ZMQ Hartree_Fock CAS_SD_ZMQ mrcepa0 All_singles
|
- source ./quantum_package.rc ; qp_module.py install Full_CI Full_CI_ZMQ Hartree_Fock CAS_SD_ZMQ mrcepa0 All_singles
|
||||||
|
- source ./quantum_package.rc ; cd ~ ; install_lapack.sh ; cd $QP_ROOT
|
||||||
- source ./quantum_package.rc ; ninja
|
- source ./quantum_package.rc ; ninja
|
||||||
- source ./quantum_package.rc ; cd ocaml ; make ; cd -
|
- source ./quantum_package.rc ; cd ocaml ; make ; cd -
|
||||||
- source ./quantum_package.rc ; cd tests ; ./run_tests.sh -v
|
- source ./quantum_package.rc ; cd tests ; ./run_tests.sh -v
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
[COMMON]
|
[COMMON]
|
||||||
FC : gfortran -ffree-line-length-none -I . -g
|
FC : gfortran -ffree-line-length-none -I . -g
|
||||||
LAPACK_LIB : -llapack -lblas
|
LAPACK_LIB : -llapack -lrefblas -ltmglib
|
||||||
IRPF90 : irpf90
|
IRPF90 : irpf90
|
||||||
IRPF90_FLAGS : --ninja --align=32 --assert
|
IRPF90_FLAGS : --ninja --align=32 --assert
|
||||||
|
|
||||||
|
10
install/scripts/install_lapack.sh
Executable file
10
install/scripts/install_lapack.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash -x
|
||||||
|
|
||||||
|
git clone https://github.com/Reference-LAPACK/lapack-release.git
|
||||||
|
cd lapack-release
|
||||||
|
cp make.inc.example make.inc
|
||||||
|
make -j 8
|
||||||
|
mv librefblas.a liblapack.a libtmglib.a $QP_ROOT/lib
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -38,12 +38,12 @@ subroutine run(N_st,energy)
|
|||||||
do while (delta_E > thresh_mrcc)
|
do while (delta_E > thresh_mrcc)
|
||||||
iteration += 1
|
iteration += 1
|
||||||
print *, '==============================================='
|
print *, '==============================================='
|
||||||
print *, 'MRCEPA0 Iteration', iteration, '/', n_it_mrcc_max
|
print *, 'Iteration', iteration, '/', n_it_mrcc_max
|
||||||
print *, '==============================================='
|
print *, '==============================================='
|
||||||
print *, ''
|
print *, ''
|
||||||
E_old = sum(ci_energy_dressed(1:N_states))
|
E_old = sum(ci_energy_dressed(1:N_states))
|
||||||
do i=1,N_st
|
do i=1,N_st
|
||||||
call write_double(6,ci_energy_dressed(i),"MRCEPA0 energy")
|
call write_double(6,ci_energy_dressed(i),"Energy")
|
||||||
enddo
|
enddo
|
||||||
call diagonalize_ci_dressed(lambda)
|
call diagonalize_ci_dressed(lambda)
|
||||||
E_new = sum(ci_energy_dressed(1:N_states))
|
E_new = sum(ci_energy_dressed(1:N_states))
|
||||||
@ -61,7 +61,7 @@ subroutine run(N_st,energy)
|
|||||||
exit
|
exit
|
||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
call write_double(6,ci_energy_dressed(1),"Final MRCEPA0 energy")
|
call write_double(6,ci_energy_dressed(1),"Final energy")
|
||||||
endif
|
endif
|
||||||
energy(1:N_st) = ci_energy_dressed(1:N_st)
|
energy(1:N_st) = ci_energy_dressed(1:N_st)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user