Created
February 11, 2019 16:09
-
-
Save ivan-pi/b52138897ad65a427375bedd9331f420 to your computer and use it in GitHub Desktop.
Mehrstellenverfahren for the Poisson equation
This file contains hidden or 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
! See link below for details: | |
! https://scicomp.stackexchange.com/questions/6854/mehrstellenverfahren-for-poisson | |
! | |
program poisson_higher_order | |
implicit none | |
integer, parameter :: wp = kind(1.0d0) | |
real(wp), parameter :: pi = 4._wp*atan(0._wp) | |
contains | |
pure real(wp) function f(x) | |
real(wp), intent(in) :: x | |
f = sin(2._wp*pi*x) | |
end function | |
end program |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment