// File: /workspace/github_cpp_makefile_star2_O1/jamesliu516[P]amrdg2d/outputgrid.cpp
// Function: outputcell_new(int)
void outputcell_new(int ij)//output mesh
{
//
	ofstream fpxx;

	string proxfile1(FILE_PROX);
		
	string  str1=str0+proxfile1;
	
	ostringstream omess1;
	
	omess1 << str1<<"mesh_tn" << ij<<".plt";
	
	fpxx.open(omess1.str().c_str());

        fpxx<<"TITLE =\"EULER SOLVER\"\n"
        <<"VARIABLES = \"X\", \"Y\"\n"
        <<"ZONE N=   "<<points4out.size() << ", E=    "<< cellPoints.size()<< ", F=FEPOINT, ET=QUADRILATERAL\n";  
        
	for(vector<pointInCell>::size_type j=0;j!=points4out.size();++j)
	{
	  fpxx<<points4out[j].pt[0]<<"      "<<points4out[j].pt[1]<<"\n";
	}
	for(map<OctCell *, cellPointIndex> ::iterator ik=cellPoints.begin();ik!=cellPoints.end(); ++ik)
	{
		for(int i=0;i<4;i++)
		{
		    fpxx<<ik->second.iPoint[i]<<"   ";

		}
		fpxx<<"\n";
	}
	
/*    fpxx<<"\n\n";	
    fpxx<<"TITLE =\"Wall Points\"\n"
        <<"VARIABLES = \"X\", \"Y\"\n"
        <<"ZONE I=   "<<NPOINTCIRCLE<< ", F=POINT\n";  

    for(int ii=0; ii< NPOINTCIRCLE; ++ii) {
        fpxx<<Circle[ii].x<<"  "<<Circle[ii].y<<endl;
    }	
*/	
	
	fpxx.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movl %edi, %ebx
leaq 0x60(%rsp), %rdi
callq 0x3340
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x167db(%rip), %rsi     # 0x1e1f0
leaq 0x167d6(%rip), %rdx     # 0x1e1f2
movq %rsp, %rdi
callq 0x8ce8
leaq 0x22e75(%rip), %rsi     # 0x2a8a0
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x8bfd
leaq 0x260(%rsp), %rdi
callq 0x3290
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x260(%rsp), %rdi
callq 0x3250
movq %rax, %r14
leaq 0x167fd(%rip), %rsi     # 0x1e263
movl $0x7, %edx
movq %rax, %rdi
callq 0x3250
movq %r14, %rdi
movl %ebx, %esi
callq 0x3350
leaq 0x1676f(%rip), %rsi     # 0x1e1f3
movl $0x4, %edx
movq %rax, %rdi
callq 0x3250
leaq 0x268(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x32f0
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
movl $0x10, %edx
callq 0x3050
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ad2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x1671f(%rip), %rsi     # 0x1e1f8
leaq 0x60(%rsp), %rdi
movl $0x16, %edx
callq 0x3250
leaq 0x16720(%rip), %rsi     # 0x1e20f
leaq 0x60(%rsp), %rdi
movl $0x15, %edx
callq 0x3250
leaq 0x16720(%rip), %rsi     # 0x1e225
leaq 0x60(%rsp), %rdi
movl $0xa, %edx
callq 0x3250
leaq 0x22bdd(%rip), %r13     # 0x2a6f8
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x3, %rsi
movabsq $0x6db6db6db6db6db7, %rax # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rsi
leaq 0x60(%rsp), %rdi
callq 0x3160
movq %rax, %rbx
leaq 0x16722(%rip), %rsi     # 0x1e26b
movl $0x8, %edx
movq %rax, %rdi
callq 0x3250
leaq 0x22b6b(%rip), %rbp     # 0x2a6c8
movq 0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x3160
leaq 0x166c8(%rip), %rsi     # 0x1e238
movl $0x1e, %edx
movq %rax, %rdi
callq 0x3250
movq (%r13), %rdi
cmpq %rdi, 0x8(%r13)
je 0x7c20
xorl %ebx, %ebx
leaq 0x16726(%rip), %r15     # 0x1e2ba
xorl %r14d, %r14d
addq %rbx, %rdi
xorl %esi, %esi
callq 0xd506
movsd (%rax), %xmm0
leaq 0x60(%rsp), %rdi
callq 0x3300
movq %rax, %r12
movl $0x6, %edx
movq %rax, %rdi
leaq 0x17230(%rip), %rsi     # 0x1edf1
callq 0x3250
movq (%r13), %rdi
addq %rbx, %rdi
movl $0x1, %esi
callq 0xd506
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x3300
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3250
incq %r14
movq (%r13), %rdi
movq 0x8(%r13), %rax
subq %rdi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
addq $0x38, %rbx
cmpq %rax, %r14
jne 0x7b97
movq 0x18(%rbp), %rbx
addq $0x8, %rbp
cmpq %rbp, %rbx
je 0x7c8b
leaq 0x60(%rsp), %r14
leaq 0x171bb(%rip), %r15     # 0x1edf4
leaq 0x1667a(%rip), %r12     # 0x1e2ba
movl $0xa, %r13d
movl (%rbx,%r13,4), %esi
movq %r14, %rdi
callq 0x3350
movl $0x3, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3250
incq %r13
cmpq $0xe, %r13
jne 0x7c46
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3250
movq %rbx, %rdi
callq 0x3180
movq %rax, %rbx
cmpq %rbp, %rax
jne 0x7c40
leaq 0x60(%rsp), %rdi
callq 0x32a0
movq 0x1d324(%rip), %rsi     # 0x24fc0
leaq 0x260(%rsp), %rdi
callq 0x3100
leaq 0x2d0(%rsp), %rdi
callq 0x30b0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7cd1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3220
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7cec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
movq 0x1d2c5(%rip), %rax     # 0x24fb8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x68(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x60(%rsp,%rcx)
callq 0x31d0
leaq 0x158(%rsp), %rdi
callq 0x30b0
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d6a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3220
jmp 0x7d6a
jmp 0x7d67
movq %rax, %rbx
jmp 0x7d8b
movq %rax, %rbx
jmp 0x7da6
movq %rax, %rbx
jmp 0x7dc1
jmp 0x7d67
jmp 0x7d67
jmp 0x7d67
movq %rax, %rbx
movq 0x1d24f(%rip), %rsi     # 0x24fc0
leaq 0x260(%rsp), %rdi
callq 0x3100
leaq 0x2d0(%rsp), %rdi
callq 0x30b0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7da6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3220
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7dc1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x60(%rsp), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x3370