mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-01-03 10:05:52 +01:00
added shank
This commit is contained in:
parent
b0823fe003
commit
61df4e01df
@ -34,6 +34,12 @@ double precision function shank_function(array,i,n)
|
|||||||
double precision :: b_n, b_n1
|
double precision :: b_n, b_n1
|
||||||
b_n = array(i) - array(i-1)
|
b_n = array(i) - array(i-1)
|
||||||
b_n1 = array(i+1) - array(i)
|
b_n1 = array(i+1) - array(i)
|
||||||
|
if(dabs(b_n1-b_n).lt.1.d-12)then
|
||||||
|
shank_function = array(i+1)
|
||||||
|
else
|
||||||
shank_function = array(i+1) - b_n1*b_n1/(b_n1-b_n)
|
shank_function = array(i+1) - b_n1*b_n1/(b_n1-b_n)
|
||||||
|
endif
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user