<div dir="auto">Thank you for your help.<div><br></div><div>This problem only exists on gfortran. When i use ifort to compile Wien2k, LDA works well.</div><div><br></div><div>Best wishes!</div><div><br></div><div>Xiayuyang<br><br><br><br><div id="hw_signature">发自我的手机</div></div></div><div style="line-height:1.5"><br><br>-------- 原始邮件 --------<br>发件人: Gavin Abo <gabo13279@gmail.com><br>日期: 2024年5月28日周二 下午1:28<br>收件人: wien@zeus.theochem.tuwien.ac.at<br>主 题: Re: [Wien] ERROR Iin using LDA<br><blockquote>
<div>
<p><font face="Times New Roman">I think I found the cause of the
runtime gfortran compiled lapw0 error given in the previous post
below.</font></p>
<p><font face="Times New Roman">In SRC_lapw0/lapw0.F of WIEN2k 23.2
on line 2645, there is:</font></p>
<p><font face="Times New Roman">IF(GGA_SWITCH .eqv. .TRUE.)
allocate( CFFT_STR_GGA(iff1,iff2,iff3,1:9) )<br />
</font></p>
<p><font face="Times New Roman">Also, on line 2651, there is:<br />
</font></p>
<p><font face="Times New Roman">IF(GGA_SWITCH .eqv. .TRUE.)
allocate( CFFT_STR_GGA(1,1,1,1:9) )</font></p>
<p><font face="Times New Roman">One of the above two allocates </font><font face="Times New Roman">CFFT_STR_GGA which should explain why
there is no issue when its a GGA calculation.<br />
</font></p>
<p><font face="Times New Roman">However, where the error seems to be
happening with LDA </font><font face="Times New Roman">is on
line 2655 having:<br />
</font></p>
<p><font face="Times New Roman">CFFT_STR_GGA = ZEROC<br />
</font></p>
<p><font face="Times New Roman">The cause seems to be </font><font face="Times New Roman">CFFT_STR_GGA being used without being
allocated in the LDA case (or more broadly when its not a GGA
case). The error goes away if the line 2655 is changed to:<br />
</font></p>
<p><font face="Times New Roman">IF(GGA_SWITCH .eqv. .TRUE.) </font><font face="Times New Roman">CFFT_STR_GGA = ZEROC</font></p>
<p><font face="Times New Roman">Could another person confirm that as
a solution or see a better fix for it?</font></p>
<p><font face="Times New Roman">Thanks,</font></p>
<font face="Times New Roman">Gavin</font><br />
<font face="Times New Roman">WIEN2k user<br />
</font>
<div><br />
</div>
<div>On 5/25/2024 8:16 AM, 夏宇阳 wrote:<br />
</div>
<blockquote>
<pre>Dear all,
I cannot use the Vxc option LDA to calculate any struct(i have tried different materials). Everything is fine when doing init, but there is an error in scf.
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x7c1f5223960 in ???
#1 0x7c1f5222ac5 in ???
#2 0x7c1f4e4251f in ???
at ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
#3 0x7c1f4fa1082 in ???
at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:394
#4 0x58fced8efc47 in ???
#5 0x58fced88680e in ???
#6 0x7c1f4e29d8f in __libc_start_call_main
at ../sysdeps/nptl/libc_start_call_main.h:58
#7 0x7c1f4e29e3f in __libc_start_main_impl
at ../csu/libc-start.c:392
#8 0x58fced886834 in ???
#9 0xffffffffffffffff in ???
Segmentation fault (core dumped)
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
grep: No match.
My system is Ubuntu 22.04. And the complier is gfortran. i followed the step on the pdf files provided by Gavin Abo to install wien2k.
And Other options have no problem.
Is there anyone have the same problem? How can i solve it?
Looking forward to your reply.
Best wishes!
Yuyang.
</pre>
</blockquote>
</div>
</blockquote></div>