// File: /workspace/github_c_makefile_star2_O0/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
subq $0x4b0, %rsp            # imm = 0x4B0
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
movsd %xmm2, -0x28(%rbp)
leaq 0x3fd9(%rip), %rsi      # 0x9546
leaq -0x228(%rbp), %rdi
movq %rdi, -0x458(%rbp)
movl $0x10, %edx
callq 0x2210
movq -0x458(%rbp), %rdi
leaq 0x3a8c(%rip), %rsi      # 0x901f
callq 0x21b0
jmp 0x559a
leaq 0x3acf(%rip), %rsi      # 0x9070
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x55af
leaq 0x3b0b(%rip), %rsi      # 0x90c1
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x55c4
leaq 0x3b47(%rip), %rsi      # 0x9112
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x55d9
leaq 0x3b83(%rip), %rsi      # 0x9163
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x55ee
leaq 0x3bbf(%rip), %rsi      # 0x91b4
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5603
leaq 0x3bfb(%rip), %rsi      # 0x9205
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5618
leaq 0x3c37(%rip), %rsi      # 0x9256
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x562d
leaq 0x3d28(%rip), %rsi      # 0x935c
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5642
leaq 0x3c17(%rip), %rsi      # 0x9260
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5657
leaq 0x3c18(%rip), %rsi      # 0x9276
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x566c
leaq 0x3eec(%rip), %rsi      # 0x955f
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5681
leaq 0x3c29(%rip), %rsi      # 0x92b1
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5696
leaq 0x3ee0(%rip), %rsi      # 0x957d
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x56ab
leaq 0x3d26(%rip), %rsi      # 0x93d8
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x56c0
leaq 0x3c2b(%rip), %rsi      # 0x92f2
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x56d5
leaq 0x3da0(%rip), %rsi      # 0x947c
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x56ea
leaq 0x3d8b(%rip), %rsi      # 0x947c
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x56ff
leaq -0x3b0(%rbp), %rdi
callq 0x2260
jmp 0x570d
movq -0x3b0(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x3b0(%rbp,%rax), %rdi
xorl %esi, %esi
callq 0x2330
jmp 0x5729
leaq -0x3d1(%rbp), %rdi
movq %rdi, -0x460(%rbp)
callq 0x2380
movq -0x460(%rbp), %rdx
leaq 0x3d33(%rip), %rsi      # 0x947d
leaq -0x3d0(%rbp), %rdi
callq 0x5f70
jmp 0x5758
leaq -0x3b0(%rbp), %rdi
leaq -0x3d0(%rbp), %rsi
callq 0x20c0
jmp 0x576d
leaq -0x3d0(%rbp), %rdi
callq 0x2100
leaq -0x3d1(%rbp), %rdi
callq 0x2200
movl -0x4(%rbp), %esi
leaq -0x3b0(%rbp), %rdi
callq 0x2360
movq %rax, -0x468(%rbp)
jmp 0x579d
movq -0x468(%rbp), %rdi
leaq 0x3ccf(%rip), %rsi      # 0x947a
callq 0x21b0
jmp 0x57b2
leaq -0x3f8(%rbp), %rdi
leaq -0x3b0(%rbp), %rsi
callq 0x21e0
jmp 0x57c7
leaq -0x228(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
callq 0x2190
jmp 0x57dc
leaq -0x3f8(%rbp), %rdi
callq 0x2100
movl $0x0, -0x408(%rbp)
movl -0x408(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x5b32
movl -0x408(%rbp), %eax
movl -0x8(%rbp), %ecx
incl %ecx
cltd
idivl %ecx
movl %edx, -0x3fc(%rbp)
movl -0x408(%rbp), %eax
movl -0x8(%rbp), %ecx
incl %ecx
movl -0xc(%rbp), %edx
incl %edx
imull %edx, %ecx
cltd
idivl %ecx
movl %eax, -0x400(%rbp)
movl -0x408(%rbp), %eax
movl -0x8(%rbp), %ecx
incl %ecx
movl -0xc(%rbp), %esi
incl %esi
movl %ecx, %edx
imull %esi, %edx
movl -0x400(%rbp), %esi
imull %esi, %edx
subl %edx, %eax
movl -0x3fc(%rbp), %edx
subl %edx, %eax
cltd
idivl %ecx
movl %eax, -0x404(%rbp)
movq -0x3b0(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x3b0(%rbp,%rax), %rdi
xorl %esi, %esi
callq 0x2330
jmp 0x587e
leaq -0x429(%rbp), %rdi
movq %rdi, -0x470(%rbp)
callq 0x2380
movq -0x470(%rbp), %rdx
leaq 0x3bde(%rip), %rsi      # 0x947d
leaq -0x428(%rbp), %rdi
callq 0x5f70
jmp 0x58ad
leaq -0x3b0(%rbp), %rdi
leaq -0x428(%rbp), %rsi
callq 0x20c0
jmp 0x58c2
leaq -0x428(%rbp), %rdi
callq 0x2100
leaq -0x429(%rbp), %rdi
callq 0x2200
leaq 0x3b9e(%rip), %rsi      # 0x947f
leaq -0x3b0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x478(%rbp)
jmp 0x58f6
movl $0xa, %edi
callq 0x60d0
movl %eax, -0x47c(%rbp)
jmp 0x5908
movq -0x478(%rbp), %rdi
movl -0x47c(%rbp), %eax
movl %eax, -0x430(%rbp)
movl -0x430(%rbp), %esi
callq 0x2300
movq %rax, -0x488(%rbp)
jmp 0x592f
movq -0x488(%rbp), %rdi
cvtsi2sdl -0x3fc(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x23b0
movq %rax, -0x490(%rbp)
jmp 0x5955
movq -0x490(%rbp), %rdi
leaq 0x3a56(%rip), %rsi      # 0x93b9
callq 0x21b0
movq %rax, -0x498(%rbp)
jmp 0x5971
movq -0x498(%rbp), %rdi
cvtsi2sdl -0x404(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x23b0
movq %rax, -0x4a0(%rbp)
jmp 0x5997
movq -0x4a0(%rbp), %rdi
leaq 0x3a14(%rip), %rsi      # 0x93b9
callq 0x21b0
movq %rax, -0x4a8(%rbp)
jmp 0x59b3
movq -0x4a8(%rbp), %rdi
cvtsi2sdl -0x400(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x23b0
movq %rax, -0x4b0(%rbp)
jmp 0x59d9
movq -0x4b0(%rbp), %rdi
leaq 0x39f4(%rip), %rsi      # 0x93db
callq 0x21b0
jmp 0x59ee
leaq -0x450(%rbp), %rdi
leaq -0x3b0(%rbp), %rsi
callq 0x21e0
jmp 0x5a03
leaq -0x228(%rbp), %rdi
leaq -0x450(%rbp), %rsi
callq 0x2190
jmp 0x5a18
leaq -0x450(%rbp), %rdi
callq 0x2100
movl -0x408(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x408(%rbp)
jmp 0x57f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x5bc1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x5bb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x5a98
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x3d0(%rbp), %rdi
callq 0x2100
leaq -0x3d1(%rbp), %rdi
callq 0x2200
jmp 0x5bb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x3f8(%rbp), %rdi
callq 0x2100
jmp 0x5bb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
jmp 0x5afe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x428(%rbp), %rdi
callq 0x2100
leaq -0x429(%rbp), %rdi
callq 0x2200
jmp 0x5bb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x450(%rbp), %rdi
callq 0x2100
jmp 0x5bb5
leaq 0x38a2(%rip), %rsi      # 0x93db
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5b47
leaq 0x392e(%rip), %rsi      # 0x947c
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5b5c
leaq 0x3919(%rip), %rsi      # 0x947c
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5b71
leaq 0x3866(%rip), %rsi      # 0x93de
leaq -0x228(%rbp), %rdi
callq 0x21b0
jmp 0x5b86
leaq -0x228(%rbp), %rdi
callq 0x2290
jmp 0x5b94
leaq -0x3b0(%rbp), %rdi
callq 0x2050
leaq -0x228(%rbp), %rdi
callq 0x22c0
addq $0x4b0, %rsp            # imm = 0x4B0
popq %rbp
retq
leaq -0x3b0(%rbp), %rdi
callq 0x2050
leaq -0x228(%rbp), %rdi
callq 0x22c0
movq -0x230(%rbp), %rdi
callq 0x2370
nopl (%rax)