ScaLAPACKFX
Data Types | Private Member Functions | List of all members
scalapackfx_tools_module Module Reference

Some extension routines to the scalapack library making it more usable. More...

Data Types

type  blocklist
 List of the local blocks of a distributed matrix. More...
 

Private Member Functions

subroutine blocklist_init (self, mygrid, desc, rowcol)
 Initializes a blocklist instance.
 
integer function blocklist_getsize (self)
 Returns the size of the blocklist.
 
subroutine blocklist_getblock (self, iblock, iglob, iloc, bsize)
 Returns the indices (local and global) of a local block.
 
subroutine cpl2g_real (mygrid, loc, desc, ii, jj, glob)
 Copies the content of a local matrix to a global one (real).
 
subroutine cpl2g_dreal (mygrid, loc, desc, ii, jj, glob)
 Copies the content of a local matrix to a global one (dreal).
 
subroutine cpl2g_complex (mygrid, loc, desc, ii, jj, glob)
 Copies the content of a local matrix to a global one (complex).
 
subroutine cpl2g_dcomplex (mygrid, loc, desc, ii, jj, glob)
 Copies the content of a local matrix to a global one (dcomplex).
 
subroutine cpl2g_int (mygrid, loc, desc, ii, jj, glob)
 Copies the content of a local matrix to a global one (int).
 
subroutine cpg2l_real (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine cpg2l_dreal (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine cpg2l_complex (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine cpg2l_dcomplex (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine cpg2l_int (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine addl2g_real (mygrid, loc, desc, ii, jj, glob)
 Adds the content of a local matrix to a global one (real).
 
subroutine addl2g_dreal (mygrid, loc, desc, ii, jj, glob)
 Adds the content of a local matrix to a global one (dreal).
 
subroutine addl2g_complex (mygrid, loc, desc, ii, jj, glob)
 Adds the content of a local matrix to a global one (complex).
 
subroutine addl2g_dcomplex (mygrid, loc, desc, ii, jj, glob)
 Adds the content of a local matrix to a global one (dcomplex).
 
subroutine addl2g_int (mygrid, loc, desc, ii, jj, glob)
 Adds the content of a local matrix to a global one (int).
 
subroutine addg2l_real (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine addg2l_dreal (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine addg2l_complex (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine addg2l_dcomplex (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine addg2l_int (mygrid, desc, ii, jj, glob, loc)
 Copies the content from the global matrix into a local one.
 
subroutine writearray_master_int (mygrid, fd, desc, mtxloc, rowwise, elemformat)
 Writes a distributed array to a file (master, int).
 
subroutine writearray_master_real (mygrid, fd, desc, mtxloc, rowwise, elemformat)
 Writes a distributed array to a file (master, real).
 
subroutine writearray_master_dreal (mygrid, fd, desc, mtxloc, rowwise, elemformat)
 Writes a distributed array to a file (master, dreal).
 
subroutine writearray_master_complex (mygrid, fd, desc, mtxloc, rowwise, elemformat)
 Writes a distributed array to a file (master, complex).
 
subroutine writearray_master_dcomplex (mygrid, fd, desc, mtxloc, rowwise, elemformat)
 Writes a distributed array to a file (master, dcomplex).
 
subroutine writearray_slave_int (mygrid, desc, mtxloc, rowwise)
 Writes a distributed array to a file (slave, int).
 
subroutine writearray_slave_real (mygrid, desc, mtxloc, rowwise)
 Writes a distributed array to a file (slave, real).
 
subroutine writearray_slave_dreal (mygrid, desc, mtxloc, rowwise)
 Writes a distributed array to a file (slave, dreal).
 
subroutine writearray_slave_complex (mygrid, desc, mtxloc, rowwise)
 Writes a distributed array to a file (slave, complex).
 
subroutine writearray_slave_dcomplex (mygrid, desc, mtxloc, rowwise)
 Writes a distributed array to a file (slave, dcomplex).
 
subroutine readarray_master_int (mygrid, fd, desc, mtxloc, rowwise, formatted)
 Reads a distributed array from a file (master, int).
 
subroutine readarray_master_real (mygrid, fd, desc, mtxloc, rowwise, formatted)
 Reads a distributed array from a file (master, real).
 
subroutine readarray_master_dreal (mygrid, fd, desc, mtxloc, rowwise, formatted)
 Reads a distributed array from a file (master, dreal).
 
subroutine readarray_master_complex (mygrid, fd, desc, mtxloc, rowwise, formatted)
 Reads a distributed array from a file (master, complex).
 
subroutine readarray_master_dcomplex (mygrid, fd, desc, mtxloc, rowwise, formatted)
 Reads a distributed array from a file (master, dcomplex).
 
subroutine readarray_slave_int (mygrid, desc, mtxloc, rowwise)
 Reads a distributed array from a file (slave, int).
 
subroutine readarray_slave_real (mygrid, desc, mtxloc, rowwise)
 Reads a distributed array from a file (slave, real).
 
subroutine readarray_slave_dreal (mygrid, desc, mtxloc, rowwise)
 Reads a distributed array from a file (slave, dreal).
 
subroutine readarray_slave_complex (mygrid, desc, mtxloc, rowwise)
 Reads a distributed array from a file (slave, complex).
 
subroutine readarray_slave_dcomplex (mygrid, desc, mtxloc, rowwise)
 Reads a distributed array from a file (slave, dcomplex).
 

Detailed Description

Some extension routines to the scalapack library making it more usable.

Some of the types exported by this module are defined in other modules. Therefore, see also the documentation of the following modules:

Member Function/Subroutine Documentation

subroutine scalapackfx_tools_module::addg2l_complex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(sp), dimension(:,:), intent(in)  glob,
complex(sp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::addg2l_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(dp), dimension(:,:), intent(in)  glob,
complex(dp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::addg2l_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(dp), dimension(:,:), intent(in)  glob,
real(dp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::addg2l_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
integer, dimension(:,:), intent(in)  glob,
integer, dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::addg2l_real ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(sp), dimension(:,:), intent(in)  glob,
real(sp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::addl2g_complex ( type(blacsgrid), intent(in)  mygrid,
complex(sp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(sp), dimension(:,:), intent(inout)  glob 
)
private

Adds the content of a local matrix to a global one (complex).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::addl2g_dcomplex ( type(blacsgrid), intent(in)  mygrid,
complex(dp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(dp), dimension(:,:), intent(inout)  glob 
)
private

Adds the content of a local matrix to a global one (dcomplex).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::addl2g_dreal ( type(blacsgrid), intent(in)  mygrid,
real(dp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(dp), dimension(:,:), intent(inout)  glob 
)
private

Adds the content of a local matrix to a global one (dreal).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::addl2g_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
integer, dimension(:,:), intent(inout)  glob 
)
private

Adds the content of a local matrix to a global one (int).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::addl2g_real ( type(blacsgrid), intent(in)  mygrid,
real(sp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(sp), dimension(:,:), intent(inout)  glob 
)
private

Adds the content of a local matrix to a global one (real).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::blocklist_getblock ( class(blocklist), intent(in)  self,
integer, intent(in)  iblock,
integer, intent(out)  iglob,
integer, intent(out)  iloc,
integer, intent(out)  bsize 
)
private

Returns the indices (local and global) of a local block.

Parameters
selfBlocklist instance.
iblockNumber of local block.
iglobIndex of the first element of the block in the global matrix.
ilocIndex of the first element of the block in the local matirx.
bsizeSize of the block (number of elements in the block).
integer function scalapackfx_tools_module::blocklist_getsize ( class(blocklist), intent(in)  self)
private

Returns the size of the blocklist.

Parameters
selfInstance.
Returns
Number of local blocks of the distributed matrix.
subroutine scalapackfx_tools_module::blocklist_init ( class(blocklist), intent(inout)  self,
type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
character, intent(in)  rowcol 
)
private

Initializes a blocklist instance.

Parameters
selfInitialized instance on exit.
mygridBLACS descriptor
descDescriptor of the distributed matrix.
rowcol"C" for column, "R" for row blocks.
subroutine scalapackfx_tools_module::cpg2l_complex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(sp), dimension(:,:), intent(in)  glob,
complex(sp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::cpg2l_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(dp), dimension(:,:), intent(in)  glob,
complex(dp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::cpg2l_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(dp), dimension(:,:), intent(in)  glob,
real(dp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::cpg2l_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
integer, dimension(:,:), intent(in)  glob,
integer, dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::cpg2l_real ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(sp), dimension(:,:), intent(in)  glob,
real(sp), dimension(:,:), intent(out)  loc 
)
private

Copies the content from the global matrix into a local one.

Parameters
mygridBLACS descriptor
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
locLocal matrix.
subroutine scalapackfx_tools_module::cpl2g_complex ( type(blacsgrid), intent(in)  mygrid,
complex(sp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(sp), dimension(:,:), intent(inout)  glob 
)
private

Copies the content of a local matrix to a global one (complex).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::cpl2g_dcomplex ( type(blacsgrid), intent(in)  mygrid,
complex(dp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
complex(dp), dimension(:,:), intent(inout)  glob 
)
private

Copies the content of a local matrix to a global one (dcomplex).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::cpl2g_dreal ( type(blacsgrid), intent(in)  mygrid,
real(dp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(dp), dimension(:,:), intent(inout)  glob 
)
private

Copies the content of a local matrix to a global one (dreal).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::cpl2g_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
integer, dimension(:,:), intent(inout)  glob 
)
private

Copies the content of a local matrix to a global one (int).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::cpl2g_real ( type(blacsgrid), intent(in)  mygrid,
real(sp), dimension(:,:), intent(in)  loc,
integer, dimension(dlen_), intent(in)  desc,
integer, intent(in)  ii,
integer, intent(in)  jj,
real(sp), dimension(:,:), intent(inout)  glob 
)
private

Copies the content of a local matrix to a global one (real).

Parameters
mygridBLACS descriptor
locLocal matrix.
descDescriptor of the global matrix.
iiStarting row in the global matrix.
jjStarting column in the global matrix
globLocal part of the global matrix.
subroutine scalapackfx_tools_module::readarray_master_complex ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
complex(sp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise,
logical, intent(in), optional  formatted 
)
private

Reads a distributed array from a file (master, complex).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
formattedIf .true. matrix will be read formatted otherwise unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! (default: .false.)
subroutine scalapackfx_tools_module::readarray_master_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
complex(dp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise,
logical, intent(in), optional  formatted 
)
private

Reads a distributed array from a file (master, dcomplex).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
formattedIf .true. matrix will be read formatted otherwise unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! (default: .false.)
subroutine scalapackfx_tools_module::readarray_master_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
real(dp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise,
logical, intent(in), optional  formatted 
)
private

Reads a distributed array from a file (master, dreal).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
formattedIf .true. matrix will be read formatted otherwise unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! (default: .false.)
subroutine scalapackfx_tools_module::readarray_master_int ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
integer, dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise,
logical, intent(in), optional  formatted 
)
private

Reads a distributed array from a file (master, int).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
formattedIf .true. matrix will be read formatted otherwise unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! (default: .false.)
subroutine scalapackfx_tools_module::readarray_master_real ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
real(sp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise,
logical, intent(in), optional  formatted 
)
private

Reads a distributed array from a file (master, real).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
formattedIf .true. matrix will be read formatted otherwise unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! (default: .false.)
subroutine scalapackfx_tools_module::readarray_slave_complex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
complex(sp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Reads a distributed array from a file (slave, complex).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
subroutine scalapackfx_tools_module::readarray_slave_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
complex(dp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Reads a distributed array from a file (slave, dcomplex).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
subroutine scalapackfx_tools_module::readarray_slave_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
real(dp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Reads a distributed array from a file (slave, dreal).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
subroutine scalapackfx_tools_module::readarray_slave_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Reads a distributed array from a file (slave, int).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
subroutine scalapackfx_tools_module::readarray_slave_real ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
real(sp), dimension(:,:), intent(inout)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Reads a distributed array from a file (slave, real).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is assumed to be stored rowwise otherwise columnwise (default: .false.)
subroutine scalapackfx_tools_module::writearray_master_complex ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
complex(sp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise,
character(*), intent(in), optional  elemformat 
)
private

Writes a distributed array to a file (master, complex).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
elemformatFormatting of one element (e.g. "(E23.15)"). If present matrix will be written formatted, otherwise the matrix is written unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! The formatting string must contain the delimiting parantheses.
subroutine scalapackfx_tools_module::writearray_master_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
complex(dp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise,
character(*), intent(in), optional  elemformat 
)
private

Writes a distributed array to a file (master, dcomplex).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
elemformatFormatting of one element (e.g. "(E23.15)"). If present matrix will be written formatted, otherwise the matrix is written unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! The formatting string must contain the delimiting parantheses.
subroutine scalapackfx_tools_module::writearray_master_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
real(dp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise,
character(*), intent(in), optional  elemformat 
)
private

Writes a distributed array to a file (master, dreal).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
elemformatFormatting of one element (e.g. "(E23.15)"). If present matrix will be written formatted, otherwise the matrix is written unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! The formatting string must contain the delimiting parantheses.
subroutine scalapackfx_tools_module::writearray_master_int ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
integer, dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise,
character(*), intent(in), optional  elemformat 
)
private

Writes a distributed array to a file (master, int).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
elemformatFormatting of one element (e.g. "(E23.15)"). If present matrix will be written formatted, otherwise the matrix is written unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! The formatting string must contain the delimiting parantheses.
subroutine scalapackfx_tools_module::writearray_master_real ( type(blacsgrid), intent(in)  mygrid,
integer, intent(in)  fd,
integer, dimension(dlen_), intent(in)  desc,
real(sp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise,
character(*), intent(in), optional  elemformat 
)
private

Writes a distributed array to a file (master, real).

Parameters
mygridBLACS descriptor
fdFile descriptor of an opened file.
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
elemformatFormatting of one element (e.g. "(E23.15)"). If present matrix will be written formatted, otherwise the matrix is written unformatted. The file descriptor must accordingly belong to a formatted or an unformatted file! The formatting string must contain the delimiting parantheses.
subroutine scalapackfx_tools_module::writearray_slave_complex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
complex(sp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Writes a distributed array to a file (slave, complex).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
subroutine scalapackfx_tools_module::writearray_slave_dcomplex ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
complex(dp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Writes a distributed array to a file (slave, dcomplex).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
subroutine scalapackfx_tools_module::writearray_slave_dreal ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
real(dp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Writes a distributed array to a file (slave, dreal).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
subroutine scalapackfx_tools_module::writearray_slave_int ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
integer, dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Writes a distributed array to a file (slave, int).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise
subroutine scalapackfx_tools_module::writearray_slave_real ( type(blacsgrid), intent(in)  mygrid,
integer, dimension(dlen_), intent(in)  desc,
real(sp), dimension(:,:), intent(in)  mtxloc,
logical, intent(in), optional  rowwise 
)
private

Writes a distributed array to a file (slave, real).

Parameters
mygridBLACS descriptor
descDescriptor of the distributed matrix
mtxlocLocal portion of the distributed matrix
rowwiseIf .true. matrix is dumped rowwise otherwise columnwise

The documentation for this module was generated from the following file: