destroy_all Subroutine

public subroutine destroy_all()

Free memory and free pointers

Arguments

None

Calls

proc~~destroy_all~~CallsGraph proc~destroy_all destroy_all destroy_resnorm destroy_resnorm proc~destroy_all->destroy_resnorm proc~destroy_time destroy_time proc~destroy_all->proc~destroy_time proc~destroy_gradients destroy_gradients proc~destroy_all->proc~destroy_gradients destroy_transport destroy_transport proc~destroy_all->destroy_transport proc~destroy_grid destroy_grid proc~destroy_all->proc~destroy_grid destroy_sst_f1 destroy_sst_f1 proc~destroy_all->destroy_sst_f1 destroy_scheme destroy_scheme proc~destroy_all->destroy_scheme proc~destroy_state destroy_state proc~destroy_all->proc~destroy_state proc~destroy_geometry destroy_geometry proc~destroy_all->proc~destroy_geometry deallocate_misc deallocate_misc proc~destroy_all->deallocate_misc proc~dmsg dmsg proc~destroy_all->proc~dmsg proc~destroy_wall_dist destroy_wall_dist proc~destroy_all->proc~destroy_wall_dist unlink_aliases_solver unlink_aliases_solver proc~destroy_all->unlink_aliases_solver proc~destroy_time->proc~dmsg interface~alloc alloc proc~destroy_time->interface~alloc mpi_gather mpi_gather proc~destroy_time->mpi_gather interface~dealloc dealloc proc~destroy_time->interface~dealloc proc~write_time write_time proc~destroy_time->proc~write_time proc~destroy_sst_grad destroy_sst_grad proc~destroy_gradients->proc~destroy_sst_grad proc~destroy_memory destroy_memory proc~destroy_gradients->proc~destroy_memory proc~destroy_sa_grad destroy_sa_grad proc~destroy_gradients->proc~destroy_sa_grad proc~destroy_kkl_grad destroy_kkl_grad proc~destroy_gradients->proc~destroy_kkl_grad debugcall debugcall proc~destroy_gradients->debugcall proc~destroy_laminar_grad destroy_laminar_grad proc~destroy_gradients->proc~destroy_laminar_grad proc~destroy_lctm2015_grad destroy_lctm2015_grad proc~destroy_gradients->proc~destroy_lctm2015_grad proc~destroy_grid->proc~dmsg proc~destroy_grid->interface~dealloc proc~deallocate_memory~4 deallocate_memory proc~destroy_state->proc~deallocate_memory~4 proc~destroy_state->debugcall proc~unlink_aliases~2 unlink_aliases proc~destroy_state->proc~unlink_aliases~2 proc~destroy_geometry->proc~dmsg proc~deallocate_memory~2 deallocate_memory proc~destroy_geometry->proc~deallocate_memory~2 proc~destroy_wall_dist->proc~dmsg proc~destroy_wall_dist->interface~dealloc proc~deallocate_memory~2->proc~dmsg proc~deallocate_memory~2->interface~dealloc proc~destroy_sst_grad->debugcall proc~destroy_memory->interface~dealloc proc~destroy_memory->debugcall proc~destroy_sa_grad->debugcall proc~alloc_rank2_real alloc_rank2_real interface~alloc->proc~alloc_rank2_real proc~alloc_rank4_real alloc_rank4_real interface~alloc->proc~alloc_rank4_real proc~alloc_rank3_real alloc_rank3_real interface~alloc->proc~alloc_rank3_real proc~alloc_rank2_integer alloc_rank2_integer interface~alloc->proc~alloc_rank2_integer proc~alloc_rank1_integer alloc_rank1_integer interface~alloc->proc~alloc_rank1_integer proc~alloc_rank6_real alloc_rank6_real interface~alloc->proc~alloc_rank6_real proc~alloc_rank5_real alloc_rank5_real interface~alloc->proc~alloc_rank5_real proc~alloc_rank3_integer alloc_rank3_integer interface~alloc->proc~alloc_rank3_integer proc~alloc_rank1_real alloc_rank1_real interface~alloc->proc~alloc_rank1_real proc~destroy_kkl_grad->debugcall proc~dealloc_rank6_real dealloc_rank6_real interface~dealloc->proc~dealloc_rank6_real proc~dealloc_rank2_real dealloc_rank2_real interface~dealloc->proc~dealloc_rank2_real proc~dealloc_rank4_real dealloc_rank4_real interface~dealloc->proc~dealloc_rank4_real proc~dealloc_rank1_integer dealloc_rank1_integer interface~dealloc->proc~dealloc_rank1_integer proc~dealloc_rank2_integer dealloc_rank2_integer interface~dealloc->proc~dealloc_rank2_integer proc~dealloc_rank1_real dealloc_rank1_real interface~dealloc->proc~dealloc_rank1_real proc~dealloc_rank3_integer dealloc_rank3_integer interface~dealloc->proc~dealloc_rank3_integer proc~dealloc_rank5_real dealloc_rank5_real interface~dealloc->proc~dealloc_rank5_real proc~dealloc_rank3_real dealloc_rank3_real interface~dealloc->proc~dealloc_rank3_real proc~deallocate_memory~4->interface~dealloc proc~deallocate_memory~4->debugcall proc~unlink_aliases~2->debugcall proc~destroy_laminar_grad->debugcall proc~destroy_lctm2015_grad->debugcall

Contents

Source Code


Source Code

      subroutine destroy_all()
          !< Free memory and free pointers
          implicit none
          
          call dmsg(1, 'create_erase', 'destroy_all')
          call destroy_time()
          call destroy_transport()
          call destroy_gradients()
          call destroy_wall_dist()
          call destroy_scheme()
          call deallocate_misc()
          call unlink_aliases_solver()
          call destroy_state()
          call destroy_geometry()
          call destroy_grid()
          call destroy_resnorm()
          call destroy_sst_F1()

          if(allocated(r_list)) deallocate(r_list)
          if(allocated(w_list)) deallocate(w_list)
          call dmsg(5, 'create_erase', 'destroy_all', 'Memory_freed')

      end subroutine destroy_all