Hello Zhu,<div style="border-style: initial; border-color: initial; ">I had this issue once and I applied the following (which Urban suggested to me):</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">[...]</div><div style="border-style: initial; border-color: initial; "><pre wrap="" style="border-style: initial; border-color: initial; ">in the variables declaration of this subroutine (~line 1376)add a
variable
    INTEGER :: tmp_size

change the two lines (~line 1473):
    !$OMP ATOMIC
    new_nze = new_nze + wm%datasize
to three lines:
    tmp_size = wm%datasize
    !$OMP ATOMIC
    new_nze = new_nze + tmp_size</pre><pre wrap="" style="border-style: initial; border-color: initial; "><font face="arial, sans-serif" style="border-style: initial; border-color: initial; ">[...]</font></pre><pre wrap="" style="border-style: initial; border-color: initial; "><font face="arial, sans-serif" style="border-style: initial; border-color: initial; ">I don't remember the name of the subroutine, just grep for new_nze in cp2k/src. Hope it helps.</font></pre><pre wrap="" style="border-style: initial; border-color: initial; "><font face="arial, sans-serif" style="border-style: initial; border-color: initial; "><br></font></pre><pre wrap="" style="border-style: initial; border-color: initial; "><font face="arial, sans-serif" style="border-style: initial; border-color: initial; ">Cheers,</font></pre><pre wrap="" style="border-style: initial; border-color: initial; "><font face="arial, sans-serif" style="border-style: initial; border-color: initial; ">Roger</font></pre></div>