<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear Giovanni,<br>
I checked and now works like charm. I did both export and import.<br>
<br>
Thanks for your help!,<br>
Krzysztof<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF640854"><font color="#000000" face="Tahoma" size="2"><b>Od:</b> Giovanni Pizzi [giovanni.pizzi@epfl.ch]<br>
<b>Wysłano:</b> 4 marca 2015 22:08<br>
<b>Do:</b> Dymkowski Krzysztof Pawel<br>
<b>DW:</b> wannier@quantum-espresso.org<br>
<b>Temat:</b> Re: [Wannier] problem with num_exclude_bands while using w90chk2chk.x<br>
</font><br>
</div>
<div></div>
<div>
<div style="word-wrap:break-word">Dear Krzysztof,
<div><br>
</div>
<div>thanks a lot for the report.</div>
<div><br>
</div>
<div>Indeed, as you correctly spotted, there was a missing allocation in the specific case with num_exclude_bands > 0. </div>
<div>Actually, the same problem was also present in the routine reading from a formatted file, needed for the conversion in the opposite format.</div>
<div><br>
</div>
<div>I committed the correction to the Wannier CVS and this will be distributed with the next Wannier90 release.</div>
<div>Would you be so kind to check if the attached w90chk2chk.F90 (which is the fixed version) works for you, when converting in both directions (e.g. you can convert to formatted, then back to unformatted, and see if you are e.g. still able to restart from
the chk file generated with the roundtrip and obtain the same results).</div>
<div><br>
</div>
<div>Thank you in advance,</div>
<div>Giovanni Pizzi</div>
<div><br>
</div>
<div><br>
<div>
<div style="word-wrap:break-word">
<div>-- </div>
<div>Giovanni Pizzi<br>
Post-doctoral Research Scientist<br>
EPFL STI IMX THEOS<br>
MXC 340 (Bâtiment MXC)<br>
Station 12<br>
CH-1015 Lausanne (Switzerland)<br>
Phone: +41 21 69 31124<br>
</div>
<br>
</div>
</div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div><br class="x_Apple-interchange-newline">
<br class="x_Apple-interchange-newline">
</div>
<br>
<div>
<div>On 28 Feb 2015, at 12:36, Dymkowski Krzysztof Pawel wrote:</div>
<br class="x_Apple-interchange-newline">
<blockquote type="cite">
<div>
<div style="direction:ltr; font-family:Tahoma; color:rgb(0,0,0); font-size:10pt">
Dear All,<br>
I was recently trying to convert my seedname.chk to seedname.chk.fmt using utility tool: w90chk2chk.x. I was able to run tests provided without any errors. I also was able to produce seedname.chk.fmt for both test1 and test2.<br>
<br>
Now I am trying to do NiO benchmark (paramagnetic calculations) and do later on to use of this for DMFT calculations. When runnig w90chk2chk.x I got segmentation fault. I have added two lines to w90chk2chk.f90:<span class="x_Apple-converted-space"> </span><br>
<br>
allocate(exclude_bands(num_exclude_bands),stat=ierr) ! ****KD*****<br>
if (ierr/=0) call io_error('Error allocating exclude_bands in param_read') !*****KD*****<br>
<br>
And it seems to work for my benchmark. In the attachment FILES I am sending you the main inptu/output files from the run with modified w90chk2chk.f90.<br>
<br>
Without modification I get the following error while runnig w90chk2chk.x:<br>
<br>
forrtl: severe (174): SIGSEGV, segmentation fault occurred<br>
Image PC Routine Line Source <span class="x_Apple-converted-space"> </span><br>
w90chk2chk.x 00000000005C3FE1 Unknown Unknown Unknown<br>
w90chk2chk.x 00000000005C2737 Unknown Unknown Unknown<br>
w90chk2chk.x 000000000056FE64 Unknown Unknown Unknown<br>
w90chk2chk.x 000000000056FC76 Unknown Unknown Unknown<br>
w90chk2chk.x 000000000052892F Unknown Unknown Unknown<br>
w90chk2chk.x 000000000052C92D Unknown Unknown Unknown<br>
libpthread.so.0 00007FABA32A40A0 Unknown Unknown Unknown<br>
w90chk2chk.x 00000000005D2D26 Unknown Unknown Unknown<br>
w90chk2chk.x 0000000000548D2D Unknown Unknown Unknown<br>
w90chk2chk.x 0000000000546026 Unknown Unknown Unknown<br>
w90chk2chk.x 0000000000405A57 w90_conv_mp_conv_ 115 w90chk2chk.F90<br>
w90chk2chk.x 00000000004040B8 MAIN__ 593 w90chk2chk.F90<br>
w90chk2chk.x 0000000000403AFE Unknown Unknown Unknown<br>
libc.so.6 00007FABA2AA2EAD Unknown Unknown Unknown<br>
w90chk2chk.x 00000000004039E9 Unknown Unknown Unknown<br>
<br>
I have attached log file from w90chk2chk (w90chk2chk_vannila.log<span id="x_spnAtmt" tabindex="-1"><span class="x_delLnk"></span></span><span id="x_spnAtmt" tabindex="-1"></span>) from run without any modifications. It stops at work after reading bands.<br>
<br>
<br>
I have compiled wannier90 using the following settings:<br>
F90 = /opt/intel/bin/ifort<br>
#COMMS=<br>
MPIF90=/opt/intel/impi/5.0.3.048/bin64/mpif90<br>
FCOPTS=-O2 -heap-arrays -g -traceback<span class="x_Apple-converted-space"> </span><br>
LDOPTS=-O2 -g -traceback<span class="x_Apple-converted-space"> </span><br>
<br>
LIBDIR = /opt/intel/mkl/lib/intel64<br>
LIBS = -L$(LIBDIR) -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lpthread<br>
<br>
Is there a problem with my compilation or have I found a bug?<br>
<br>
Regards,<br>
Krzysztof Dymkowski<br>
<br>
<br>
<br>
</div>
<span><FILES.tar.bz2></span><span><w90chk2chk_vannila.log></span>_______________________________________________<br>
Wannier mailing list<br>
<a href="mailto:Wannier@quantum-espresso.org" target="_blank">Wannier@quantum-espresso.org</a><br>
<a href="http://mailman.qe-forge.org/cgi-bin/mailman/listinfo/wannier" target="_blank">http://mailman.qe-forge.org/cgi-bin/mailman/listinfo/wannier</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>