mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 06:25:21 -04:00
3 digit accuracy for PSPW because of https://github.com/nwchemgit/nwchem/issues/970
This commit is contained in:
parent
0a3912ef4e
commit
ba9663b356
1 changed files with 25 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ foreach $filename (@FILES_TO_PARSE) {
|
|||
}
|
||||
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;
|
||||
|
|
@ -335,6 +335,30 @@ foreach $filename (@FILES_TO_PARSE) {
|
|||
}
|
||||
}
|
||||
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: $_";}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue