writeline Interface

public interface writeline

Write multiple items to a line

Example usage

use variableKind
use m_writeline
use m_fileIO, only: openFile, closeFile
character(len=:),allocatable :: fName
real(r64) :: a,b,c
real(r64) :: a1D(3)
integer(i32) :: iunit, istat
a = 1.d0
b = 2.d0
c = 3.d0
a1D = [1.d0, 2.d0, 3.d0]
fName = 'writeline.txt'
call openFile(fName, iunit, 'unknown', istat)
call writeline(a, b, c, fName, iunit)
call writeline(a1D, fName, iunit)
call closeFile(fName, iunit, '', istat)


Module Procedures

private subroutine writeLine_a(a, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_ab(a, b, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abc(a, b, c, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcd(a, b, c, d, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcde(a, b, c, d, e, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
real(kind=r64) :: e
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_av(a, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_avbv(a, b, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a(:)
real(kind=r64) :: b(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_avbvcv(a, b, c, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a(:)
real(kind=r64) :: b(:)
real(kind=r64) :: c(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abv(a, b, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abvcv(a, b, c, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b(:)
real(kind=r64) :: c(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdev(a, b, c, d, e, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
real(kind=r64) :: e(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdevfv(a, b, c, d, e, f, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
real(kind=r64) :: e(:)
real(kind=r64) :: f(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdv(a, b, c, d, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdvev(a, b, c, d, e, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d(:)
real(kind=r64) :: e(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcv(a, b, c, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcvdv(a, b, c, d, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c(:)
real(kind=r64) :: d(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdefv(a, b, c, d, e, f, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
real(kind=r64) :: e
real(kind=r64) :: f(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

private subroutine writeLine_abcdefvgv(a, b, c, d, e, f, g, fname, iunit)

Interfaced with writeLine()

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: a
real(kind=r64) :: b
real(kind=r64) :: c
real(kind=r64) :: d
real(kind=r64) :: e
real(kind=r64) :: f(:)
real(kind=r64) :: g(:)
character(len=*), optional :: fname
integer(kind=i32), optional :: iunit

allocate allocate_test appendString arange argInsertionsort argMedianOf3 argPartition argSelect argSort array1D_test binarySearch checkIsOpen closeFile compact compare compare_d1 copy copy_test countEntries crossproduct cumprod cumsum dArgDynamicArray dArgDynamicArray_test daysInMonth daysInYear dDynamicArray dDynamicArray_test deallocate debug debug_s deleteFile diff eMsg fastTwoDiff fastTwoSum fErr fileExists fileIO_test geometricMean getExtension getFileSize getNFileLines getRandomSeed hasExtension hasNentries iachar1D iArgDynamicArray iArgDynamicArray_test idArgDynamicArray idArgDynamicArray_test idDynamicArray idDynamicArray_test iDynamicArray iDynamicArray_test ind2sub indexing_test insertionsort integerBin intervalSearch isLeapYear isOpen isSorted isString KdTree KdTree_test lowerCase maths_test mean median medianOf3 mErr msg norm1 normI openBinaryFile openFile partition partition3way partition3way_d1D prependString Prng Prng_test ProgressBar project random_test rArgDynamicArray rArgDynamicArray_test rDynamicArray rDynamicArray_test read1Dble read1Integer readline readline reallocate reallocate_test removeComments repeat replacedelim rngExponential rngExponential_d1 rngExponential_d1D rngExponential_d2D rngExponential_d3D rngExponential_unscaled_d1 rngInteger rngInteger_i1 rngInteger_i1D rngInteger_i2D rngInteger_i3D rngNormal rngNormal_d1 rngNormal_d1D rngNormal_d2D rngNormal_d3D rngUniform rngUniform_d1 rngUniform_d1D rngUniform_d2D rngUniform_d3D rngUniform_xorshift rngWeibull rngWeibull_d1 rngWeibull_d1D rngWeibull_d2D rngWeibull_d3D secondsToHMS select select_test setPrng setPrng_withSeed setPrng_WOseed shuffle simpleSearch skipFileLines sort sorting_test std str strings_test sub2ind swap test tester time_test timeInSeconds timeToInteger trimExtension trimmedmean twoDiff twoSum upperCase variance wMsg writeline