savetxt Interface

public interface savetxt

Saves a 2D array into a text file (Specification)


Module Procedures

private subroutine savetxt_rsp(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=sp), intent(in) :: d(:,:)

Example


 real(sp) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_rdp(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
real(kind=dp), intent(in) :: d(:,:)

Example


 real(dp) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_iint8(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int8), intent(in) :: d(:,:)

Example


 integer(int8) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_iint16(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int16), intent(in) :: d(:,:)

Example


 integer(int16) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_iint32(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int32), intent(in) :: d(:,:)

Example


 integer(int32) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_iint64(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
integer(kind=int64), intent(in) :: d(:,:)

Example


 integer(int64) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_csp(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
complex(kind=sp), intent(in) :: d(:,:)

Example


 complex(sp) :: data(3, 2)
 call savetxt("log.txt", data)

private subroutine savetxt_cdp(filename, d)

Saves a 2D array into a text file.

Arguments

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
complex(kind=dp), intent(in) :: d(:,:)

Example


 complex(dp) :: data(3, 2)
 call savetxt("log.txt", data)