// File: suhasjains[P]AMR-Solver/src/block.cpp
// Function: myOctree::Block::~Block()
Block::~Block() {
  //		std::cerr << "destructor of block is working" << std::endl;

        delete mesh;
	delete field;

	for (int i = 0; i < scalar_fields.size(); ++i)
                        delete scalarfields[i];
   	
	delete scalarfields;

	for (int i = 0; i < vector_fields.size(); ++i)
                        delete vectorfields[i];
   	
	delete vectorfields;


	for (int i = 0; i < (iNx+2*pad); ++i) {
		for (int j = 0; j < (iNy+2*pad); ++j)
	      		delete [] flag[i][j];
	 
		delete [] flag[i];
	}
	
	delete [] flag;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0xaeeb
movq -0x20(%rbp), %rdi
callq 0xbef0
movq -0x20(%rbp), %rdi
movl $0x90, %esi
callq 0x3260
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0xaf14
movq -0x30(%rbp), %rdi
callq 0xc640
movq -0x30(%rbp), %rdi
movl $0x50, %esi
callq 0x3260
movl $0x0, -0xc(%rbp)
movslq -0xc(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x1b78e(%rip), %rdi     # 0x266b8
callq 0x5b00
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jae 0xaf79
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0xaf6c
movq -0x40(%rbp), %rdi
callq 0xc640
movq -0x40(%rbp), %rdi
movl $0x50, %esi
callq 0x3260
jmp 0xaf6e
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xaf1b
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0xaf99
movq -0x48(%rbp), %rdi
movl $0x8, %esi
callq 0x3260
movl $0x0, -0x10(%rbp)
movslq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x1b721(%rip), %rdi     # 0x266d0
callq 0x5b00
movq %rax, %rcx
movq -0x50(%rbp), %rax
cmpq %rcx, %rax
jae 0xaffe
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0xaff1
movq -0x58(%rbp), %rdi
callq 0xbef0
movq -0x58(%rbp), %rdi
movl $0x90, %esi
callq 0x3260
jmp 0xaff3
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xafa0
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, %rax
je 0xb01e
movq -0x60(%rbp), %rdi
movl $0x8, %esi
callq 0x3260
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl 0x1b6ba(%rip), %ecx     # 0x266e8
movl 0x1b234(%rip), %edx     # 0x26268
shll %edx
addl %edx, %ecx
cmpl %ecx, %eax
jge 0xb0cf
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl 0x1b69c(%rip), %ecx     # 0x266ec
movl 0x1b212(%rip), %edx     # 0x26268
shll %edx
addl %edx, %ecx
cmpl %ecx, %eax
jge 0xb099
movq -0x28(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0xb08c
movq -0x68(%rbp), %rdi
callq 0x3330
jmp 0xb08e
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xb047
movq -0x28(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0xb0bf
movq -0x70(%rbp), %rdi
callq 0x3330
jmp 0xb0c1
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xb025
movq -0x28(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0xb0ed
movq -0x78(%rbp), %rdi
callq 0x3330
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)