PSI sics-cvs-psi_pre-ansto
This commit is contained in:
13
difrac/ang360.f
Normal file
13
difrac/ang360.f
Normal file
@@ -0,0 +1,13 @@
|
||||
C-----------------------------------------------------------------------
|
||||
C Routine to make the difference between ANG and EXPCT small
|
||||
C-----------------------------------------------------------------------
|
||||
SUBROUTINE ANG360 (ANG,EXPCT)
|
||||
100 D = EXPCT - ANG
|
||||
ISIGN = 1
|
||||
IF (D .LT. 0.) ISIGN = -1
|
||||
IF (ABS(D) .GE. 180.0) THEN
|
||||
ANG = ANG + ISIGN*360.0
|
||||
GO TO 100
|
||||
ENDIF
|
||||
RETURN
|
||||
END
|
||||
Reference in New Issue
Block a user