test_coretran.f90 Source File

This File Depends On

sourcefile~~test_coretran.f90~~EfferentGraph sourcefile~test_coretran.f90 test_coretran.f90 sourcefile~m_random.f90 m_random.f90 sourcefile~m_random.f90->sourcefile~test_coretran.f90 sourcefile~m_tests.f90 m_tests.f90 sourcefile~m_random.f90->sourcefile~m_tests.f90 sourcefile~m_array1d.f90 m_array1D.f90 sourcefile~m_random.f90->sourcefile~m_array1d.f90 sourcefile~m_variablekind.f90 m_variableKind.f90 sourcefile~m_variablekind.f90->sourcefile~test_coretran.f90 sourcefile~m_variablekind.f90->sourcefile~m_random.f90 sourcefile~m_variablekind.f90->sourcefile~m_tests.f90 sourcefile~m_unittester.f90 m_unitTester.f90 sourcefile~m_variablekind.f90->sourcefile~m_unittester.f90 sourcefile~prng_class.f90 Prng_Class.f90 sourcefile~m_variablekind.f90->sourcefile~prng_class.f90 sourcefile~m_allocate.f90 m_allocate.f90 sourcefile~m_variablekind.f90->sourcefile~m_allocate.f90 sourcefile~m_errors.f90 m_errors.f90 sourcefile~m_variablekind.f90->sourcefile~m_errors.f90 sourcefile~m_strings.f90 m_strings.f90 sourcefile~m_variablekind.f90->sourcefile~m_strings.f90 sourcefile~m_deallocate.f90 m_deallocate.f90 sourcefile~m_variablekind.f90->sourcefile~m_deallocate.f90 sourcefile~m_time.f90 m_time.f90 sourcefile~m_variablekind.f90->sourcefile~m_time.f90 sourcefile~m_indexing.f90 m_indexing.f90 sourcefile~m_variablekind.f90->sourcefile~m_indexing.f90 sourcefile~m_parameters.f90 m_parameters.f90 sourcefile~m_variablekind.f90->sourcefile~m_parameters.f90 sourcefile~stopwatch_class.f90 Stopwatch_Class.f90 sourcefile~m_variablekind.f90->sourcefile~stopwatch_class.f90 sourcefile~m_maths.f90 m_maths.f90 sourcefile~m_variablekind.f90->sourcefile~m_maths.f90 sourcefile~m_copy.f90 m_copy.f90 sourcefile~m_variablekind.f90->sourcefile~m_copy.f90 sourcefile~m_sort.f90 m_sort.f90 sourcefile~m_variablekind.f90->sourcefile~m_sort.f90 sourcefile~m_variablekind.f90->sourcefile~m_array1d.f90 sourcefile~ddynamicarray_class.f90 dDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~ddynamicarray_class.f90 sourcefile~progressbar_class.f90 ProgressBar_Class.f90 sourcefile~m_variablekind.f90->sourcefile~progressbar_class.f90 sourcefile~idargdynamicarray_class.f90 idArgDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~m_write.f90 m_write.f90 sourcefile~m_variablekind.f90->sourcefile~m_write.f90 sourcefile~rargdynamicarray_class.f90 rArgDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~m_select.f90 m_select.f90 sourcefile~m_variablekind.f90->sourcefile~m_select.f90 sourcefile~idynamicarray_class.f90 iDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~idynamicarray_class.f90 sourcefile~dargdynamicarray_class.f90 dArgDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~m_fileio.f90 m_fileIO.f90 sourcefile~m_variablekind.f90->sourcefile~m_fileio.f90 sourcefile~iddynamicarray_class.f90 idDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_reallocate.f90 m_reallocate.f90 sourcefile~m_variablekind.f90->sourcefile~m_reallocate.f90 sourcefile~rdynamicarray_class.f90 rDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~rdynamicarray_class.f90 sourcefile~iargdynamicarray_class.f90 iArgDynamicArray_Class.f90 sourcefile~m_variablekind.f90->sourcefile~iargdynamicarray_class.f90 sourcefile~m_kdtree.f90 m_KdTree.f90 sourcefile~m_variablekind.f90->sourcefile~m_kdtree.f90 sourcefile~m_swap.f90 m_swap.f90 sourcefile~m_variablekind.f90->sourcefile~m_swap.f90 sourcefile~m_searching.f90 m_searching.f90 sourcefile~m_variablekind.f90->sourcefile~m_searching.f90 sourcefile~m_read.f90 m_read.f90 sourcefile~m_variablekind.f90->sourcefile~m_read.f90 sourcefile~m_tests.f90->sourcefile~test_coretran.f90 sourcefile~m_unittester.f90->sourcefile~test_coretran.f90 sourcefile~m_unittester.f90->sourcefile~m_random.f90 sourcefile~m_unittester.f90->sourcefile~m_tests.f90 sourcefile~m_unittester.f90->sourcefile~m_allocate.f90 sourcefile~m_unittester.f90->sourcefile~m_maths.f90 sourcefile~m_unittester.f90->sourcefile~m_fileio.f90 sourcefile~prng_class.f90->sourcefile~m_random.f90 sourcefile~prng_class.f90->sourcefile~m_tests.f90 sourcefile~m_allocate.f90->sourcefile~m_random.f90 sourcefile~m_allocate.f90->sourcefile~m_tests.f90 sourcefile~m_allocate.f90->sourcefile~prng_class.f90 sourcefile~m_allocate.f90->sourcefile~m_maths.f90 sourcefile~m_allocate.f90->sourcefile~m_copy.f90 sourcefile~m_allocate.f90->sourcefile~m_array1d.f90 sourcefile~m_allocate.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_allocate.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_allocate.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_allocate.f90->sourcefile~m_reallocate.f90 sourcefile~m_allocate.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_allocate.f90->sourcefile~m_kdtree.f90 sourcefile~m_errors.f90->sourcefile~m_random.f90 sourcefile~m_errors.f90->sourcefile~m_tests.f90 sourcefile~m_errors.f90->sourcefile~m_unittester.f90 sourcefile~m_errors.f90->sourcefile~prng_class.f90 sourcefile~m_errors.f90->sourcefile~m_allocate.f90 sourcefile~m_errors.f90->sourcefile~m_strings.f90 sourcefile~m_errors.f90->sourcefile~m_deallocate.f90 sourcefile~m_errors.f90->sourcefile~m_maths.f90 sourcefile~m_errors.f90->sourcefile~m_copy.f90 sourcefile~m_errors.f90->sourcefile~m_array1d.f90 sourcefile~m_errors.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~m_write.f90 sourcefile~m_errors.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~m_fileio.f90 sourcefile~m_errors.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~m_reallocate.f90 sourcefile~m_errors.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~iargdynamicarray_class.f90 sourcefile~m_errors.f90->sourcefile~m_kdtree.f90 sourcefile~m_errors.f90->sourcefile~m_read.f90 sourcefile~m_strings.f90->sourcefile~m_random.f90 sourcefile~m_strings.f90->sourcefile~m_tests.f90 sourcefile~m_strings.f90->sourcefile~prng_class.f90 sourcefile~m_strings.f90->sourcefile~stopwatch_class.f90 sourcefile~m_strings.f90->sourcefile~m_array1d.f90 sourcefile~m_strings.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~m_write.f90 sourcefile~m_strings.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~m_fileio.f90 sourcefile~m_strings.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~iargdynamicarray_class.f90 sourcefile~m_strings.f90->sourcefile~m_kdtree.f90 sourcefile~m_strings.f90->sourcefile~m_read.f90 sourcefile~m_deallocate.f90->sourcefile~m_random.f90 sourcefile~m_deallocate.f90->sourcefile~m_tests.f90 sourcefile~m_deallocate.f90->sourcefile~m_maths.f90 sourcefile~m_deallocate.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_deallocate.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_deallocate.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_deallocate.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_deallocate.f90->sourcefile~m_kdtree.f90 sourcefile~m_time.f90->sourcefile~m_tests.f90 sourcefile~m_time.f90->sourcefile~prng_class.f90 sourcefile~m_time.f90->sourcefile~stopwatch_class.f90 sourcefile~m_time.f90->sourcefile~progressbar_class.f90 sourcefile~m_indexing.f90->sourcefile~m_tests.f90 sourcefile~m_indexing.f90->sourcefile~prng_class.f90 sourcefile~m_parameters.f90->sourcefile~m_strings.f90 sourcefile~stopwatch_class.f90->sourcefile~m_tests.f90 sourcefile~stopwatch_class.f90->sourcefile~progressbar_class.f90 sourcefile~m_maths.f90->sourcefile~m_tests.f90 sourcefile~m_maths.f90->sourcefile~m_kdtree.f90 sourcefile~m_copy.f90->sourcefile~m_tests.f90 sourcefile~m_sort.f90->sourcefile~m_tests.f90 sourcefile~m_sort.f90->sourcefile~m_maths.f90 sourcefile~m_sort.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_sort.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_sort.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_sort.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_array1d.f90->sourcefile~m_tests.f90 sourcefile~m_array1d.f90->sourcefile~m_maths.f90 sourcefile~m_array1d.f90->sourcefile~m_kdtree.f90 sourcefile~ddynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~ddynamicarray_class.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~progressbar_class.f90->sourcefile~m_tests.f90 sourcefile~idargdynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~m_write.f90->sourcefile~m_tests.f90 sourcefile~m_write.f90->sourcefile~m_fileio.f90 sourcefile~rargdynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~m_select.f90->sourcefile~m_tests.f90 sourcefile~m_select.f90->sourcefile~m_maths.f90 sourcefile~m_select.f90->sourcefile~m_kdtree.f90 sourcefile~idynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~idynamicarray_class.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~idynamicarray_class.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~idynamicarray_class.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~idynamicarray_class.f90->sourcefile~iargdynamicarray_class.f90 sourcefile~idynamicarray_class.f90->sourcefile~m_kdtree.f90 sourcefile~dargdynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~dargdynamicarray_class.f90->sourcefile~m_kdtree.f90 sourcefile~m_fileio.f90->sourcefile~m_tests.f90 sourcefile~iddynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~iddynamicarray_class.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~m_reallocate.f90->sourcefile~m_tests.f90 sourcefile~m_reallocate.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_reallocate.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_reallocate.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_reallocate.f90->sourcefile~rdynamicarray_class.f90 sourcefile~rdynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~rdynamicarray_class.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~iargdynamicarray_class.f90->sourcefile~m_tests.f90 sourcefile~m_kdtree.f90->sourcefile~m_tests.f90 sourcefile~m_swap.f90->sourcefile~m_array1d.f90 sourcefile~m_searching.f90->sourcefile~ddynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~idargdynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~rargdynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~idynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~dargdynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~iddynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~rdynamicarray_class.f90 sourcefile~m_searching.f90->sourcefile~iargdynamicarray_class.f90 sourcefile~m_read.f90->sourcefile~m_fileio.f90
Help

Source Code


Source Code

program test_coretran
  !! Test program for the coretran library
  use m_unitTester
  use iso_fortran_env
  use variableKind
  use m_random
  use m_tests

  implicit none

  type(tester) :: test

  character(len=cLen) :: sa
  integer(i32) :: i, iTest,istat, N, nIterations
  

! Get an integer from command line argument
  i = command_argument_count()
  if (i < 2) then
    write(*,'(a)') 'Error with input options'
    write(*,'(a)') 'Usage: coretranTest size iterations'
    write(*,'(a)') '  size : Size of the array to run tests on'
    write(*,'(a)') '  iterations : Number of times to run a test that is being timed'
    stop
  end if
  call get_command_argument(1, sa)
  read(sa,*) N

  if (N < 15) call eMsg('Please use size >= 15')

  call get_command_argument(2, sa)
  read(sa,*) nIterations

  test = tester()

  call Msg('==========================')
  call Msg('LibFortran Testing')
  call Msg('==========================')

  call setPrng(big = .true., display = .true.)

  call strings_test(test)
  
  call fileIO_test(test)
  
  call random_test(test, .false.)

  call Prng_test(test)

  call time_test(test, nIterations)
  
  call indexing_test(test)
  
  call allocate_test(test)
  
  call reallocate_test(test)
  
  call copy_test(test)
  
  call sorting_test(test, N)
  
  call select_test(test, N)
  
  call array1D_test(test)
  
  call maths_test(test)

  call KdTree_test(test, N)
  

  call Msg('==========================')
  call Msg('Testing : Dynamic Arrays')
  call Msg('==========================')
  call rDynamicArray_test(test)
  call dDynamicArray_test(test)
  call iDynamicArray_test(test)
  call idDynamicArray_test(test)
  
  call Msg('==========================')
  call Msg('Testing : ArgDynamic Arrays')
  call Msg('==========================')
  call rArgDynamicArray_test(test)
  call dArgDynamicArray_test(test)
  call iArgDynamicArray_test(test)
  call idArgDynamicArray_test(test)

  call test%summary()

  stop
1 format(a)

end program