// File: suhasjains[P]AMR-Solver/src/vecfield.cpp
// Function: myOctree::VecField::VecField(int, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
VecField::VecField( int N_x, int N_y, int N_z, std::string info ) : Nx(N_x), Ny(N_y), Nz(N_z), name(info) {
                //std::cerr << "parametrized constructor of vecfield is working" << std::endl; 
                
        N = Nx*Ny*Nz;
        x = new double** [Nx];
        y = new double** [Nx];
        z = new double** [Nx];
        for(int i=0;i<Nx;i++) {
                x[i] = new double* [Ny];
                y[i] = new double* [Ny];
                z[i] = new double* [Ny];
                for(int j=0;j<Ny;j++) {
                        x[i][j] = new double [Nz];
                        y[i][j] = new double [Nz];
                        z[i][j] = new double [Nz];
                }       
        }

	set_field(0.0);
       
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %r8, -0x58(%rbp)
movl %esi, %eax
movq -0x58(%rbp), %rsi
movq %rdi, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %rsi, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movl -0xc(%rbp), %eax
movl %eax, (%rdi)
movl -0x10(%rbp), %eax
movl %eax, 0x4(%rdi)
movl -0x14(%rbp), %eax
movl %eax, 0x8(%rdi)
addq $0x28, %rdi
movq %rdi, -0x50(%rbp)
callq 0x3120
movq -0x48(%rbp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %edx
imull %edx, %ecx
movl 0x8(%rax), %edx
imull %edx, %ecx
movl %ecx, 0xc(%rax)
movslq (%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x40(%rbp)
jmp 0xb4b5
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, 0x10(%rax)
movslq (%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x60(%rbp)
jmp 0xb4e5
movq -0x48(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0x18(%rax)
movslq (%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x68(%rbp)
jmp 0xb515
movq -0x48(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, 0x20(%rax)
movl $0x0, -0x30(%rbp)
movq -0x48(%rbp), %rcx
movl -0x30(%rbp), %eax
cmpl (%rcx), %eax
jge 0xb70b
movq -0x48(%rbp), %rax
movslq 0x4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x70(%rbp)
jmp 0xb560
movq -0x48(%rbp), %rax
movq -0x70(%rbp), %rsi
movq 0x10(%rax), %rcx
movslq -0x30(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movslq 0x4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x78(%rbp)
jmp 0xb599
movq -0x48(%rbp), %rax
movq -0x78(%rbp), %rsi
movq 0x18(%rax), %rcx
movslq -0x30(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movslq 0x4(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x80(%rbp)
jmp 0xb5d2
movq -0x80(%rbp), %rdx
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x34(%rbp)
movq -0x48(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xb6fb
movq -0x48(%rbp), %rax
movslq 0x8(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x88(%rbp)
jmp 0xb629
movq -0x48(%rbp), %rax
movq -0x88(%rbp), %rsi
movq 0x10(%rax), %rcx
movslq -0x30(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x34(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movslq 0x8(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x90(%rbp)
jmp 0xb670
movq -0x48(%rbp), %rax
movq -0x90(%rbp), %rsi
movq 0x18(%rax), %rcx
movslq -0x30(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x34(%rbp), %rdx
movq %rsi, (%rcx,%rdx,8)
movslq 0x8(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3040
movq %rax, -0x98(%rbp)
jmp 0xb6b7
movq -0x98(%rbp), %rdx
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x34(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xb5ed
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3180
jmp 0xb722
jmp 0xb6fd
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xb528
movq -0x48(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0xb730
jmp 0xb719
addq $0xa0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x3420
nopl (%rax,%rax)