// File: /workspace/github_cpp_makefile_star2_O2/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 0x1d8(%rsp), %rdi
callq 0x3320
leaq 0x13bbd(%rip), %rsi     # 0x1b250
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x4b4e
leaq 0x211f7(%rip), %rsi     # 0x288a0
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x8415
leaq 0x60(%rsp), %rdi
callq 0x3260
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x31b0
leaq 0x13beb(%rip), %rsi     # 0x1b2c3
movq %rax, %rdi
callq 0x31d0
movq %rax, %rdi
movl %ebx, %esi
callq 0x3330
leaq 0x13b62(%rip), %rsi     # 0x1b253
movq %rax, %rdi
callq 0x31d0
leaq 0x68(%rsp), %rsi
movq %rsp, %rdi
callq 0x32d0
movq (%rsp), %rsi
leaq 0x1d8(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x3040
movq %rsp, %rdi
callq 0x33b8
leaq 0x13b2f(%rip), %rsi     # 0x1b258
leaq 0x1d8(%rsp), %rdi
callq 0x31d0
leaq 0x13b32(%rip), %rsi     # 0x1b26f
movq %rax, %rdi
callq 0x31d0
leaq 0x13b39(%rip), %rsi     # 0x1b285
movq %rax, %rdi
callq 0x31d0
movq %rax, %rdi
leaq 0x20f9a(%rip), %rbx     # 0x286f8
movq 0x8(%rbx), %rax
subq (%rbx), %rax
pushq $0x38
popq %rcx
cqto
movq %rcx, %r13
idivq %rcx
movq %rax, %rsi
callq 0x3140
leaq 0x13b4c(%rip), %rsi     # 0x1b2cb
movq %rax, %rdi
callq 0x31d0
leaq 0x20f3a(%rip), %rcx     # 0x286c8
movq 0x28(%rcx), %rsi
movq %rax, %rdi
callq 0x3140
leaq 0x13af7(%rip), %rsi     # 0x1b298
movq %rax, %rdi
callq 0x31d0
xorl %r14d, %r14d
leaq 0x13b67(%rip), %r15     # 0x1b31a
xorl %ebp, %ebp
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
subq %rdi, %rax
cqto
idivq %r13
cmpq %rax, %rbp
je 0x7824
addq %r14, %rdi
xorl %esi, %esi
callq 0xc3aa
movsd (%rax), %xmm0
leaq 0x1d8(%rsp), %rdi
callq 0x32e0
movq %rax, %rdi
leaq 0x1458b(%rip), %rsi     # 0x1bd79
callq 0x31d0
movq %rax, %r12
movq (%rbx), %rdi
addq %r14, %rdi
pushq $0x1
popq %rsi
callq 0xc3aa
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x32e0
movq %rax, %rdi
movq %r15, %rsi
callq 0x31d0
incq %rbp
addq $0x38, %r14
jmp 0x77b5
leaq 0x20e9d(%rip), %r13     # 0x286c8
movq 0x18(%r13), %rbx
addq $0x8, %r13
leaq 0x13ae0(%rip), %r14     # 0x1b31a
leaq 0x1d8(%rsp), %r15
leaq 0x14533(%rip), %r12     # 0x1bd7c
cmpq %r13, %rbx
je 0x788a
pushq $0xa
popq %rbp
cmpq $0xe, %rbp
je 0x7872
movl (%rbx,%rbp,4), %esi
movq %r15, %rdi
callq 0x3330
movq %rax, %rdi
movq %r12, %rsi
callq 0x31d0
incq %rbp
jmp 0x7851
movq %r15, %rdi
movq %r14, %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3150
movq %rax, %rbx
jmp 0x7849
leaq 0x1d8(%rsp), %rdi
callq 0x3280
leaq 0x60(%rsp), %rdi
callq 0x3070
leaq 0x20(%rsp), %rdi
callq 0x33b8
leaq 0x40(%rsp), %rdi
callq 0x33b8
leaq 0x1d8(%rsp), %rdi
callq 0x32a0
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x33b8
jmp 0x78fb
jmp 0x78f8
movq %rax, %rbx
jmp 0x7905
movq %rax, %rbx
jmp 0x790f
movq %rax, %rbx
jmp 0x7919
jmp 0x78f8
jmp 0x78f8
jmp 0x78f8
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x3070
leaq 0x20(%rsp), %rdi
callq 0x33b8
leaq 0x40(%rsp), %rdi
callq 0x33b8
leaq 0x1d8(%rsp), %rdi
callq 0x32a0
movq %rbx, %rdi
callq 0x3350