Skip to content
Snippets Groups Projects
Commit c3939373 authored by Philipp Rüssmann's avatar Philipp Rüssmann
Browse files

Activate potential writeout with '<write_BdG_tests>= T' input

parent 17f870a4
No related branches found
No related tags found
No related merge requests found
...@@ -602,8 +602,8 @@ contains ...@@ -602,8 +602,8 @@ contains
alphall = czero alphall = czero
! faster calculation of RLLLEFT and SLLLEFT. ! faster calculation of RLLLEFT and SLLLEFT.
if (.not.set_cheby_nospeedup .and. .not. (calc_exchange_couplings .or. write_pkkr_operators)) then if (.not.set_cheby_nospeedup .and. .not. (calc_exchange_couplings .or. write_pkkr_operators)) then
call rll_global_solutions(rpan_intervall, rnew, vnspll(:,:,:,ith),ullleft(:,:,:,ith), rllleft(:,:,:,ith), tmattemp, ncheb, npan_tot, lmmaxd, nvec*lmmaxd, nsra*(1+korbit)*(lmax+1), irmdnew, nsra, & call rll_global_solutions(rpan_intervall, rnew, vnspll(:,:,:,ith), ullleft(:,:,:,ith), rllleft(:,:,:,ith), tmattemp, ncheb, npan_tot, lmmaxd, nvec*lmmaxd, nsra*(1+korbit)*(lmax+1), irmdnew, nsra, &
jlk_index, hlk2(:,:,ith), jlk2(:,:,ith), hlk(:,:,ith), jlk(:,:,ith), gmatprefactor, '1', use_sratrick, alphall) jlk_index, hlk2(:,:,ith), jlk2(:,:,ith), hlk(:,:,ith), jlk(:,:,ith), gmatprefactor, '1', use_sratrick, alphall)
call sll_global_solutions(rpan_intervall, rnew, vnspll(:,:,:,ith), sllleft(:,:,:,ith), ncheb, npan_tot, lmmaxd, nvec*lmmaxd, nsra*(1+korbit)*(lmax+1), irmdnew, nsra, jlk_index, & call sll_global_solutions(rpan_intervall, rnew, vnspll(:,:,:,ith), sllleft(:,:,:,ith), ncheb, npan_tot, lmmaxd, nvec*lmmaxd, nsra*(1+korbit)*(lmax+1), irmdnew, nsra, jlk_index, &
hlk2(:,:,ith), jlk2(:,:,ith), hlk(:,:,ith), jlk(:,:,ith), gmatprefactor, '1', use_sratrick) hlk2(:,:,ith), jlk2(:,:,ith), hlk(:,:,ith), jlk(:,:,ith), gmatprefactor, '1', use_sratrick)
else else
......
...@@ -214,15 +214,14 @@ contains ...@@ -214,15 +214,14 @@ contains
! set up the non-spherical ll' matrix for potential VLL' (done in VLLMAT) ! set up the non-spherical ll' matrix for potential VLL' (done in VLLMAT)
call vllmat(1, nrmaxd, irmdnew, lmmax0d, lmmaxd, vnspll0, vins, lmpot, cleb, icleb, iend, nspin/(nspin-korbit), zat, rnew, use_sratrick, ncleb) call vllmat(1, nrmaxd, irmdnew, lmmax0d, lmmaxd, vnspll0, vins, lmpot, cleb, icleb, iend, nspin/(nspin-korbit), zat, rnew, use_sratrick, ncleb)
#ifdef CPP_BdG
! test writeout of VNSPLL1 ! test writeout of VNSPLL1
if (write_BdG_tests) then if (write_BdG_tests) then
open (7352834, file='vnspll.txt', form='formatted') write (filename, '(A,I0.3,A)') 'vnspll_', i1, '.txt'
open (7352834, file=trim(filename), form='formatted')
write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew
write (7352834, '(2ES25.16)') vnspll0(:, :, :) write (7352834, '(2ES25.9)') vnspll0(:, :, :)
close (7352834) close (7352834)
end if end if
#endif
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! LDAU ! LDAU
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...@@ -356,15 +355,14 @@ contains ...@@ -356,15 +355,14 @@ contains
#ifdef CPP_OMP #ifdef CPP_OMP
!$omp critical !$omp critical
#endif #endif
#ifdef CPP_BdG
! test writeout of VNSPLL1 ! test writeout of VNSPLL1
if (write_BdG_tests) then if (write_BdG_tests) then
open (7352834, file='vnspll_SOC.txt', form='formatted') write (filename, '(A,I0.3,A,I0.3,A)') 'vnspll_SOC_', i1, '_energ_', ie, '.txt'
open (7352834, file=trim(filename), form='formatted')
write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew
write (7352834, '(2ES25.16)') vnspll1(:, :, :, ith) write (7352834, '(2ES25.9)') vnspll1(:, :, :, ith)
close (7352834) close (7352834)
end if end if
#endif
#ifdef CPP_OMP #ifdef CPP_OMP
!$omp end critical !$omp end critical
#endif #endif
...@@ -387,19 +385,18 @@ contains ...@@ -387,19 +385,18 @@ contains
#ifdef CPP_OMP #ifdef CPP_OMP
!$omp critical !$omp critical
#endif #endif
#ifdef CPP_BdG
! test writeout of VNPSLL ! test writeout of VNPSLL
if (write_BdG_tests) then if (write_BdG_tests) then
open (7352834, file='vnspll_sra.txt', form='formatted') write (filename, '(A,I0.3,A,I0.3,A)') 'vnspll_sra_', i1, '_energ_', ie, '.txt'
open (7352834, file=trim(filename), form='formatted')
if (nsra==2) then if (nsra==2) then
write (7352834, '(A,3I9)') '# 2*lmmaxd,2*lmmaxd,IRMDNEW=', 2*lmmaxd, 2*lmmaxd, irmdnew write (7352834, '(A,3I9)') '# 2*lmmaxd,2*lmmaxd,IRMDNEW=', 2*lmmaxd, 2*lmmaxd, irmdnew
else else
write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew write (7352834, '(A,3I9)') '# lmmaxd,lmmaxd,IRMDNEW=', lmmaxd, lmmaxd, irmdnew
end if end if
write (7352834, '(2ES25.16)') vnspll(:, :, :, ith) write (7352834, '(2ES25.9)') vnspll(:, :, :, ith)
close (7352834) close (7352834)
end if end if
#endif
#ifdef CPP_OMP #ifdef CPP_OMP
!$omp end critical !$omp end critical
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment