55#include "implicit_f.inc"
71 TYPE(brick_entity) ,
POINTER :: pCC
72 TYPE(list_adj) ,
POINTER :: pADJ
73 TYPE(cut_plane) ,
POINTER :: pPLANE
74 TYPE(list_secnd) ,
POINTER :: pSECND
75 TYPE(edge_entity) ,
POINTER :: pEDGE
80 itsk = omp_get_thread_num()
89 print *,
" |-------------------------------|"
90 print *,
" | WRITE_CUT_CELL_BUFFER.F |"
91 print *,
" |-------------------------------|"
96 OPEN( unit=iunit, file =
"CutCellBuffer.txt" )
97 WRITE(unit=iunit, fmt=
'(A,I10)')
"Writing Cut Cell Buffer, NC=", ncycle
103 WRITE(unit=iunit, fmt=
'(A ,2I10)')
" (IB,iID)=", ib,pcc%ID
104 WRITE(unit=iunit, fmt=
'(A,11I10)')
" 1.", pcc%NG, pcc%IDLOC, pcc%ICODE, pcc%IDBLE, pcc%NBITS, pcc%NPQTS, pcc%NBCUT
105 . , pcc%MainID , pcc%OldMainStrongNode, pcc%MLW, pcc%ITASK
106 WRITE(unit=iunit, fmt=
'(A,08I10) ')
" 2.", pcc%SECID_Cell(1:8)
107 WRITE(unit=iunit, fmt=
'(A,08I10) ')
" 3.", pcc%NODE(1:8)%OLD_WhichCell
108 WRITE(unit=iunit, fmt=
'(A,08I10) ')
" 4.", pcc%NODE(1:8)%WhichCell
109 WRITE(unit=iunit, fmt=
'(A,09I10) ')
" 5.", pcc%POLY
110 WRITE(unit=iunit, fmt=
'(A,09I10) ')
" 6.", pcc%POLY(1:9)%NumPOINT
111 WRITE(unit=iunit, fmt=
'(A,54I10) ')
" 7.", (/ (pcc%POLY(1:9)%FACE(j)%NumPOINT,j=1,6) /)
112 WRITE(unit=iunit, fmt=
'(A,01I10) ')
" 8.", pcc%Seg_add_LFT
113 WRITE(unit=iunit, fmt=
'(A,01I10) ')
" 9.", pcc%Seg_add_LLT
114 WRITE(unit=iunit, fmt=
'(A,30I10) ')
"10.", pcc%Adjacent_Brick(1:6,1:5)
115 WRITE(unit=iunit, fmt=
'(A,270I10) ')
"11.", (/
116 . (pcc%POLY(1:9)%FACE(j)%Adjacent_Cell(1),j=1,6),
117 . (pcc%POLY(1:9)%FACE(j)%Adjacent_Cell(2),j=1,6),
118 . (pcc%POLY(1:9)%FACE(j)%Adjacent_Cell(3),j=1,6),
119 . (pcc%POLY(1:9)%FACE(j)%Adjacent_Cell(4),j=1,6),
120 . (pcc%POLY(1:9)%FACE(j)%Adjacent_Cell(5),j=1,6)
122 WRITE(unit=iunit, fmt=
'(A,54I10) ')
"12.", (/ (pcc%POLY(1:9)%FACE(j)%NAdjCell ,j=1,6) /)
123 WRITE(unit=iunit, fmt=
'(A,72I10) ')
"13.", (/ (pcc%POLY(1:9)%ListNodID(j) ,j=1,8) /)
124 WRITE(unit=iunit, fmt=
'(A,09I10) ')
"14.", pcc%POLY(1:9)%IsMain
125 WRITE(unit=iunit, fmt=
'(A,08I10) ')
"15.", pcc%NODE(1:8)%NodWasMain
126 WRITE(unit=iunit, fmt=
'(A,36I10) ')
"16.", (/ (pcc%POLY(1:9)%WhereIsMain(j),j=1,4) /)
127 WRITE(unit=iunit, fmt=
'(A,08I10) ')
"17.", pcc%NODE(1:8)%WhereWasMain
128 WRITE(unit=iunit, fmt=
'(A,15I10) ')
"18.", pcc%MergeTarget(1:3,1:5)
129 WRITE(unit=iunit, fmt=
'(A,01I10) ')
"19.", pcc%Ntarget
132 WRITE(unit=iunit, fmt=
'(A,270F20.14)')
"21.", (/
133 . (pcc%POLY(1:9)%FACE(j)%Adjacent_FLUX
134 . (pcc%POLY(1:9)%FACE(j)%Adjacent_FLUX(2),j=1,6) ,
135 . (pcc%POLY(1:9)%FACE(j)%Adjacent_FLUX(3),j=1,6) ,
136 . (pcc%POLY(1:9)%FACE(j)%Adjacent_FLUX(4),j=1,6) ,
137 . (pcc%POLY(1:9)%FACE(j)%Adjacent_FLUX(5),j=1,6)
139 WRITE(unit=iunit, fmt=
'(A,270F20.14)')
"22.", (/
140 . (pcc%POLY(1:9)%FACE(j)%Adjacent_upwFLUX(1),j=1,6) ,
142 . (pcc%POLY(1:9)%FACE(j)%Adjacent_upwFLUX(3),j=1,6
143 . (pcc%POLY(1:9)%FACE(j)%Adjacent_upwFLUX(4),j=1,6) ,
144 . (pcc%POLY(1:9)%FACE(j)%Adjacent_upwFLUX(5),j
146 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"23.", pcc%POLY
147 WRITE(unit=iunit, fmt=
'(A,18F20.14) ')
"24.", pcc%N(1:6,1:3)
148 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"25.", pcc%POLY(1:9)%PHI
149 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"26.", pcc%POLY(1:9)%DPHI
150 WRITE(unit=iunit, fmt=
'(A,01F20.14) ')
"28.", pcc%Vnew_SCell
151 WRITE(unit=iunit, fmt=
'(A,01F20.14) ')
"29.", pcc%Vold_SCell
152 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"30.", pcc%POLY(1:9)%Vnew
153 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"31.", pcc%POLY(1:9)%Vold
154 WRITE(unit=iunit, fmt=
'(A,09F20.14) ')
"32.", pcc%POLY(1:9)%OLD_Vnew
155 WRITE(unit=iunit, fmt=
'(A,18F20.14) ')
"33.", (/ (pcc%POLY(1:9)%CellCenter(j),j=1,3) /)
156 WRITE(unit=iunit, fmt=
'(A,63F20.14) ')
"34.", (/ (pcc%POLY(1:9)%Face(j) ,j=0,6) /)
157 WRITE(unit=iunit, fmt=
'(A,06F20.14) ')
"35.", pcc%Face_Brick(1:6)
158 WRITE(unit=iunit, fmt=
'(A,01F20.14) ')
"36.", pcc%UncutVol
163 WRITE(unit=iunit, fmt=
'(A,01I10) ')
" ", padj%Num
164 WRITE(unit=iunit, fmt=
'(A,48I10) ')
" ", padj%Num_inv(1:48)
165 WRITE(unit=iunit, fmt=
'(A,48I10) ')
" ", padj%IV(1:48)
166 WRITE(unit=iunit, fmt=
'(A,48I10) ')
" ", padj%IB(1:48)
167 WRITE(unit=iunit, fmt=
'(A,48I10) ')
" ", padj%ICELL(1:48)
168 WRITE(unit=iunit, fmt=
'(A,48I10) ')
" ", padj%SecndFACE(1:48)
174 WRITE(unit=iunit, fmt=
'(A,03F20.14)' )
" ", pplane%N(1:3)
175 WRITE(unit=iunit, fmt=
'(A,03F20.14) ')
" ", pplane%B(1:3)
176 WRITE(unit=iunit, fmt
'(A,01F20.14) '" ", pplane%SCUT
177 WRITE(unit=iunit, fmt=
'(A,01F20.14) ')
" ", pplane%SEFF
178 WRITE(unit=iunit, fmt=
'(A,18F20.14) ')
" ", pplane%P(1:3,1:6)
179 WRITE(unit=iunit, fmt=
'(A,01I10) ')
" ", pplane%NP
184 WRITE(unit=iunit, fmt=
'(A,01F20.14)' )
" ", psecnd%VOL_Unmerged
185 WRITE(unit=iunit, fmt=
'(A,01I10)' )
" ", psecnd%Num
186 WRITE(unit=iunit, fmt=
'(A,01I10)' )
" ", psecnd%NumSecndNodes
187 WRITE(unit=iunit, fmt=
'(A,24I10)' )
" ", psecnd%FM(1:24)
188 WRITE(unit=iunit, fmt=
'(A,24I10)' )
" ", psecnd%FV(1:24)
189 WRITE(unit=iunit, fmt=
'(A,24I10)' )
" ", psecnd%IV(1:24)
190 WRITE(unit=iunit, fmt=
'(A,24I10)' ) " ", psecnd%IBV(1:24)
191 WRITE(unit=iunit, fmt=
'(A,24I10)' )
" ", psecnd%ICELLv(1:24)
192 WRITE(unit=iunit, fmt=
'(A,24F20.14)'" ", psecnd%VOL(1:24)
197 WRITE(unit=iunit, fmt=
'(A,02I10)' )
" ", pedge%NODE(1:2)
198 WRITE(unit=iunit, fmt=
'(A,01I10)' )
" ", pedge%NBCUT
199 WRITE(unit=iunit, fmt=
'(A,02I10)' )
" "
200 WRITE(unit=iunit, fmt=
'(A,02F20.14)')
" ", pedge%CUTCOOR(1:2)
201 WRITE(unit=iunit, fmt=
'(A,06F20.14)')
" ", pedge%CUTPOINT(1:3,1:2)
202 WRITE(unit=iunit, fmt=
'(A,06F20.14)')
" ", pedge%CUTVEL(1:3,1:2)
203 WRITE(unit=iunit, fmt=
'(A,03F20.14)')
" ", pedge%VECTOR(1:3)
204 WRITE(unit=iunit, fmt=
'(A,01F20.14)')
" ", pedge%LEN
208 WRITE(unit=iunit, fmt=
'(8A14)' )
" ", (pcc%SECTYPE(j),j=1,8)