Page 1 of 1

One question about the chgdiff.pl script

Posted: Mon Nov 23, 2009 8:27 am
by Lizhe
The VASP developers supply some scripts about charge density. Now I have a question about the algorithm of chgdiff.pl usage:
chgdiff.pl (CHGCAR1) (CHGCAR2).
Does that means CHGCAR_diff = CHGCAR2 - CHGCAR1
or the reverse CHGCAR1 - CHGCAR2?

Note: I notice there is a description in the chgdiff.pl script written in Perl language.
usage: chgdiff.pl <reference CHGCAR> <CHGCAR2>\n

Thank you in advance for any confirmation.
<span class='smallblacktext'>[ Edited ]</span>

One question about the chgdiff.pl script

Posted: Tue Nov 24, 2009 3:29 am
by graeme
It is CHGCAR2 - CHGCAR1

One question about the chgdiff.pl script

Posted: Tue Dec 08, 2009 1:46 am
by Lizhe
[quote="graeme"]It is CHGCAR2 - CHGCAR1[/quote]

Thank you very much for the response.