// File: /workspace/github_c_makefile_star2_O2/markpeerdeman[P]mbemm/src/emath/post.c
// Function: post
void post(mesh theMesh,int nr_of_nodes_body_1)
{ 

/**** ElastoMATH SPECIAL output **********************************************/
if (WRITE_SPECIAL==YES)
{ /* do some results output: */
  fprintf(stderr,"* writing output in BEM format\n");
  evaluate_level(GREEN,41);
  init_post(main_f, theMesh, nr_of_nodes_body_1);
  write_node_displacements(theMesh->mesh_p);
  write_node_tractions(theMesh->mesh_p); 
  write_force(theMesh); 
  write_contact_force(theMesh);
  write_edge_force(theMesh);
  write_contact_node_tractions(theMesh->mesh_p); 
  write_distribution(theMesh); 
}

/*** SDRC I_DEAS output ******************************************************/
if (WRITE_UNIVERSAL==YES)
{ fprintf(stderr,"* writing output as universal file\n");
  evaluate_level(GREEN,42);
  init_post(main_f, theMesh, nr_of_nodes_body_1);
  U_write_nodes(theMesh->mesh_p);
  U_write_elements(theMesh->mesh_e);
  U_write_displacements(theMesh->mesh_p);
  U_write_tractions(theMesh->mesh_p);   
  U_write_mises(theMesh); 
/*  U_write_mises_analytical(theMesh); 
  write_node_displacements(theMesh->mesh_p);
  write_node_tractions(theMesh->mesh_p);
  write_force(theMesh); 
  write_contact_force(theMesh);
  write_edge_force(theMesh);
  write_contact_node_tractions(theMesh->mesh_p); 
  write_distribution(theMesh); */
}

/**** .OBJ output **********************************************/
if (WRITE_OBJ==YES)
{ /* do some results output: */
  fprintf(stderr,"* writing output in .OBJ format\n");
  evaluate_level(GREEN,44);
  init_post(main_f, theMesh, nr_of_nodes_body_1);
  O_write_deformed_elements_as_faces(theMesh);
}

}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0xf8e0(%rip), %rax      # 0x14418
cmpl $0x1, (%rax)
je 0x4b64
leaq 0xf8d8(%rip), %rax      # 0x1441c
cmpl $0x1, (%rax)
je 0x4bdb
leaq 0xf8cc(%rip), %rax      # 0x14420
cmpl $0x1, (%rax)
je 0x4c43
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xf48d(%rip), %rax      # 0x13ff8
movq (%rax), %rcx
leaq 0x8bdd(%rip), %rdi      # 0xd752
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
pushq $0x29
popq %rsi
xorl %edi, %edi
callq 0xb0f8
leaq 0xf8a7(%rip), %rax      # 0x14438
movq (%rax), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2434
movq (%rbx), %rdi
callq 0x2901
movq (%rbx), %rdi
callq 0x2a4e
movq %rbx, %rdi
callq 0x2aed
movq %rbx, %rdi
callq 0x2cf3
movq %rbx, %rdi
callq 0x2fcb
movq (%rbx), %rdi
callq 0x32cf
movq %rbx, %rdi
callq 0x3660
jmp 0x4b3d
movq 0xf416(%rip), %rax      # 0x13ff8
movq (%rax), %rcx
leaq 0x8b86(%rip), %rdi      # 0xd772
pushq $0x23
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
pushq $0x2a
popq %rsi
xorl %edi, %edi
callq 0xb0f8
leaq 0xf830(%rip), %rax      # 0x14438
movq (%rax), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2434
movq (%rbx), %rdi
callq 0x4452
movq 0x8(%rbx), %rdi
callq 0x44d4
movq (%rbx), %rdi
callq 0x4575
movq (%rbx), %rdi
callq 0x46b7
movq %rbx, %rdi
callq 0x383c
jmp 0x4b4d
movq 0xf3ae(%rip), %rax      # 0x13ff8
movq (%rax), %rcx
leaq 0x8b42(%rip), %rdi      # 0xd796
pushq $0x20
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
pushq $0x2c
popq %rsi
xorl %edi, %edi
callq 0xb0f8
leaq 0xf7c8(%rip), %rax      # 0x14438
movq (%rax), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2434
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x47fa
nop