File: separate_compilation_06b.f90

package info (click to toggle)
lfortran 0.60.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 58,412 kB
  • sloc: cpp: 173,406; f90: 80,491; python: 17,586; ansic: 9,610; yacc: 2,356; sh: 1,401; fortran: 895; makefile: 37; javascript: 15
file content (22 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module separate_compilation_06b_module

use separate_compilation_06a_module
contains

function rpoisson_outward_pc(R, Rp, rho) result(V)
real, intent(in) :: R(:), Rp(:), rho(:)
real :: V(size(R))

integer :: N
integer, parameter :: max_it = 2
real :: rho_mid(3), pi = 3.14159265358979323846

N = size(R)
rho_mid = get_midpoints(R(:4), rho(:4))
print *, "sum(rho_mid): ", sum(rho_mid)
if ( abs(sum(rho_mid) - 3.76053631e-01 ) > 1e-8 ) error stop
end function

end module