FunctionalAssemblyKernel does assembly of a functional value. More...
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_ |
FunctionalAssemblyKernel does assembly of a functional value.
Definition at line 45 of file SundanceFunctionalAssemblyKernel.hpp.
| FunctionalAssemblyKernel::FunctionalAssemblyKernel | ( | const MPIComm & | comm, |
| double * | value, | ||
| int | verb | ||
| ) |
Definition at line 47 of file SundanceFunctionalAssemblyKernel.cpp.
| 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.
| 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 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().
MPIComm Sundance::FunctionalAssemblyKernel::comm_ [private] |
Definition at line 61 of file SundanceFunctionalAssemblyKernel.hpp.
Referenced by postLoopFinalization().
double Sundance::FunctionalAssemblyKernel::localValue_ [private] |
Definition at line 63 of file SundanceFunctionalAssemblyKernel.hpp.
Referenced by fill(), and postLoopFinalization().
double* Sundance::FunctionalAssemblyKernel::value_ [private] |
Definition at line 62 of file SundanceFunctionalAssemblyKernel.hpp.
Referenced by postLoopFinalization().