#include "implicit_f.inc"
Go to the source code of this file.
◆ cr_spline_knots()
| subroutine cr_spline_knots |
( |
dimension(0:3,3), intent(in) | pts, |
|
|
dimension(0:3), intent(inout) | knots, |
|
|
intent(in) | alpha ) |
Definition at line 30 of file cr_spline_knots.F.
31
32
33
34#include "implicit_f.inc"
35
36
37
38
39
40
41
42
43
44
45
46
47
48
50 my_real,
INTENT(INOUT) :: knots(0:3)
51
52
53
55
56
57
58 knots(0)=0.0
59 x=pts(1-1,1)-pts(1,1)
60 y=pts(1-1,2)-pts(1,2)
61 z=pts(1-1,3)-pts(1,3)
62 knots(1)=knots(0)+ exp(
alpha*log(sqrt(x*x+y*y+z*z)))
63 x=pts(1,1)-pts(1+1,1)
64 y=pts(1,2)-pts(1+1,2)
65 z=pts(1,3)-pts(1+1,3)
66 knots(2)=knots(1)+ exp(
alpha*log(sqrt(x*x+y*y+z*z)))
67 x=pts(1+1,1)-pts(1+2,1)
68 y=pts(1+1,2)-pts(1+2,2)
69 z=pts(1+1,3)-pts(1+2,3)
70 knots(3)=knots(2)+ exp(
alpha*log(sqrt(x*x+y*y+z*z)))