Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in dym2feffinp #15

Open
rafaelpap opened this issue Apr 3, 2022 · 0 comments
Open

Bug in dym2feffinp #15

rafaelpap opened this issue Apr 3, 2022 · 0 comments

Comments

@rafaelpap
Copy link

If the dym file is of type 3, the dipole derivatives are read but not written after printing the block dynamical matrix.
This renders the created feff.dym file unusable.

I believe that adding something like this solves the problem:

`*** /usr/local/feff10-10.0.0/src/DMDW/m_dmdw.f90.ORIG 2022-04-03 10:58:24.219007337 +0200
--- /usr/local/feff10-10.0.0/src/DMDW/m_dmdw.f90 2022-04-03 11:18:50.495637646 +0200


*** 2537,2542 ****
--- 2537,2559 ----
end do
end do

  • ! Added by RRP to write the dipole derivatives for IR spectrum
  • if ( dym_In%Type .eq. 3 ) then
    
  • ! Empty separator line
  •   write(IO_dym,fmt='(a)') ''
    
  • ! Read the dipole derivatives and store in the right order
  • ! This order should allow us to use the dip. derivs directly as Lanczos seed.
  •   do iAt=1,dym_In%nAt
    
  •     do ip=1,3
    
  •       write(IO_dym,fmt='(3e14.6)') (dym_In%Dip_Der(jq,Swap(iAt),ip),jq=1,3)        
    
  •     end do
    
  •   end do
    
  • end if
    
  • ! Added by FDV to write the cell vectors, if we have the right dym type
    if ( dym_In%Type == 4 ) then
    `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant