Public Member Functions | Private Attributes
Sundance::FunctionalAssemblyKernel Class Reference

FunctionalAssemblyKernel does assembly of a functional value. More...

Inheritance diagram for Sundance::FunctionalAssemblyKernel:
Sundance::AssemblyKernelBase

List of all members.

Public Member Functions

 FunctionalAssemblyKernel (const MPIComm &comm, double *value, int verb)
virtual void fill (bool isBC, const IntegralGroup &group, const RCP< Array< double > > &localValues)
 Adds the results of the current integral group into the assembly results.
void postLoopFinalization ()
 Hook to do any finalization steps after the main assembly loop, for example, doing an all-reduce on locally computed functional values.

Private Attributes

MPIComm comm_
double * value_
double localValue_

Detailed Description

FunctionalAssemblyKernel does assembly of a functional value.

Definition at line 45 of file SundanceFunctionalAssemblyKernel.hpp.


Constructor & Destructor Documentation

FunctionalAssemblyKernel::FunctionalAssemblyKernel ( const MPIComm &  comm,
double *  value,
int  verb 
)

Definition at line 47 of file SundanceFunctionalAssemblyKernel.cpp.


Member Function Documentation

void FunctionalAssemblyKernel::fill ( bool  isBC,
const IntegralGroup group,
const RCP< Array< double > > &  localValues 
) [virtual]

Adds the results of the current integral group into the assembly results.

Parameters:
isBCwhether the current group is a replace-style boundary condition
groupthe current integral group
localValuesthe results of integrating the current integral group

Implements Sundance::AssemblyKernelBase.

Definition at line 73 of file SundanceFunctionalAssemblyKernel.cpp.

References localValue_, SUNDANCE_MSG2, and Sundance::AssemblyKernelBase::verb().

void FunctionalAssemblyKernel::postLoopFinalization ( ) [virtual]

Hook to do any finalization steps after the main assembly loop, for example, doing an all-reduce on locally computed functional values.

The default implementation does nothing.

Reimplemented from Sundance::AssemblyKernelBase.

Definition at line 58 of file SundanceFunctionalAssemblyKernel.cpp.

References comm_, localValue_, SUNDANCE_MSG3, value_, and Sundance::AssemblyKernelBase::verb().


Member Data Documentation

Definition at line 61 of file SundanceFunctionalAssemblyKernel.hpp.

Referenced by postLoopFinalization().

Definition at line 63 of file SundanceFunctionalAssemblyKernel.hpp.

Referenced by fill(), and postLoopFinalization().

Definition at line 62 of file SundanceFunctionalAssemblyKernel.hpp.

Referenced by postLoopFinalization().

Site Contact