A routine to reset the object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cell_type), | intent(inout) | :: | self |
subroutine c_reset(self)
implicit none
class(cell_type), intent(inout) :: self
integer :: ir
!Call reset on all children
do ir=1,self%nrb
call self%rb(ir)%reset
enddo
!deallocate
call self%deallocate
!Could zero out variables but no real need
end subroutine c_reset