<div dir="ltr"><div>OS:<br><br>debian7.0 64bit<br><br></div><div>compiler<br></div><div><br># ifort -V<br>Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.1.1.163 Build 20130313<br>
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.<br>FOR NON-COMMERCIAL USE ONLY<br><br></div><div>library:<br><br></div><div>#======================<br># INTEL MKL<br>#======================<br>LIBDIR = /opt/intel/composerxe/mkl/lib/intel64/<br>
LIBS = -L$(LIBDIR) -lmkl_core -lmkl_intel_lp64 -mkl<br><br><br><br></div><div>I am using wannier90 as a program instead of library, and monitor the memory usage with command top.<br><br><br></div><div>Haowei</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 3:11 PM, Jonathan Yates <span dir="ltr"><<a href="mailto:jonathan.yates@materials.ox.ac.uk" target="_blank">jonathan.yates@materials.ox.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 21 Jun 2013, at 21:59, Haowei Peng <<a href="mailto:haoweipeng@gmail.com">haoweipeng@gmail.com</a>><br>
<div class="im"> wrote:<br>
<br>
> Hello,<br>
><br>
> I found that the memory usage increases with the iteration of wannierising.<br>
> I already tried the keywork "optimisation = 0", which does not help.<br>
> If the num_iter is quite large and convergence is not good, this will lead to crash in the end.<br>
> Can this be avoided?<br>
<br>
</div>There is no reason for this to happen - and indeed I spent quite a bit of time using various memory profiling tools to get the memory estimate accurate and check for any leaks (this is particularly critical when wannier90 is called in library mode).<br>

<br>
 So I've no idea why you observe this behaviour on your machine. Perhaps you can tell us something about the machine/OS/compiler/libraries (the only thing that does come to mind is if you are using IBMs xlf90 compiler, instead of xlf95. The former is strict f90 and doesn't automatically deallocate arrays when they go out of scope)<br>

<span class="HOEnZb"><font color="#888888"><br>
 Jonathan<br>
<br>
<br>
<br>
<br>
--<br>
Department of Materials, University of Oxford, Parks Road, Oxford, OX1 3PH, UK<br>
tel: <a href="tel:%2B44%20%280%291865%20612797" value="+441865612797">+44 (0)1865 612797</a>                <a href="http://users.ox.ac.uk/~oums0549/" target="_blank">http://users.ox.ac.uk/~oums0549/</a><br>
<br>
_______________________________________________<br>
Wannier mailing list<br>
<a href="mailto:Wannier@quantum-espresso.org">Wannier@quantum-espresso.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/wannier" target="_blank">http://www.democritos.it/mailman/listinfo/wannier</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Haowei Peng<br>
<br>
National Renewable Energy Laboratory<br>15013 Denver West Pkwy<br>Golden, CO 80401<br>
</div>