// File: jamesliu516[P]amrdg2d/formlist.cpp
// Function: formExtWallInOutBndry()
void formExtWallInOutBndry()
{
	Node *current, *pnext;
	OctCell *pcell;
    ExtWallBndry.clear();
    InletBndry.clear();
    OutletBndry.clear();
	current = HeadListAllGrid;
    while(current != NULL)
    {
        pnext = current->next;
        pcell=current->cell;

        if(pcell->exflag==2 && (pcell->xc1>xInlet
                && pcell->xc1<xOutlet) ){
            ExtWallBndry.push_back(pcell);
        }

        if(pcell->exflag==2 && pcell->xc1<xInlet
            &&( pcell->yc1<ExtPnt0[1] && pcell->yc1>ExtPnt1[1] ) ){
            InletBndry.push_back(pcell);
        }

        if(pcell->exflag==2 && pcell->xc1>xOutlet
          &&(pcell->yc1<ExtPnt3[1] && pcell->yc1>ExtPnt2[1])){
            OutletBndry.push_back(pcell);
        }
        current=pnext;
    }
    cout<<"exteral wall face cells have been formed\n";
}

// Assembly:
subq $0x38, %rsp
leaq 0x35825(%rip), %rdi     # 0x506b0
callq 0x1b440
leaq 0x35831(%rip), %rdi     # 0x506c8
callq 0x1b440
leaq 0x3583d(%rip), %rdi     # 0x506e0
callq 0x1b440
leaq 0x357f1(%rip), %rax     # 0x506a0
movq (%rax), %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x1b086
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movswl 0x1b2(%rax), %eax
cmpl $0x2, %eax
jne 0x1af33
movq 0x20(%rsp), %rax
movsd 0x278(%rax), %xmm0
movsd 0x24193(%rip), %xmm1    # 0x3f098
ucomisd %xmm1, %xmm0
jbe 0x1af33
movq 0x20(%rsp), %rax
movsd 0x24198(%rip), %xmm0    # 0x3f0b0
ucomisd 0x278(%rax), %xmm0
jbe 0x1af33
leaq 0x35787(%rip), %rdi     # 0x506b0
leaq 0x20(%rsp), %rsi
callq 0x1b460
movq 0x20(%rsp), %rax
movswl 0x1b2(%rax), %eax
cmpl $0x2, %eax
jne 0x1afd4
movq 0x20(%rsp), %rax
movsd 0x24143(%rip), %xmm0    # 0x3f098
ucomisd 0x278(%rax), %xmm0
jbe 0x1afd4
movq 0x20(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
leaq 0x35967(%rip), %rdi     # 0x508e0
movl $0x1, %esi
callq 0x1e9b0
movsd 0x18(%rsp), %xmm1
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1afd4
movq 0x20(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x35943(%rip), %rdi     # 0x508f0
movl $0x1, %esi
callq 0x1e9b0
movsd 0x10(%rsp), %xmm0
ucomisd (%rax), %xmm0
jbe 0x1afd4
leaq 0x356fe(%rip), %rdi     # 0x506c8
leaq 0x20(%rsp), %rsi
callq 0x1b460
movq 0x20(%rsp), %rax
movswl 0x1b2(%rax), %eax
cmpl $0x2, %eax
jne 0x1b077
movq 0x20(%rsp), %rax
movsd 0x278(%rax), %xmm0
movsd 0x240b2(%rip), %xmm1    # 0x3f0b0
ucomisd %xmm1, %xmm0
jbe 0x1b077
movq 0x20(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x358f2(%rip), %rdi     # 0x50910
movl $0x1, %esi
callq 0x1e9b0
movsd 0x8(%rsp), %xmm1
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1b077
movq 0x20(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, (%rsp)
leaq 0x358af(%rip), %rdi     # 0x50900
movl $0x1, %esi
callq 0x1e9b0
movsd (%rsp), %xmm0
ucomisd (%rax), %xmm0
jbe 0x1b077
leaq 0x35673(%rip), %rdi     # 0x506e0
leaq 0x20(%rsp), %rsi
callq 0x1b460
movq 0x28(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x1aeb7
movq 0x2ff43(%rip), %rdi     # 0x4afd0
leaq 0x243cb(%rip), %rsi     # 0x3f45f
callq 0x3240
addq $0x38, %rsp
retq
nop