DOUG 0.2
Data Types | Functions/Subroutines | Variables

Vect_mod Module Reference

Data Types

type  farrayV
interface  Vect_Print

Functions/Subroutines

subroutine Vect_cleanUp ()
subroutine Vect_setIntfEnd (end)
subroutine Vect_buildDotMask (M)
subroutine Vect_buildDotMap ()
float(kind=rk) Vect_dot_product (x1, x2)
subroutine Vect_permute (x, perm)
subroutine Vect_Gather (xl, x, M, rank)
 Assemble vector on root processor with rank eq.
subroutine Integer_Vect_Gather (il, ig, M, owner, rank)
 Assemble vector of integers on root processor with rank eq.
subroutine Print_Glob_Vect (x, M, text, rows, chk_endind)
subroutine Vect_exchangeIntf (x, M)
subroutine Vect_readAndBroadcastRHS (b, Msh)
 Broadcasts RHS to slaves.
subroutine, private CommStructs_init (M)
subroutine, private CommStructs_destroy ()
subroutine, private DVect_Print (x, str)
subroutine, private IVect_Print (x, str)
subroutine, private I1Vect_Print (x, str)
subroutine Vect_remap (x, y, map, dozero)
subroutine Vect_ReadFromFile (x, filename, format)
 Read vector of floats from file.
subroutine Vect_ReadFromFile_Text (filename, x)
 Read vector of floats from file (text version)
subroutine Vect_ReadFromFile_Binary (filename, x)
 Read vector of floats from file (binary version)

Variables

integer, dimension(:,:), pointer fexchindxV
integer, dimension(:), pointer pid2indxV
type(farrayV), dimension(:),
pointer 
inbufsV
type(farrayV), dimension(:),
pointer 
outbufsV
logical D_COMMSTRUCTS_INITEDV = .false.
integer intf_end = -1
integer, dimension(:), pointer dot_intf_fmask
integer, dimension(:), pointer dot_intf_fmap
integer, parameter D_DOTMASK_MINE = 1
integer, parameter D_DOTMASK_NOTMINE = 0
integer ninner
integer, parameter D_RHS_TEXT = 0
integer, parameter D_RHS_BINARY = 1
integer, parameter D_RHS_XDR = 2

Function/Subroutine Documentation

subroutine,private Vect_mod::CommStructs_destroy ( ) [private]

Definition at line 720 of file Vect.F90.

References D_COMMSTRUCTS_INITEDV, fexchindxV, inbufsV, outbufsV, and pid2indxV.

Referenced by Vect_exchangeIntf().

subroutine,private Vect_mod::CommStructs_init ( type(Mesh),intent(in)  M) [private]
subroutine,private Vect_mod::DVect_Print ( float(kind=rk),dimension(:),intent(in)  x,
character*(*),intent(in),optional  str 
) [private]

Definition at line 754 of file Vect.F90.

References RealKind::rk.

subroutine,private Vect_mod::I1Vect_Print ( integer(kind=1),dimension(:),intent(in)  x,
character*(*),intent(in),optional  str 
) [private]

Definition at line 800 of file Vect.F90.

subroutine Vect_mod::Integer_Vect_Gather ( integer,dimension(:),intent(in)  il,
integer,dimension(:),intent(inout)  ig,
type(Mesh),intent(in)  M,
integer,dimension(:),optional,pointer  owner,
integer,intent(in),optional  rank 
)

Assemble vector of integers on root processor with rank eq.

to 'rank' or on master(=D_MASTER)

Definition at line 395 of file Vect.F90.

subroutine,private Vect_mod::IVect_Print ( integer,dimension(:),intent(in)  x,
character*(*),intent(in),optional  str 
) [private]

Definition at line 777 of file Vect.F90.

subroutine Vect_mod::Print_Glob_Vect ( float(kind=rk),dimension(:),intent(in)  x,
type(Mesh),intent(in)  M,
character*(*),intent(in)  text,
logical,intent(in),optional  rows,
integer,intent(in),optional  chk_endind 
)

Definition at line 479 of file Vect.F90.

References DOUG_utils::ismaster(), RealKind::rk, and Vect_Gather().

subroutine Vect_mod::Vect_buildDotMap ( )
subroutine Vect_mod::Vect_buildDotMask ( type(Mesh),intent(in)  M)
subroutine Vect_mod::Vect_cleanUp ( )

Definition at line 98 of file Vect.F90.

References dot_intf_fmap, dot_intf_fmask, fexchindxV, inbufsV, outbufsV, and pid2indxV.

Referenced by main_geom().

float(kind=rk) Vect_mod::Vect_dot_product ( float(kind=rk),dimension(:),intent(in)  x1,
float(kind=rk),dimension(:),intent(in)  x2 
)

Definition at line 206 of file Vect.F90.

References dot_intf_fmap, DOUG_utils::DOUG_abort(), intf_end, ninner, or(), and RealKind::rk.

Referenced by main_geom(), and pcgRobust_mod::pcg_forRCS().

subroutine Vect_mod::Vect_exchangeIntf ( float(kind=rk),dimension(:),intent(inout)  x,
type(Mesh),intent(in)  M 
)
subroutine Vect_mod::Vect_Gather ( float(kind=rk),dimension(:),intent(in)  xl,
float(kind=rk),dimension(:),intent(inout)  x,
type(Mesh),intent(in)  M,
integer,intent(in),optional  rank 
)

Assemble vector on root processor with rank eq.

to 'rank' or on master(=D_MASTER)

Definition at line 272 of file Vect.F90.

References RealKind::rk.

Referenced by main_aggr(), main_geom(), and Print_Glob_Vect().

subroutine Vect_mod::Vect_permute ( float(kind=rk),dimension(:),intent(inout)  x,
integer,dimension(:),intent(in)  perm 
)

Definition at line 246 of file Vect.F90.

References DOUG_utils::DOUG_abort(), and RealKind::rk.

subroutine Vect_mod::Vect_readAndBroadcastRHS ( float(kind=rk),dimension(:),pointer  b,
type(Mesh),intent(in)  Msh 
)

Broadcasts RHS to slaves.

Parameters:
blocal RHS
MshMesh

Definition at line 603 of file Vect.F90.

References DOUG_utils::ismaster(), globals::mctls, globals::MPI_fkind, RealKind::rk, and Vect_ReadFromFile().

Referenced by ElemMtxs_distribute::ElemMtxs_readAndDistribute(), and ElemMtxs_distribute::ElemMtxs_recvAndAssemble().

subroutine Vect_mod::Vect_ReadFromFile ( float(kind=rk),dimension(:),pointer  x,
character*(*),intent(in)  filename,
integer,intent(in),optional  format 
)

Read vector of floats from file.

Parameters:
xthe vector; before calling, the vector must be dimensioned with correct size
filenamename of the file to read in
formatIn which format is the input data (default: D_RHS_BINARY)

Definition at line 840 of file Vect.F90.

References D_RHS_BINARY, D_RHS_TEXT, D_RHS_XDR, DOUG_utils::DOUG_abort(), not, RealKind::rk, Vect_ReadFromFile_Binary(), and Vect_ReadFromFile_Text().

Referenced by Distribution_assm_mod::parallelDistributeAssembledInput(), and Vect_readAndBroadcastRHS().

subroutine Vect_mod::Vect_ReadFromFile_Binary ( character*(*),intent(in)  filename,
float(kind=rk),dimension(:),pointer  x 
)

Read vector of floats from file (binary version)

Parameters:
filenamename of the file to read in
xthe vector; before calling, the vector must be dimensioned with correct size

Definition at line 903 of file Vect.F90.

References DOUG_utils::DOUG_abort(), DOUG_utils::FindFreeIOUnit(), and RealKind::rk.

Referenced by Vect_ReadFromFile().

subroutine Vect_mod::Vect_ReadFromFile_Text ( character*(*),intent(in)  filename,
float(kind=rk),dimension(:),pointer  x 
)

Read vector of floats from file (text version)

Parameters:
filenamename of the file to read in
xthe vector; before calling, the vector must be dimensioned with correct size

Definition at line 873 of file Vect.F90.

References DOUG_utils::DOUG_abort(), DOUG_utils::FindFreeIOUnit(), and RealKind::rk.

Referenced by Vect_ReadFromFile().

subroutine Vect_mod::Vect_remap ( float(kind=rk),dimension(:),intent(in)  x,
float(kind=rk),dimension(:),intent(out)  y,
integer,dimension(:),intent(in)  map,
logical,optional  dozero 
)

Definition at line 820 of file Vect.F90.

References RealKind::rk.

subroutine Vect_mod::Vect_setIntfEnd ( integer,intent(in)  end)

Definition at line 117 of file Vect.F90.

References intf_end.

Referenced by Distribution_elem_mod::parallelAssembleFromElemInput(), and Vect_buildDotMask().


Variable Documentation

Definition at line 58 of file Vect.F90.

Referenced by CommStructs_destroy(), and CommStructs_init().

integer,parameter Vect_mod::D_DOTMASK_MINE = 1

Definition at line 72 of file Vect.F90.

Referenced by Vect_buildDotMap(), and Vect_buildDotMask().

integer,parameter Vect_mod::D_DOTMASK_NOTMINE = 0

Definition at line 73 of file Vect.F90.

Referenced by Vect_buildDotMask().

integer,parameter Vect_mod::D_RHS_BINARY = 1

Definition at line 76 of file Vect.F90.

Referenced by Vect_ReadFromFile().

integer,parameter Vect_mod::D_RHS_TEXT = 0

Definition at line 75 of file Vect.F90.

Referenced by Vect_ReadFromFile().

integer,parameter Vect_mod::D_RHS_XDR = 2

Definition at line 77 of file Vect.F90.

Referenced by Vect_ReadFromFile().

integer,dimension(:),pointer Vect_mod::dot_intf_fmap
integer,dimension(:),pointer Vect_mod::dot_intf_fmask
integer,dimension(:,:),pointer Vect_mod::fexchindxV

Definition at line 45 of file Vect.F90.

Referenced by CommStructs_destroy(), CommStructs_init(), Vect_cleanUp(), and Vect_exchangeIntf().

type(farrayV),dimension(:),pointer Vect_mod::inbufsV

Definition at line 53 of file Vect.F90.

Referenced by CommStructs_destroy(), CommStructs_init(), Vect_cleanUp(), and Vect_exchangeIntf().

integer Vect_mod::intf_end = -1

Definition at line 65 of file Vect.F90.

Referenced by Vect_buildDotMap(), Vect_buildDotMask(), Vect_dot_product(), and Vect_setIntfEnd().

Definition at line 74 of file Vect.F90.

Referenced by Vect_buildDotMask(), and Vect_dot_product().

type(farrayV),dimension(:),pointer Vect_mod::outbufsV

Definition at line 54 of file Vect.F90.

Referenced by CommStructs_destroy(), CommStructs_init(), Vect_cleanUp(), and Vect_exchangeIntf().

integer,dimension(:),pointer Vect_mod::pid2indxV

Definition at line 47 of file Vect.F90.

Referenced by CommStructs_destroy(), CommStructs_init(), Vect_cleanUp(), and Vect_exchangeIntf().