blob: 6a0f6d40bf24f206a066e3fc72f6eb3a56a2467f (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
*DECK XCGBCM
SUBROUTINE XCGBCM(IPTRK,NSOUT,NCODE,MATRT)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Built boundary condition matrix for reflection and transmission.
*
*Copyright:
* Copyright (C) 1998 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): G.Marleau
*
*Parameters: input
* IPTRK pointer to the tracking file.
* NSOUT number of outer surface.
* NCODE albedo type.
*
*Parameters: output
* MATRT BC matrix for reflection/transmission.
*
*----------------------------------------------------------------------
*
USE GANLIB
PARAMETER (NMCOD=6)
TYPE(C_PTR) IPTRK
INTEGER NSOUT,NCODE(NMCOD),MATRT(NSOUT),ISOUT
*----
* INITIALIZE MATRT TO REFLECTION
*----
DO 100 ISOUT=1,NSOUT
MATRT(ISOUT)=ISOUT
100 CONTINUE
*----
* FOR CARTESIAN CELL LOOK AT PERIODIC BOUNDARY CONDITIONS
* AND SET TRANSMISSION MATRIX
*----
IF(NSOUT.EQ.4) THEN
IF((NCODE(1) .EQ. 4) .AND. (NCODE(2) .EQ.4)) THEN
MATRT(1)=3
MATRT(3)=1
ENDIF
IF((NCODE(3) .EQ. 4) .AND. (NCODE(4) .EQ.4)) THEN
MATRT(2)=4
MATRT(4)=2
ENDIF
ENDIF
CALL LCMPUT(IPTRK,'BC-REFL+TRAN',NSOUT,1,MATRT)
RETURN
END
|