// File: /workspace/github_c_makefile_star2_O1/ZmengXu[P]boxMesh/boxMesh.C
// Function: writePoints(int, int, int, int, double, double, double)
void writePoints(int nPoints, int Nx, int Ny, int Nz, double Lx, double Ly, double Lz)
{
    ofstream currentFile("constant/polyMesh/points");

    currentFile << "/*--------------------------------*- C++ -*----------------------------------*\\\n";
    currentFile << "| =========                 |                                                 |\n";
    currentFile << "| \\\\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |\n";
    currentFile << "|  \\\\    /   O peration     | Version:  2.3.0                                 |\n";
    currentFile << "|   \\\\  /    A nd           | Web:      www.OpenFOAM.org                      |\n";
    currentFile << "|    \\\\/     M anipulation  |                                                 |\n";
    currentFile << "\\*---------------------------------------------------------------------------*/\n";
    currentFile << "FoamFile\n";
    currentFile << "{\n";
    currentFile << "    version     2.0;\n";
    currentFile << "    format      ascii;\n";
    currentFile << "    class       vectorField;\n";
    currentFile << "    location    \"constant/polyMesh\";\n";
    currentFile << "    object      points;\n";
    currentFile << "}\n";
    currentFile << "// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n";
    currentFile << "\n";
    currentFile << "\n";

    ostringstream convert;
    convert.clear();
    convert.str("");
    convert << nPoints << "\n(\n";
    currentFile << convert.str();

    int xi, zi, yi;
    for (int i=0; i<nPoints; i++)
    {
        // Calculate point grid coordinates
        xi = i % (Nx+1);
        zi = int(i/((Nx+1)*(Ny+1)));
        yi = ((i-(Nx+1)*(Ny+1)*zi)-xi)/(Nx+1);

        convert.clear();
        convert.str("");
        //  Write point spatial coordinates
        convert << "(" << setprecision(10) << xi*Lx << " " << yi*Ly << " " << zi*Lz << ")\n";
        currentFile << convert.str();
    }

    currentFile << ")\n";
    currentFile << "\n";
    currentFile << "\n";
    currentFile << "// ************************************************************************* //\n";
    currentFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
movsd %xmm2, -0x60(%rbp)
movsd %xmm1, -0x68(%rbp)
movsd %xmm0, -0x70(%rbp)
movl %edx, %r14d
movl %esi, %r15d
movl %edi, -0x4c(%rbp)
leaq 0x17f9(%rip), %rsi      # 0x6562
leaq -0x270(%rbp), %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2170
leaq 0x12b7(%rip), %rsi      # 0x603b
movl $0x50, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0x12f4(%rip), %rsi      # 0x608c
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x132d(%rip), %rsi      # 0x60dd
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x1366(%rip), %rsi      # 0x612e
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x139f(%rip), %rsi      # 0x617f
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x13d8(%rip), %rsi      # 0x61d0
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x1411(%rip), %rsi      # 0x6221
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x144a(%rip), %rsi      # 0x6272
leaq -0x270(%rbp), %rdi
movl $0x9, %edx
callq 0x2180
leaq 0x1538(%rip), %rsi      # 0x6378
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x1424(%rip), %rsi      # 0x627c
leaq -0x270(%rbp), %rdi
movl $0x15, %edx
callq 0x2180
leaq 0x1422(%rip), %rsi      # 0x6292
leaq -0x270(%rbp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x16f3(%rip), %rsi      # 0x657b
leaq -0x270(%rbp), %rdi
movl $0x1d, %edx
callq 0x2180
leaq 0x142d(%rip), %rsi      # 0x62cd
leaq -0x270(%rbp), %rdi
movl $0x25, %edx
callq 0x2180
leaq 0x16e1(%rip), %rsi      # 0x6599
leaq -0x270(%rbp), %rdi
movl $0x18, %edx
callq 0x2180
leaq 0x1524(%rip), %rsi      # 0x63f4
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x1426(%rip), %rsi      # 0x630e
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x1598(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x1580(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq -0x3e8(%rbp), %rbx
movq %rbx, %rdi
callq 0x21a0
movq -0x3e8(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2280
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x153d(%rip), %rdx      # 0x6499
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x5646
leaq -0x3e0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x21f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4f91
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x3e8(%rbp), %rdi
movl -0x4c(%rbp), %esi
callq 0x22a0
leaq 0x14ef(%rip), %rsi      # 0x6496
movl $0x3, %edx
movq %rax, %rdi
callq 0x2180
leaq -0x48(%rbp), %rdi
leaq -0x3e0(%rbp), %rsi
callq 0x2240
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x270(%rbp), %rdi
callq 0x2180
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4ff1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
cmpl $0x0, -0x4c(%rbp)
jle 0x5199
incl %r15d
incl %r14d
movl %r15d, -0x54(%rbp)
imull %r15d, %r14d
movl %r14d, -0x58(%rbp)
negl %r14d
movl %r14d, -0x50(%rbp)
xorl %r15d, %r15d
leaq -0x48(%rbp), %r12
movl %r15d, %eax
cltd
movl -0x54(%rbp), %ecx
idivl %ecx
movl %edx, %r13d
movl %r15d, %eax
cltd
idivl -0x58(%rbp)
movl %eax, %ebx
movl -0x50(%rbp), %eax
imull %ebx, %eax
subl %r13d, %eax
addl %r15d, %eax
cltd
idivl %ecx
movl %eax, %r14d
movq -0x3e8(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x3e8(%rbp), %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x2280
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r12, %rdi
leaq 0x1429(%rip), %rdx      # 0x6499
movq %rdx, %rsi
callq 0x5646
leaq -0x3e0(%rbp), %rdi
movq %r12, %rsi
callq 0x21f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x50a0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x1, %edx
leaq -0x3e8(%rbp), %rdi
leaq 0x13e8(%rip), %rsi      # 0x649b
callq 0x2180
movq -0x3e8(%rbp), %rax
movq -0x18(%rax), %rax
movq $0xa, -0x3e0(%rbp,%rax)
cvtsi2sd %r13d, %xmm0
mulsd -0x70(%rbp), %xmm0
leaq -0x3e8(%rbp), %rdi
callq 0x2250
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x12de(%rip), %rsi      # 0x63d5
callq 0x2180
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
mulsd -0x68(%rbp), %xmm0
movq %r13, %rdi
callq 0x2250
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x12b2(%rip), %rsi      # 0x63d5
callq 0x2180
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd -0x60(%rbp), %xmm0
movq %r14, %rdi
callq 0x2250
movl $0x2, %edx
movq %rax, %rdi
leaq 0x12ac(%rip), %rsi      # 0x63f7
callq 0x2180
movq %r12, %rdi
leaq -0x3e0(%rbp), %rsi
callq 0x2240
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x270(%rbp), %rdi
callq 0x2180
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x518c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
incl %r15d
cmpl %r15d, -0x4c(%rbp)
jne 0x501b
leaq 0x1257(%rip), %rsi      # 0x63f7
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x12e0(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x12c8(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x1212(%rip), %rsi      # 0x63fa
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq -0x270(%rbp), %rdi
callq 0x21b0
movq 0x3da4(%rip), %rsi      # 0x8fb0
leaq -0x3e8(%rbp), %rdi
callq 0x20d0
leaq -0x378(%rbp), %rdi
callq 0x2070
movq 0x3d7d(%rip), %rax      # 0x8fa8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x268(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x270(%rbp,%rcx)
callq 0x2120
leaq -0x178(%rbp), %rdi
callq 0x2070
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5285
jmp 0x52a3
jmp 0x5285
jmp 0x52a3
jmp 0x527a
jmp 0x52a3
jmp 0x52a3
movq %rax, %rbx
jmp 0x52c5
jmp 0x52a3
jmp 0x5285
jmp 0x52a3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x52a6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
jmp 0x52a6
movq %rax, %rbx
movq 0x3d03(%rip), %rsi      # 0x8fb0
leaq -0x3e8(%rbp), %rdi
callq 0x20d0
leaq -0x378(%rbp), %rdi
callq 0x2070
leaq -0x270(%rbp), %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x22b0