<div dir="auto"><div>Currently [1] the routine MemCheck is only used when the -qtl flag is present, to check if enough memory is present to store some temporary files; it is called by l2main.F which would also need integer(8). Writeinit.F is in SRC_Globals and linked from other directories, so you don't need more changes.</div><div dir="auto"><br></div><div dir="auto">[1] It had another use to test for memory leaks in an older impi, which is now repaired.<br><br><div data-smartmail="gmail_signature" dir="auto">--<br>Professor Laurence Marks<br>Department of Materials Science and Engineering, Northwestern University<br><a href="http://www.numis.northwestern.edu" rel="noreferrer noreferrer noreferrer" target="_blank">www.numis.northwestern.edu</a><br>"Research is to see what everybody else has seen, and to think what nobody else has thought" Albert Szent-Györgyi</div><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, Feb 23, 2022, 7:27 AM Igor I Mazin <<a href="mailto:imazin2@gmu.edu" rel="noreferrer noreferrer noreferrer" target="_blank">imazin2@gmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My WIEN2k installation works fine - except for lapw2 -qtl.<br>
This module bombs with the following diagnostics:<br>
<br>
  x lapw2 -qtl -up<br>
forrtl: severe (64): input conversion error, unit -5, file Internal <br>
List-Directed Read<br>
Image              PC                Routine            Line        Source<br>
lapw2              00000000004D5A6B  Unknown               Unknown  Unknown<br>
lapw2              00000000004F8602  Unknown               Unknown  Unknown<br>
lapw2              00000000004F7388  Unknown               Unknown  Unknown<br>
lapw2              0000000000406170  memcheck_                 314 <br>
W2kinit_tmp_.F<br>
lapw2              000000000045FCC7  l2main_                   235 <br>
l2main_tmp_.F<br>
lapw2              000000000048D4C9  MAIN__                    767 <br>
lapw2_tmp_.F<br>
lapw2              00000000004059E2  Unknown               Unknown  Unknown<br>
<a href="http://libc-2.17.so" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">libc-2.17.so</a>       00002B9646810555  __libc_start_main     Unknown  Unknown<br>
lapw2              00000000004058E9  Unknown               Unknown  Unknown<br>
<br>
So, the offending module is W2kinit_tmp_.F, and the routine MemCheck.<br>
It appears that the problem is due to the fact that a regular integer <br>
cannot hold the relevant number, 3169012916.<br>
That is to say, the variables memtotal and memavail must be defined as <br>
integer(kind=8). I can redefine them in W2kinit_tmp_, and the error <br>
disappears, but of course, it needs to be corrected in all routines that <br>
use W2kinit_tmp_<br>
<br>
Something that needs to be fixed in the next release.<br>
<br>
P.S. What I do not understand is why it only bombs with the qtl switch.<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!F3jy9xyhUBkh5jHGKyUk6ZCd9AwH15IfdK9JtoIJZG7hh5Kin0Xn1vmixQOPAgowMB5YZw$" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!F3jy9xyhUBkh5jHGKyUk6ZCd9AwH15IfdK9JtoIJZG7hh5Kin0Xn1vmixQOPAgowMB5YZw$</a> <br>
SEARCH the MAILING-LIST at:  <a href="https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!F3jy9xyhUBkh5jHGKyUk6ZCd9AwH15IfdK9JtoIJZG7hh5Kin0Xn1vmixQOPAgrs3iotcA$" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!F3jy9xyhUBkh5jHGKyUk6ZCd9AwH15IfdK9JtoIJZG7hh5Kin0Xn1vmixQOPAgrs3iotcA$</a> <br>
</blockquote></div></div></div>