<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Thanks for the report!
<div class="">I just created a PR to fix this: <a href="https://github.com/wannier-developers/wannier90/pull/290" class="">https://github.com/wannier-developers/wannier90/pull/290</a></div>
<div class=""><br class="">
</div>
<div class="">If all tests pass (as they should) this will get merged and be available in the next minor release of W90.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Giovanni</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
-- <br class="">
Giovanni Pizzi<br class="">
Theory and Simulation of Materials and MARVEL, EPFL<br class="">
<a href="http://people.epfl.ch/giovanni.pizzi" class="">http://people.epfl.ch/giovanni.pizzi</a><br class="">
http://nccr-marvel.ch/en/people/profile/giovanni-pizzi</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 12 Sep 2019, at 11:38, Nicolas Tancogne-Dejean <<a href="mailto:nicolas.tancogne-dejean@mpsd.mpg.de" class="">nicolas.tancogne-dejean@mpsd.mpg.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">Dear developers,<br class="">
<br class="">
I am starting to use Wannier90 and ran into a segmentation fault problem.<br class="">
After looking at the code, it is clear what is happening.<br class="">
<br class="">
In <i class="">kslice.F90</i>, the code tries to use an array before it gets allocated.<br class="">
<br class="">
The faulty line  is<br class="">
<i class=""><br class="">
</i><i class="">bnddataunit(n) = io_file_unit()</i><i class=""><br class="">
</i><br class="">
It is interesting to note that <i class="">bnddataunit</i> seems to not be used in the code.<br class="">
<br class="">
Best regards,<br class="">
Nicolas </div>
_______________________________________________<br class="">
Wannier mailing list<br class="">
<a href="mailto:Wannier@lists.quantum-espresso.org" class="">Wannier@lists.quantum-espresso.org</a><br class="">
https://lists.quantum-espresso.org/mailman/listinfo/wannier<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>