| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | coefs(:) |
B-Spline coefficients |
FUNCTION polyProfile_new(coefs) RESULT(sf) ! INPUT VARIABLES -------------------------! REAL, INTENT(IN) :: coefs(:) !! B-Spline coefficients ! OUTPUT VARIABLES -------------------------! TYPE(t_rProfile_poly) :: sf ! LOCAL VARIABLES -------------------------! INTEGER :: n_coefs ! CODE --------------------------------------------------------------------------------------------------------------------------! n_coefs=SIZE(coefs) sf%deg = n_coefs-1 sf%n_coefs = n_coefs ALLOCATE(sf%coefs(1:n_coefs)) sf%coefs = coefs END FUNCTION polyProfile_new