// File: /workspace/github_c_makefile_star2_O3/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 0x177f(%rip), %rsi      # 0x6562
leaq -0x270(%rbp), %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2170
leaq 0x123d(%rip), %rsi      # 0x603b
movl $0x50, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0x127a(%rip), %rsi      # 0x608c
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x12b3(%rip), %rsi      # 0x60dd
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x12ec(%rip), %rsi      # 0x612e
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x1325(%rip), %rsi      # 0x617f
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x135e(%rip), %rsi      # 0x61d0
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x1397(%rip), %rsi      # 0x6221
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x13d0(%rip), %rsi      # 0x6272
leaq -0x270(%rbp), %rdi
movl $0x9, %edx
callq 0x2180
leaq 0x14be(%rip), %rsi      # 0x6378
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x13aa(%rip), %rsi      # 0x627c
leaq -0x270(%rbp), %rdi
movl $0x15, %edx
callq 0x2180
leaq 0x13a8(%rip), %rsi      # 0x6292
leaq -0x270(%rbp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x1679(%rip), %rsi      # 0x657b
leaq -0x270(%rbp), %rdi
movl $0x1d, %edx
callq 0x2180
leaq 0x13b3(%rip), %rsi      # 0x62cd
leaq -0x270(%rbp), %rdi
movl $0x25, %edx
callq 0x2180
leaq 0x1667(%rip), %rsi      # 0x6599
leaq -0x270(%rbp), %rdi
movl $0x18, %edx
callq 0x2180
leaq 0x14aa(%rip), %rsi      # 0x63f4
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x13ac(%rip), %rsi      # 0x630e
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq 0x151e(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x1506(%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 0x14c3(%rip), %rdx      # 0x6499
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x56c6
leaq -0x3e0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x21f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x500b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x3e8(%rbp), %rdi
movl -0x4c(%rbp), %esi
callq 0x22a0
leaq 0x1475(%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 0x506b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
cmpl $0x0, -0x4c(%rbp)
jle 0x5213
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 0x13af(%rip), %rdx      # 0x6499
movq %rdx, %rsi
callq 0x56c6
leaq -0x3e0(%rbp), %rdi
movq %r12, %rsi
callq 0x21f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x511a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x1, %edx
leaq -0x3e8(%rbp), %rdi
leaq 0x136e(%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 0x1264(%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 0x1238(%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 0x1232(%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 0x5206
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
incl %r15d
cmpl %r15d, -0x4c(%rbp)
jne 0x5095
leaq 0x11dd(%rip), %rsi      # 0x63f7
leaq -0x270(%rbp), %rdi
movl $0x2, %edx
callq 0x2180
leaq 0x1266(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x124e(%rip), %rsi      # 0x6498
leaq -0x270(%rbp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0x1198(%rip), %rsi      # 0x63fa
leaq -0x270(%rbp), %rdi
movl $0x50, %edx
callq 0x2180
leaq -0x270(%rbp), %rdi
callq 0x21b0
movq 0x3d2a(%rip), %rsi      # 0x8fb0
leaq -0x3e8(%rbp), %rdi
callq 0x20d0
leaq -0x378(%rbp), %rdi
callq 0x2070
movq 0x3d03(%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 0x52ff
jmp 0x531d
jmp 0x52ff
jmp 0x531d
jmp 0x52f4
jmp 0x531d
jmp 0x531d
movq %rax, %rbx
jmp 0x533f
jmp 0x531d
jmp 0x52ff
jmp 0x531d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5320
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
jmp 0x5320
movq %rax, %rbx
movq 0x3c89(%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