Sundance::FunctionalGradientAssemblyKernel Class Reference

FunctionalGradientAssemblyKernel does assembly of a functional and its gradient. More...

Inheritance diagram for Sundance::FunctionalGradientAssemblyKernel:

Sundance::AssemblyKernelBase

List of all members.

Public Member Functions

 FunctionalGradientAssemblyKernel (const MPIComm &comm, const Array< RCP< DOFMapBase > > &dofMap, const Array< RCP< Array< int > > > &isBCIndex, const Array< int > &lowestLocalIndex, Array< Vector< double > > &grad, bool partitionBCs, double *value, int verb)
void prepareForWorkSet (const Array< Set< int > > &requiredTests, const Array< Set< int > > &requiredUnks, RCP< StdFwkEvalMediator > mediator)
 Do preprocessing steps needed before integrating the current work set.
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.
void setVerb (int verb)
 set verbosity level.

Private Attributes

RCP< FunctionalAssemblyKernelfuncKernel_
RCP< VectorAssemblyKernelvecKernel_


Detailed Description

FunctionalGradientAssemblyKernel does assembly of a functional and its gradient.

Definition at line 46 of file SundanceFunctionalGradientAssemblyKernel.hpp.


Constructor & Destructor Documentation

Sundance::FunctionalGradientAssemblyKernel::FunctionalGradientAssemblyKernel ( const MPIComm comm,
const Array< RCP< DOFMapBase > > &  dofMap,
const Array< RCP< Array< int > > > &  isBCIndex,
const Array< int > &  lowestLocalIndex,
Array< Vector< double > > &  grad,
bool  partitionBCs,
double *  value,
int  verb 
) [inline]

Definition at line 50 of file SundanceFunctionalGradientAssemblyKernel.hpp.


Member Function Documentation

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

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

Parameters:
isBC whether the current group is a replace-style boundary condition
group the current integral group
localValues the results of integrating the current integral group

Implements Sundance::AssemblyKernelBase.

Definition at line 79 of file SundanceFunctionalGradientAssemblyKernel.hpp.

References funcKernel_, Sundance::IntegralGroup::isOneForm(), Sundance::IntegralGroup::isTwoForm(), Sundance::IntegralGroup::isZeroForm(), and vecKernel_.

void Sundance::FunctionalGradientAssemblyKernel::postLoopFinalization (  )  [inline, 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 98 of file SundanceFunctionalGradientAssemblyKernel.hpp.

References funcKernel_, and vecKernel_.

void Sundance::FunctionalGradientAssemblyKernel::prepareForWorkSet ( const Array< Set< int > > &  requiredTests,
const Array< Set< int > > &  requiredUnks,
RCP< StdFwkEvalMediator mediator 
) [inline, virtual]

Do preprocessing steps needed before integrating the current work set.

The default implementation does nothing.

Reimplemented from Sundance::AssemblyKernelBase.

Definition at line 69 of file SundanceFunctionalGradientAssemblyKernel.hpp.

References funcKernel_, and vecKernel_.

void Sundance::FunctionalGradientAssemblyKernel::setVerb ( int  verb  )  [inline, virtual]

set verbosity level.

(This function needs to be virtual because certain subclasses need specialized implementations that propagate verbosity to children

Reimplemented from Sundance::AssemblyKernelBase.

Definition at line 105 of file SundanceFunctionalGradientAssemblyKernel.hpp.

References funcKernel_, and vecKernel_.


Member Data Documentation

Site Contact