A routine to reset the object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fieldmat_type), | intent(inout) | :: | self |
subroutine fm_reset(self)
use mp, only: free_comm
implicit none
class(fieldmat_type), intent(inout) :: self
integer :: ik
!Call reset on all children
do ik=1,self%naky
call self%kyb(ik)%reset
enddo
!deallocate
call self%deallocate
!AJ Free the communicators associated with this field matrix object.
if(self%fm_sub_headsc_p0%nproc>0) then
call free_comm(self%fm_sub_headsc_p0)
end if
!Could zero out variables but no real need
end subroutine fm_reset