[DONE] Missing dummy line in tnlo_5.files

Documentation, Web site and code modifications

Moderators: baguetl, routerov

Locked
ilukacevic
Posts: 271
Joined: Sat Jan 16, 2010 12:05 pm
Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
Contact:

[DONE] Missing dummy line in tnlo_5.files

Post by ilukacevic » Fri Jan 22, 2010 11:45 am

Dear all,

while analysing merged DDBs from nlo & strain calc., I encountered that anaddb asks for another dummy line in tnlo_5.files file - tnlo_5_dummy4. Otherwise, I got an error:
At line 79 of file init9.F90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file

It concerns the ddk ddb for elphon. I used tnlo_5.in and tnlo_5.files from tutorial without changes.

If I'm again wrong (as in nlo Tutorial) or this happens only in my specific case, I apologize in advance.

Cheers!

Igor Lukacevic

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Missing dummy line in tnlo_5.files

Post by mverstra » Sat Jan 23, 2010 7:17 pm

ilukacevic wrote:Dear all,

while analysing merged DDBs from nlo & strain calc., I encountered that anaddb asks for another dummy line in tnlo_5.files file - tnlo_5_dummy4. Otherwise, I got an error:
At line 79 of file init9.F90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file

It concerns the ddk ddb for elphon. I used tnlo_5.in and tnlo_5.files from tutorial without changes.

Hello Igor,

Normally the file should be ok: the composition of the files file should be 7 lines (my modifications):

tnlo_5.in
tnlo_5.out
tnlo_4.ddb.out
tnlo_5_thm_dummy
tnlo_5_gkk_dummy
tnlo_5_ep_dummy
tnlo_5_ddk_dummy

It should be ok, but is not actually tested because in the tests the anaddb files file is created on the fly, and the tnlo_5.files is not used. I have corrected the anaddb documentation as well, and put a reference in the html doc to explain the process. This files file should actually be in doc/ and not in tests/ as it is not really used for the tests. We'll have to think about how to reorganize things.

For your error, something else is going on... Could you give us the version of anaddb/abinit, and the files file you are using? It may be that they are incompatible, as things have changed from 5.4 to 5.8 and so on


If I'm again wrong (as in nlo Tutorial) or this happens only in my specific case, I apologize in advance.

Cheers!

Igor Lukacevic


Not at all - your comment was quite correct in that the correspondence between input acell and acell inside the program is not transparent: for the input conventional units are more convenient, and inside the lattice vector lengths are always used.

To make matters worse, there are often compensating factors, such as 1./sqrt(2) (=0.7) or 1/sqrt(3) (=0.57), and the bohr radius (=0.53), which are more or less similar, so you end up getting numbers which are close for a_cubic in Angstrom and acell_primitive in bohr - terrible! If you have a suggestion on how to make things clearer in output and tutorial, tell us.

Matthieu
Matthieu Verstraete
University of Liege, Belgium

ilukacevic
Posts: 271
Joined: Sat Jan 16, 2010 12:05 pm
Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
Contact:

Re: Missing dummy line in tnlo_5.files

Post by ilukacevic » Mon Jan 25, 2010 11:01 am

mverstra wrote:Hello Igor,

Normally the file should be ok: the composition of the files file should be 7 lines (my modifications):

tnlo_5.in
tnlo_5.out
tnlo_4.ddb.out
tnlo_5_thm_dummy
tnlo_5_gkk_dummy
tnlo_5_ep_dummy
tnlo_5_ddk_dummy

It should be ok, but is not actually tested because in the tests the anaddb files file is created on the fly, and the tnlo_5.files is not used. I have corrected the anaddb documentation as well, and put a reference in the html doc to explain the process. This files file should actually be in doc/ and not in tests/ as it is not really used for the tests. We'll have to think about how to reorganize things.


I understand and agree. The files from the tutorial directory are the first ones a newbie uses and builds hers/his calculations upon. The Tutorial itself directs users to them.

mverstra wrote:For your error, something else is going on... Could you give us the version of anaddb/abinit, and the files file you are using? It may be that they are incompatible, as things have changed from 5.4 to 5.8 and so on


I'm using abinit.5.8.4p and anaddb which came with it. The files are in the attachment. tnlo_5.files contains the 4th dummy line I added. After adding, anaddb runs without problem. The one I took from the abinit-5.8.4/tests/tutorespfn/Input directory doesn't contain this additional line (the last one).

mverstra wrote:Not at all - your comment was quite correct in that the correspondence between input acell and acell inside the program is not transparent: for the input conventional units are more convenient, and inside the lattice vector lengths are always used.

To make matters worse, there are often compensating factors, such as 1./sqrt(2) (=0.7) or 1/sqrt(3) (=0.57), and the bohr radius (=0.53), which are more or less similar, so you end up getting numbers which are close for a_cubic in Angstrom and acell_primitive in bohr - terrible! If you have a suggestion on how to make things clearer in output and tutorial, tell us.


Now You're digging me out of the hole :-) I don't think that one can do much about the similarity of these numbers. But Your comparison sentence is quite good and gives a nice example. Maybe it should also find its place inside the Tutorial (at least I don't remember seeing it). It is like the fact that you repeat throughout the Tutorial that the convergence testing should be done on the property wanted, and not just ex. energy. After one finishes the Tutorial, this fact remains on mind.
My opinion is that when one tries to explain smth to someone, repeating is one of the key issues. If you repeat smth (what you think might be confusing or controversial (too strong word) in the future) from the beginning, then after enough time it will get into the ones ear and she/he will remember it, i.e. have it in mind. This can be tedious, for it usually concerns the basics, but the issue is what you want do achieve with the tutorial. Remembering is the start for understanding.
But You were absolutely right, anyone with even starting knowledge on crystals understands the difference between the input and inside acell.

Cheers!

Igor Lukacevic
Attachments
tnlo_5.files.in
(92 Bytes) Downloaded 312 times

Locked