-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
645141b
commit 8a4ade9
Showing
6 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
program test_interpolate | ||
use interpolate | ||
|
||
implicit none | ||
|
||
integer, parameter :: N_POINTS = 100 | ||
real(8), parameter :: X_MIN = 0.0d0, X_MAX = 2.0d0 * pi | ||
|
||
real(8), dimension(N_POINTS) :: x, y, dy, d2y | ||
|
||
call linspace(x, 0.0d0, 2.0d0 * pi, 100) | ||
|
||
call test_interpolate_1d | ||
|
||
contains | ||
|
||
subroutine generate_test_data_1d(x, y, dy, d2y) | ||
real, dimension(:), intent(in) :: x | ||
real, dimension(:), intent(out) :: y, dy, d2y | ||
integer :: i | ||
|
||
y = cos(x) | ||
dy = -sin(x) | ||
d2y = -cos(x) | ||
|
||
end subroutine generate_test_data_1d | ||
|
||
subroutine test_interpolate_1d | ||
|
||
end subroutine test_interpolate_1d | ||
|
||
end program test_interpolate |