Hi, Marci,<br><br>Just now I try the new cvs version (i.e., 2.1.231), this version works well. Thanks for your improvement.<br><br>Best regards<br>zh<br><br><div class="gmail_quote">On Sun, Apr 25, 2010 at 8:03 PM, Hou Zhufeng <span dir="ltr"><<a href="mailto:vale...@gmail.com">vale...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, Marci,<br><br>Thanks for your reply. I will try it. <br><br>In the "SUBROUTINE xas" of the xas_methods.F, I found that a similar problem should be fixed. See the followings:<br>
<br> 415 DO iat = 1,nexc_atoms<br>
416 iatom = xas_env%exc_atoms(iat)<br> 417 ! determine which state has to be excited in the global list<br> 418 state_to_be_excited = state_of_atom(iat)<br><br>The lines 415 and 416 needs to be replaced with <br>
<div class="im">
DO iat = 1,xas_control%nexc_atoms<br> iatom = xas_control%exc_atoms(iat)<br><br></div>Best regards<br><font color="#888888"><br>Zh</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Sat, Apr 24, 2010 at 8:38 PM, marci <span dir="ltr"><<a href="mailto:marc...@pci.uzh.ch" target="_blank">marc...@pci.uzh.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi zh<br>
<br>
there was indeed a bug, but it was only a sort of typo in<br>
xas_env_type.<br>
Anyway, it should be fixed now. Just try your input with the<br>
new cvs version, and report any other possible problem.<br>
Thanks for pointing this out.<br>
marcella<br>
<div><div></div><div><br>
On Apr 24, 10:43 am, zh <<a href="mailto:vale...@gmail.com" target="_blank">vale...@gmail.com</a>> wrote:<br>
> Dear CPK developers,<br>
><br>
> For the latest version of cp2k (e.g., 2.1.223), if the value specified<br>
> for "STATE_SEARCH" in the XAS calculations is larger than 2, it will<br>
> lead to an error message as fellows:<br>
><br>
> LOCALIZE| The spread relative to a set of orbitals is computed<br>
> LOCALIZE| Orbitals to be localized: Those with index between<br>
> 1 and 3<br>
> LOCALIZE| Spread defined by the Berry phase operator<br>
> LOCALIZE| The optimal unitary transformation is generated by the<br>
> Jacobi algorithm<br>
><br>
> Localize a sub-set of MOs with spin alpha, to better identify<br>
> the core states that have to be excited<br>
><br>
> The sub-set contains states from 1 to 3<br>
> Spread Functional sum_in -w_i ln(|z_in|^2) sum_in<br>
> w_i(1-|z_in|^2)<br>
> Initial Spread (Berry) : 1.3768156742<br>
> 1.1122317318<br>
> Localization by iterative Jacobi rotation<br>
> Iteration Tolerance Time<br>
> Localization for spin 1 converged in 2<br>
> iterations<br>
> Spread Functional sum_in -w_i ln(|z_in|^2) sum_in<br>
> w_i(1-|z_in|^2)<br>
> Total Spread (Berry) : 1.3716326089<br>
> 1.1086930159<br>
> At line 1699 of file /opt/cp2k-2.1.223/makefiles/../src/xas_methods.F<br>
> Traceback: (Innermost first)<br>
> ............<br>
> Fortran runtime error: Array element out of bounds: 3 in (1:2), dim=1<br>
><br>
> By comparing "xas_methods.F" in this new version with the one in the<br>
> old version(2.1.81) and testing my following modification, the above<br>
> error is caused by that the variables "nexc_search" and "nexc_atoms"<br>
> are not assigned before calling them in the subroutine<br>
> "cls_assign_core_states".<br>
><br>
> In the subroutine "cls_assign_core_states", the following places are<br>
> needed to be updated:<br>
> 1.<br>
> 1664 CALL get_mo_set(mos(1)%mo_set, mo_coeff=mo_coeff,<br>
> maxocc=maxocc, nao=nao, homo=homo)<br>
> 1665<br>
> 1666 CALL get_xas_env(xas_env=xas_env,&<br>
><br>
> The following two lines should be added to the line 1665:<br>
> nexc_search = xas_control%nexc_search<br>
> nexc_atoms = xas_control%nexc_atoms<br>
> 2.<br>
> 1695 ! Assign the state to the closest atom<br>
> 1696 distmin = 100.0_dp<br>
> 1697<br>
> 1698 DO iat = 1,nexc_atoms<br>
><br>
> The line 1698 should be replaced with<br>
> DO iat = 1,xas_control%nexc_atoms<br>
><br>
> 3.<br>
> 1741 ! In the set of states, assign the index of the state to be<br>
> excited for iatom<br>
> 1742 IF (output_unit>0) THEN<br>
> 1743 WRITE (UNIT=output_unit,FMT="(/,T10,A,/)")&<br>
> 1744 "List the atoms to be excited and the relative of MOs<br>
> index "<br>
> 1745 END IF<br>
> 1746 DO iat = 1,nexc_atoms<br>
> 1747 iatom = xas_env%exc_atoms(iat)<br>
><br>
> The lines 1746 and 1747 should be replaced with<br>
> DO iat = 1,xas_control%nexc_atoms<br>
> iatom = xas_control%exc_atoms(iat)<br>
><br>
> Please check them.<br>
><br>
> Best regards<br>
> zh<br>
><br>
> --<br>
> You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
> To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
> To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>
</div></div>> For more options, visit this group athttp://<a href="http://groups.google.com/group/cp2k?hl=en" target="_blank">groups.google.com/group/cp2k?hl=en</a>.<br>
<div><div></div><div><br>
--<br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/cp2k?hl=en" target="_blank">http://groups.google.com/group/cp2k?hl=en</a>.<br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To post to this group, send email to cp...@googlegroups.com.<br />
To unsubscribe from this group, send email to cp2k+uns...@googlegroups.com.<br />
For more options, visit this group at http://groups.google.com/group/cp2k?hl=en.<br />