Search found 1 match

by lisu555
Thu Jan 18, 2018 7:30 am
Forum: VTSTTools
Topic: Questions about “chgdiff.pl CHGCAR1 CHGCAR2”
Replies: 3
Views: 23249

Re: Questions about “chgdiff.pl CHGCAR1 CHGCAR2”

But I am confused that: the script is

$line1 = <IN1>;
$line2 = <IN2>;
@line1 = split(/\s+/,$line1);
@line2 = split(/\s+/,$line2);
for ($j=1; $j<@line1; $j++) {
$line1[$j] = $line2[$j]-$line1[$j];


it seems to be CHGCAR2 - CHGCAR1 ?