destroy_state Subroutine

public subroutine destroy_state()

Destroy the state module. This subroutine destroys the state module which includes unlinking the aliases for the state components and deallocating the memory held by the state variables

Arguments

None

Calls

proc~~destroy_state~~CallsGraph proc~destroy_state destroy_state proc~unlink_aliases~2 unlink_aliases proc~destroy_state->proc~unlink_aliases~2 debugcall debugcall proc~destroy_state->debugcall proc~deallocate_memory~4 deallocate_memory proc~destroy_state->proc~deallocate_memory~4 proc~unlink_aliases~2->debugcall proc~deallocate_memory~4->debugcall interface~dealloc dealloc proc~deallocate_memory~4->interface~dealloc 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_rank3_real dealloc_rank3_real interface~dealloc->proc~dealloc_rank3_real proc~dealloc_rank5_real dealloc_rank5_real interface~dealloc->proc~dealloc_rank5_real proc~dealloc_rank6_real dealloc_rank6_real interface~dealloc->proc~dealloc_rank6_real

Called by

proc~~destroy_state~~CalledByGraph proc~destroy_state destroy_state proc~destroy_all destroy_all proc~destroy_all->proc~destroy_state proc~destroy_solver destroy_solver proc~destroy_solver->proc~destroy_state proc~finish_run finish_run proc~finish_run->proc~destroy_solver proc~abort_run abort_run proc~abort_run->proc~destroy_solver program~main main program~main->proc~finish_run

Contents

Source Code


Source Code

        subroutine destroy_state()
            !< Destroy the state module.
            !< This subroutine destroys the state module which includes
            !< unlinking the aliases for the state components and 
            !< deallocating the memory held by the state variables
            !-----------------------------------------------------------

            implicit none
            
            DebugCall("destroy_state")

            call unlink_aliases()
            call deallocate_memory()

        end subroutine destroy_state