trilinear Function

public function trilinear(phic, x) result(phi)

trilinear interpolation

Arguments

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

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)

interpolated phi