ForTrilinos
Data Types
FEpetra_MpiComm Module Reference

Data Types

type  Epetra_MpiComm

Functions/Subroutines

Constructor Functions
type(Epetra_MpiCommEpetra_MpiComm (MPI_COMM_WORLD)
 
Epetra_MpiComm MPI Constructor.
type(Epetra_MpiCommEpetra_MpiComm (this)
 
Epetra_MpiComm Copy Constructor.
Barrier Methods
subroutine barrier (this)
 
Epetra_MpiComm Barrier function.
Broadcast Methods
subroutine broadcast (this, MyVals, count, root, err)
 
Epetra_MpiComm Broadcast function.
subroutine broadcast (this, MyVals, count, root, err)
 
Epetra_MpiComm Broadcast function.
subroutine broadcast_long (this, MyVals, count, root, err)
 
Epetra_MpiComm Broadcast function.
subroutine broadcast (this, MyVals, count, root, err)
 
Epetra_MpiComm Broadcast function.
GatherAll Methods
subroutine GatherAll (this, MyVals, AllVals, count, err)
 
Epetra_MpiComm All Gather function.
subroutine GatherAll (this, MyVals, AllVals, count, err)
 
Epetra_MpiComm All Gather function.
subroutine gather_long (this, MyVals, AllVals, count, err)
 
Epetra_MpiComm All Gather function.
Sum Methods
subroutine SumAll (this, PartialSums, GlobalSums, count, err)
 
Epetra_MpiComm Global Summ function.
subroutine SumAll (this, PartialSums, GlobalSums, count, err)
 
Epetra_MpiComm Global Summ function.
subroutine sum_long (this, PartialSums, GlobalSums, count, err)
 
Epetra_MpiComm Global Summ function.
Max/Min Methods
subroutine MaxAll (this, PartialMaxs, GlobalMaxs, count, err)
 
Epetra_MpiComm Global Max function.
subroutine MaxAll (this, PartialMaxs, GlobalMaxs, count, err)
 
Epetra_MpiComm Global Max function.
subroutine max_long (this, PartialMaxs, GlobalMaxs, count, err)
 
Epetra_MpiComm Global Max function.
subroutine MinAll (this, PartialMins, GlobalMins, count, err)
 
Epetra_MpiComm Global Min function.
subroutine MinAll (this, PartialMins, GlobalMins, count, err)
 
Epetra_MpiComm Global Min function.
subroutine min_long (this, PartialMins, GlobalMins, count, err)
 
Epetra_MpiComm Global Min function.
Parallel Prefix Methods
subroutine ScanSum (this, MyVals, scan_sums, count, err)
 
Epetra_MpiComm Scan Sum function.
subroutine ScanSum (this, MyVals, scan_sums, count, err)
 
Epetra_MpiComm Scan Sum function.
subroutine ScanSum_long (this, MyVals, scan_sums, count, err)
 
Epetra_MpiComm Scan Sum function.
integer(c_int) MyPID (this)
 
Return my process ID.
integer(c_int) NumProc (this)
 
Return my process ID.

Function/Subroutine Documentation

subroutine FEpetra_MpiComm::barrier ( class(Epetra_MpiComm),intent(in)  this)


Epetra_MpiComm Barrier function.

Causes each processor in the communicator to wait until all processors have arrived. Implements Epetra_Comm.

subroutine FEpetra_MpiComm::broadcast ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(inout)  MyVals,
integer(c_int),intent(in)  count,
integer(c_int),intent(in)  root,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Broadcast function.

Takes list of input values from the root processor and sends to all other processors. Implements Epetra_Comm.

Parameters:
MyValsInOut On entry, the root processor contains the list of values. On exit, all processors will have the same list of values. Note that values must be allocated on all processor before the broadcast.
countIn On entry, contains the length of the list of MyVals.
rootIn On entry, contains the processor from which all processors will receive a copy of MyVals.
errReturn any error information.
subroutine FEpetra_MpiComm::broadcast ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(inout)  MyVals,
integer(c_int),intent(in)  count,
integer(c_int),intent(in)  root,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Broadcast function.

Takes list of input values from the root processor and sends to all other processors. Implements Epetra_Comm.

Parameters:
MyValsInOut On entry, the root processor contains the list of values. On exit, all processors will have the same list of values. Note that values must be allocated on all processor before the broadcast.
countIn On entry, contains the length of the list of MyVals.
rootIn On entry, contains the processor from which all processors will receive a copy of MyVals.
errReturn any error information
subroutine FEpetra_MpiComm::broadcast ( class(Epetra_MpiComm),intent(in)  this,
character(kind=c_char),dimension(:),intent(inout)  MyVals,
integer(c_int),intent(in)  count,
integer(c_int),intent(in)  root,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Broadcast function.

Takes list of input values from the root processor and sends to all other processors. Implements Epetra_Comm.

Parameters:
MyValsInOut On entry, the root processor contains the list of values. On exit, all processors will have the same list of values. Note that values must be allocated on all processor before the broadcast.
countIn On entry, contains the length of the list of MyVals.
rootIn On entry, contains the processor from which all processors will receive a copy of MyVals.
errReturn any error information.
subroutine FEpetra_MpiComm::broadcast_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(inout)  MyVals,
integer(c_int),intent(in)  count,
integer(c_int),intent(in)  root,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Broadcast function.

Takes list of input values from the root processor and sends to all other processors. Implements Epetra_Comm.

Parameters:
MyValsInOut On entry, the root processor contains the list of values. On exit, all processors will have the same list of values. Note that values must be allocated on all processor before the broadcast.
countIn On entry, contains the length of the list of MyVals.
rootIn On entry, contains the processor from which all processors will receive a copy of MyVals.
errReturn any error information
type(Epetra_MpiComm) FEpetra_MpiComm::Epetra_MpiComm ( type(Epetra_MpiComm),intent(in)  this)


Epetra_MpiComm Copy Constructor.

Makes an exact copy of an existing Epetra_MpiComm instance.

type(Epetra_MpiComm) FEpetra_MpiComm::Epetra_MpiComm (   MPI_COMM_WORLD)


Epetra_MpiComm MPI Constructor.

Creates a Epetra_MpiComm instance for use with MPI. If no specialized MPI communicator is needed, this constuctor can be called with the argument MPI_COMM_WORLD.

subroutine FEpetra_MpiComm::gather_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(in)  MyVals,
integer(c_long),dimension(:),intent(inout)  AllVals,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm All Gather function.

Take list of input values from all processors in the communicator and creates an ordered contiguous list of tho se values on each processor. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values, to be sent to all processors.
AllValsOn exit, contains the list of values from all processors. Must be of size NumProc*Count.
countOn entry, contains the length of the list of MyVals.
errReturn any error information.
subroutine FEpetra_MpiComm::GatherAll ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(in)  MyVals,
real(c_double),dimension(:),intent(inout)  AllVals,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm All Gather function.

Take list of input values from all processors in the communicator and creates an ordered contiguous list of those values on each processor. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values, to be sent to all processors.
AllValsOn exit, contains the list of values from all processors. Must be of size NumProc*Count.
countOn entry, contains the length of the list of MyVals.
errReturn any error information.
subroutine FEpetra_MpiComm::GatherAll ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(in)  MyVals,
integer(c_int),dimension(:),intent(inout)  AllVals,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm All Gather function.

Take list of input values from all processors in the communicator and creates an ordered contiguous list of tho se values on each processor. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values, to be sent to all processors.
AllValsOn exit, contains the list of values from all processors. Must be of size NumProc*Count.
countOn entry, contains the length of the list of MyVals.
errReturn any error information.
subroutine FEpetra_MpiComm::max_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(in)  PartialMaxs,
integer(c_long),dimension(:),intent(inout)  GlobalMaxs,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Max function.

Take list of input values from all processors in the communicator, computes the max and returns the max to all processors. Implements Epetra_Comm.

Parameters:
PartialMaxsOn entry, contains the list of values, usually partial maxs computed locally, using these Partial Maxs, the max across all processors will be computed.
GlobalMaxsOn exit, contains the list of maxs computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::MaxAll ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(in)  PartialMaxs,
real(c_double),dimension(:),intent(inout)  GlobalMaxs,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Max function.

Take list of input values from all processors in the communicator, computes the max and returns the max to all processors. Implements Epetra_Comm.

Parameters:
PartialMaxsOn entry, contains the list of values, usually partial maxs computed locally, using these Partial Maxs, the max across all processors will be computed.
GlobalMaxsOn exit, contains the list of maxs computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::MaxAll ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(in)  PartialMaxs,
integer(c_int),dimension(:),intent(inout)  GlobalMaxs,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Max function.

Take list of input values from all processors in the communicator, computes the max and returns the max to all processors. Implements Epetra_Comm.

Parameters:
PartialMaxsOn entry, contains the list of values, usually partial maxs computed locally, using these Partial Maxs, the max across all processors will be computed.
GlobalMaxsOn exit, contains the list of maxs computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::min_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(in)  PartialMins,
integer(c_long),dimension(:),intent(inout)  GlobalMins,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Min function.

Take list of input values from all processors in the communicator, computes the min and returns the min to all processors. Implements Epetra_Comm.

Parameters:
PartialMinsOn entry, contains the list of values, usually partial mins computed locally; using these Partial Mins, the min across all processors will be computed.
GlobalMinsOn exit, contains the list of mins computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::MinAll ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(in)  PartialMins,
real(c_double),dimension(:),intent(inout)  GlobalMins,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Min function.

Take list of input values from all processors in the communicator, computes the min and returns the min to all processors. Implements Epetra_Comm.

Parameters:
PartialMinsOn entry, contains the list of values, usually partial mins computed locally; using these Partial Mins, the min across all processors will be computed.
GlobalMinsOn exit, contains the list of mins computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::MinAll ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(in)  PartialMins,
integer(c_int),dimension(:),intent(inout)  GlobalMins,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Min function.

Take list of input values from all processors in the communicator, computes the min and returns the min to all processors. Implements Epetra_Comm.

Parameters:
PartialMinsOn entry, contains the list of values, usually partial mins computed locally; using these Partial Mins, the min across all processors will be computed.
GlobalMinsOn exit, contains the list of mins computed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
integer(c_int) FEpetra_MpiComm::MyPID ( class(Epetra_MpiComm),intent(in)  this)


Return my process ID.

In MPI mode returns the rank of the calling process. In serial mode returns 0. Implements Epetra_Comm.

integer(c_int) FEpetra_MpiComm::NumProc ( class(Epetra_MpiComm),intent(in)  this)


Return my process ID.

Returns total number of processes (always returns 1 for MpiComm). Implements Epetra_Comm.

subroutine FEpetra_MpiComm::ScanSum ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(in)  MyVals,
real(c_double),dimension(:),intent(inout)  scan_sums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Scan Sum function.

Take list of input values from all processors in the communicator, computes the scan sum and returns it to all processors such that processor i contains the sum of values from processor 0 up to and including processor i. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values to be summed across all processors.
scan_sumsOn exit, contains the list of values summed across processors 0 through i.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::ScanSum ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(in)  MyVals,
integer(c_int),dimension(:),intent(inout)  scan_sums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Scan Sum function.

Take list of input values from all processors in the communicator, computes the scan sum and returns it to all processors such that processor i contains the sum of values from processor 0 up to and including processor i. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values to be summed across all processors.
scan_sumsOn exit, contains the list of values summed across processors 0 through i.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::ScanSum_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(in)  MyVals,
integer(c_long),dimension(:),intent(inout)  scan_sums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Scan Sum function.

Take list of input values from all processors in the communicator, computes the scan sum and returns it to all processors such that processor i contains the sum of values from processor 0 up to and including processor i. Implements Epetra_Comm.

Parameters:
MyValsOn entry, contains the list of values to be summed across all processors.
scan_sumsOn exit, contains the list of values summed across processors 0 through i.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::sum_long ( class(Epetra_MpiComm),intent(in)  this,
integer(c_long),dimension(:),intent(in)  PartialSums,
integer(c_long),dimension(:),intent(inout)  GlobalSums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Summ function.

Take list of input values from all processors in the communicator, computes the sum and returns the sum to all processors. Implements Epetra_Comm.

Parameters:
PartialSumsOn entry, contains the list of values, usually partial sums computed locally, to be summed across all processors.
GlobalSumsOn exit, contains the list of values summed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::SumAll ( class(Epetra_MpiComm),intent(in)  this,
integer(c_int),dimension(:),intent(in)  PartialSums,
integer(c_int),dimension(:),intent(inout)  GlobalSums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Summ function.

Take list of input values from all processors in the communicator, computes the sum and returns the sum to all processors. Implements Epetra_Comm.

Parameters:
PartialSumsOn entry, contains the list of values, usually partial sums computed locally, to be summed across all processors.
GlobalSumsOn exit, contains the list of values summed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
subroutine FEpetra_MpiComm::SumAll ( class(Epetra_MpiComm),intent(in)  this,
real(c_double),dimension(:),intent(in)  PartialSums,
real(c_double),dimension(:),intent(inout)  GlobalSums,
integer(c_int),intent(in)  count,
type(error),intent(inout),optional  err 
)


Epetra_MpiComm Global Summ function.

Take list of input values from all processors in the communicator, computes the sum and returns the sum to all processors. Implements Epetra_Comm.

Parameters:
PartialSumsOn entry, contains the list of values, usually partial sums computed locally, to be summed across all processors.
GlobalSumsOn exit, contains the list of values summed across all processors.
countOn entry, contains the length of the list of values.
errReturn any error information.
 All Classes Namespaces Files Functions