testIterate.f90 Source File

This File Depends On

sourcefile~~testiterate.f90~~EfferentGraph sourcefile~testiterate.f90 testIterate.f90 sourcefile~text.f90 text.f90 sourcefile~text.f90->sourcefile~testiterate.f90 sourcefile~time.f90 time.f90 sourcefile~time.f90->sourcefile~testiterate.f90 sourcefile~time.f90->sourcefile~text.f90 sourcefile~kinds.f90 kinds.f90 sourcefile~kinds.f90->sourcefile~testiterate.f90 sourcefile~kinds.f90->sourcefile~text.f90 sourcefile~kinds.f90->sourcefile~time.f90 sourcefile~iterate.f90 iterate.f90 sourcefile~kinds.f90->sourcefile~iterate.f90 sourcefile~iterate.f90->sourcefile~testiterate.f90
Help

Source Code


Source Code

program testIterate_prg
	!! Test program for iterate_mod
	use kinds_mod
	use iterate_mod
	use text_mod
	use time_mod
	implicit none
	
	call testNext
	
contains

	subroutine testNext
		!! Verify operation of next
		type(iterator_t)::iter
		
		iter = newIterator([5,5],[0.0_wp,0.0_wp],[1.0_wp,1.0_wp])
		do while(.not.iter%isDone)
			call showProgress('Testing',iter%getProgress())
			call wait(0.02_wp)
			call iter%next()
		end do
	end subroutine testNext

end program testIterate_prg