summaryrefslogtreecommitdiff
path: root/Dragon/src/SYBRII.f
blob: 2db117e09236532eabb421fbf7d1fe7e372363c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
*DECK SYBRII
      SUBROUTINE SYBRII(PP,SG,TAU0,TAUI)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Evaluation of the $R_{ii}$ function in 1D slab geometry.
*
*Copyright:
* Copyright (C) 2005 Ecole Polytechnique de Montreal
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version
*
*Author(s): A. Hebert
*
*Parameters: input
* SG     specular parity sign.
* TAU0   side-to-side optical path.
* TAUI   optical path in volume i.
*
*Parameters: output
* PP     value of the expression.
*
*-----------------------------------------------------------------------
*
*----
*  SUBROUTINE ARGUMENTS
*----
      REAL PP,SG,TAU0,TAUI
*
      IF(TAUI.GT.1.0E-10) THEN
         PP=SG*TABEN(2,TAU0)*TAUI-(TABEN(3,TAU0)-TABEN(3,TAU0+SG*TAUI))
      ELSE
         PP=0.5*(TAUI**2)*TABEN(1,TAU0)
      ENDIF
      RETURN
      END