
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< FunctionalAssemblyKernel > | funcKernel_ |
| RCP< VectorAssemblyKernel > | vecKernel_ |
Definition at line 46 of file SundanceFunctionalGradientAssemblyKernel.hpp.
| 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.
| 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.
| 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_.
Definition at line 113 of file SundanceFunctionalGradientAssemblyKernel.hpp.
Referenced by fill(), postLoopFinalization(), prepareForWorkSet(), and setVerb().
Definition at line 114 of file SundanceFunctionalGradientAssemblyKernel.hpp.
Referenced by fill(), postLoopFinalization(), prepareForWorkSet(), and setVerb().