diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
| commit | 37f727ac0746fd85504aa46c1f023c09b3eff33a (patch) | |
| tree | c8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/geodist.f90 | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/geodist.f90')
| -rw-r--r-- | lib/geodist.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/geodist.f90 b/lib/geodist.f90 index 2ca75535..f93bde92 100644 --- a/lib/geodist.f90 +++ b/lib/geodist.f90 @@ -29,6 +29,13 @@ subroutine geodist(Eplat,Eplon,Stlat,Stlon,Az,Baz,Dist) data D2R/0.01745329251994/ ! degrees to radians conversion factor
data Pi2/6.28318530718/
+ if(abs(Eplat-Stlat).lt.0.02 .and. abs(Eplon-Stlon).lt.0.02) then
+ Az=0.
+ Baz=180.0
+ Dist=0
+ go to 999
+ endif
+
BOA = BL/AL
F = 1.0 - BOA
! Convert st/end pts to radians
@@ -93,4 +100,6 @@ subroutine geodist(Eplat,Eplon,Stlat,Stlon,Az,Baz,Dist) az = 360.0 - az
baz = 360.0 - baz
+
+999 return
end subroutine geodist
|
