trilineardif Function

public function trilineardif(phic, x) result(dphi)

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: phic(2,2,2)

phic the value of phi at the corner of cubic box of side 1

real(kind=real64), intent(in) :: x(3)

location inside the cube (0<=x<=1) or outside x<0 x>1

Return Value real(kind=real64), (3)

dphi(1)=dphi/dx, dphi(2)=dphi/dy, dphi(3)=dphi/dz