Skip to content

Commit

Permalink
3 digit accuracy for PSPW because of nwchemgit#970
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Oct 11, 2024
1 parent aabd25e commit 9b64a7e
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion QA/nwparse.pl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
}
if (! $sgroup) {
if (/Total/ && /energy/) {
if (/SCF/ || /DFT/ || /CCSD/ || /MP2/ || /MCSCF/ || /RIMP2/ || /RISCF/ || /BAND/ || /PAW/ || /PSPW/ || /WFN1/ || /xTB/ ) {
if (/SCF/ || /DFT/ || /CCSD/ || /MP2/ || /MCSCF/ || /RIMP2/ || /RISCF/ || /BAND/ || /PAW/ || /WFN1/ || /xTB/ ) {
if ($debug) {print "\ndebug: $_";}
@line_tokens = split(' ');
$num_line_tokens = @line_tokens;
Expand All @@ -335,6 +335,30 @@
}
}
if (! $sgroup) {
if (/Total/ && /energy/) {
if ( /PSPW/ ) {
if ($debug) {print "\ndebug: $_";}
@line_tokens = split(' ');
$num_line_tokens = @line_tokens;
if ($debug) {
print "debug:line_tokens: @line_tokens \n";
print "debug:number : $num_line_tokens \n";
}
for($itok = 0;$itok < ($num_line_tokens-1); $itok++){
if (! $quiet) {
printf "%s ", @line_tokens[$itok];
}
printf FILE_OUTPUT "%s ", @line_tokens[$itok];
}
# *** Assumes $itok was incremented above
if (! $quiet) {
printf "%.5f\n", set_to_digits(@line_tokens[$itok],4);
}
printf FILE_OUTPUT "%.5f\n", set_to_digits(@line_tokens[$itok],4);
}
}
}
if (! $sgroup) {
if (/total/ && /energy/) {
if ( /MBPT/ || /LCCD/ || /CCD/ || /LCCSD/ || /CCSD/ || /CCSDT/ || /CCSDTQ/ || /QCISD/ || /CISD/ || /CISDT/ || /CISDTQ/ ) {
if ($debug) {print "\ndebug: $_";}
Expand Down

0 comments on commit 9b64a7e

Please sign in to comment.