My Project
Public Member Functions | List of all members
mod_spherical::arcx Interface Reference

Public Member Functions

subroutine arcx_flt (XX1, YY1, XX2, YY2, ARCX1)
 
subroutine arcx_dbl (XX1, YY1, XX2, YY2, ARCX1)
 

Detailed Description

Definition at line 73 of file mod_spherical.f90.

Member Function/Subroutine Documentation

◆ arcx_dbl()

subroutine mod_spherical::arcx::arcx_dbl ( real(dp), intent(in)  XX1,
real(dp), intent(in)  YY1,
real(dp), intent(in)  XX2,
real(dp), intent(in)  YY2,
real(dp), intent(out)  ARCX1 
)

Definition at line 234 of file mod_spherical.f90.

234  IMPLICIT NONE
235  REAL(DP), INTENT(IN) :: XX1,YY1,XX2,YY2
236  REAL(DP), INTENT(OUT)::ARCX1
237 
238  REAL(DP) :: X1,Y1,X2,Y2,TY
239  REAL(DP) :: XTMP
240 
241  IF(xx1 == xx2)THEN
242  arcx1=0.0_dp
243  ELSE
244  x1=xx1*deg2rad
245  y1=yy1*deg2rad
246 
247  x2=xx2*deg2rad
248  y2=yy2*deg2rad
249 
250  xtmp = x2-x1
251  IF(xtmp > pi)THEN
252  xtmp = real(-2*pi,dp)+xtmp
253  ELSE IF(xtmp < -pi)THEN
254  xtmp = real(2*pi,dp)+xtmp
255  END IF
256 
257  ty=0.5_dp*(y2+y1)
258  arcx1=rearth*dcos(ty)*xtmp
259  END IF
260 
261  RETURN
real(dp), parameter rearth
Definition: mod_main.f90:884
real(dp), parameter pi
Definition: mod_main.f90:880
integer, parameter dp
Definition: mod_prec.f90:52
real(dp), parameter deg2rad
Definition: mod_main.f90:885

◆ arcx_flt()

subroutine mod_spherical::arcx::arcx_flt ( real(spa), intent(in)  XX1,
real(spa), intent(in)  YY1,
real(spa), intent(in)  XX2,
real(spa), intent(in)  YY2,
real(spa), intent(out)  ARCX1 
)

Definition at line 307 of file mod_spherical.f90.

307  IMPLICIT NONE
308  REAL(SPA), INTENT(IN) :: XX1,YY1,XX2,YY2
309  REAL(SPA), INTENT(OUT)::ARCX1
310 
311  REAL(DP) ::ARCX_DP
312 
313  CALL arcx_dbl(dble(xx1),dble(yy1),dble(xx2),dble(yy2),arcx_dp)
314  arcx1 = arcx_dp
315 
subroutine arcx_dbl(XX1, YY1, XX2, YY2, ARCX1)

The documentation for this interface was generated from the following file: