ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
module_libmassv Module Reference

Data Types

interface  vrec
 
interface  vsqrt
 

Functions/Subroutines

subroutine vrec_d (y, x, n)
 
subroutine vrec_s (y, x, n)
 
subroutine vsqrt_d (y, x, n)
 
subroutine vsqrt_s (y, x, n)
 

Variables

integer, parameter, private r4kind = selected_real_kind(6)
 
integer, parameter, private r8kind = selected_real_kind(12)
 

Function/Subroutine Documentation

◆ vrec_d()

subroutine module_libmassv::vrec_d ( real(kind=r8kind), dimension(*), intent(out)  y,
real(kind=r8kind), dimension(*), intent(in)  x,
integer, intent(in)  n 
)
25 !=================================================================================================================
26  integer,intent(in):: n
27  real(kind=r8kind),dimension(*),intent(in):: x
28  real(kind=r8kind),dimension(*),intent(out):: y
29 
30  integer:: j
31 !-----------------------------------------------------------------------------------------------------------------
32 
33  do j=1,n
34  y(j)=real(1.0,kind=r8kind)/x(j)
35  enddo
36 
double real
Definition: ERF_OrbCosZenith.H:9

◆ vrec_s()

subroutine module_libmassv::vrec_s ( real(kind=r4kind), dimension(*), intent(out)  y,
real(kind=r4kind), dimension(*), intent(in)  x,
integer, intent(in)  n 
)
41 !=================================================================================================================
42  integer,intent(in):: n
43  real(kind=r4kind),dimension(*),intent(in):: x
44  real(kind=r4kind),dimension(*),intent(out):: y
45 
46  integer:: j
47 !-----------------------------------------------------------------------------------------------------------------
48 
49  do j=1,n
50  y(j)=real(1.0,kind=r4kind)/x(j)
51  enddo
52 

◆ vsqrt_d()

subroutine module_libmassv::vsqrt_d ( real(kind=r8kind), dimension(*), intent(out)  y,
real(kind=r8kind), dimension(*), intent(in)  x,
integer, intent(in)  n 
)
57 !=================================================================================================================
58  integer,intent(in):: n
59  real(kind=r8kind),dimension(*),intent(in):: x
60  real(kind=r8kind),dimension(*),intent(out):: y
61 
62  integer:: j
63 !-----------------------------------------------------------------------------------------------------------------
64 
65  do j=1,n
66  y(j)=sqrt(x(j))
67  enddo
68 

◆ vsqrt_s()

subroutine module_libmassv::vsqrt_s ( real(kind=r4kind), dimension(*), intent(out)  y,
real(kind=r4kind), dimension(*), intent(in)  x,
integer, intent(in)  n 
)
73 !=================================================================================================================
74 
75  integer,intent(in):: n
76  real(kind=r4kind),dimension(*),intent(in):: x
77  real(kind=r4kind),dimension(*),intent(out):: y
78 
79  integer:: j
80 
81 !-----------------------------------------------------------------------------------------------------------------
82 
83  do j=1,n
84  y(j)=sqrt(x(j))
85  enddo
86 

Variable Documentation

◆ r4kind

integer, parameter, private module_libmassv::r4kind = selected_real_kind(6)
private
17  integer, parameter, private :: R4KIND = selected_real_kind(6)

Referenced by module_libmassv::vrec::vrec_s().

◆ r8kind

integer, parameter, private module_libmassv::r8kind = selected_real_kind(12)
private
18  integer, parameter, private :: R8KIND = selected_real_kind(12)

Referenced by module_libmassv::vrec::vrec_d().