Ann new file getpp3.f90.

This commit is contained in:
Joe Taylor 2024-02-15 14:12:45 -05:00
parent 17d9c6bf81
commit 93fd8246fb

22
lib/superfox/getpp3.f90 Normal file
View File

@ -0,0 +1,22 @@
subroutine getpp3(s3,workdat,p)
use sfox_mod
real s3(NQ,NN)
integer workdat(NN)
integer a(NN)
! a(1:NN)=workdat(NN:1:-1)
a=workdat
psum=0.
do j=1,NN
i=a(j)+1
x=s3(i,j)
s3(i,j)=0.
psum=psum + x
s3(i,j)=x
enddo
p=psum/NN
return
end subroutine getpp3