DOUG 0.2
Functions/Subroutines

SpMtx_distribution_mod Module Reference

Functions/Subroutines

type(SpMtxSpMtx_exchange (A, sends, M, lgi, lgj)
 Exchange matrix elements between all processes and store into the new matrix.
subroutine SpMtx_localize (A, A_ghost, b, M)
 Restructure and reindex matrix for local computation.

Function/Subroutine Documentation

type(SpMtx) SpMtx_distribution_mod::SpMtx_exchange ( type(SpMtx),intent(in)  A,
type(indlist),dimension(:),intent(in)  sends,
type(Mesh),intent(in)  M,
integer,dimension(:),intent(in)  lgi,
integer,dimension(:),intent(in)  lgj 
)

Exchange matrix elements between all processes and store into the new matrix.

Parameters:
Amatrix, which elements are to be sent
sendsindices of matrix elements to send to each neighbour
Mmesh that contains neighbour info
lgilocal to global for A row indices
lgjlocal to global for A column indices

Definition at line 22 of file SpMtx_distribution.F90.

References calcBufferSize(), DOUG_utils::DOUG_abort(), globals::MPI_fkind, and SpMtx_class::SpMtx_newInit().

Referenced by collectRestrictValues(), and distributeRestrictValues().

subroutine SpMtx_distribution_mod::SpMtx_localize ( type(SpMtx),intent(inout)  A,
type(SpMtx),intent(inout)  A_ghost,
float(kind=rk),dimension(:),pointer  b,
type(Mesh)  M 
)