Observatoire de Paris - Code Fortran  version1.0
Data Types | Modules
mod_all_object.f90 File Reference

Data Types

interface  mod_scalapackfx_tools::scalafx_cpl2g
 
interface  mod_scalapackfx_tools::scalafx_cpg2l
 
interface  mod_scalapackfx_tools::scalafx_addl2g
 
interface  mod_scalapackfx_tools::scalafx_addg2l
 
interface  mod_scalapackfx_tools::writearray_master
 
interface  mod_scalapackfx_tools::writearray_slave
 
interface  mod_scalapackfx_tools::readarray_master
 
interface  mod_scalapackfx_tools::readarray_slave
 
type  mod_scalapackfx_tools::blocklist
 
interface  mod_scalapackfx_tools::size
 

Modules

module  mod_scalapackfx_tools
 

Functions/Subroutines

blocklist

List of the local blocks of a distributed matrix.

This structure can be helpful when modifying a distributed matrix directly on the local nodes. For example, in order to multiply every column of a distributed matrix by a column dependent factor, you could use the blocklist the following way:

type(blocklist) :: blocks
integer :: ii, jj, jglob, jloc, bsize
:
call blocks%init(mygrid, descaa, "c")
do ii = 1, size(blocks)
call blocks%getblock(ii, jglob, jloc, bsize)
do jj = 0, bsize - 1
aa(:,jloc + jj) = aa(:,jloc + jj) * ff(jglob + jj)
end do
end do
subroutine mod_scalapackfx_tools::blocklist_init (self, mygrid, desc, rowcol)
 Initializes a blocklist instance. More...
 
integer function mod_scalapackfx_tools::blocklist_getsize (self)
 Returns the size of the blocklist. More...
 
subroutine mod_scalapackfx_tools::blocklist_getblock (self, iblock, iglob, iloc, bsize)
 Returns the indices (local and global) of a local block. More...