AssemblerBase

class dolfin.cpp.fem.AssemblerBase

Bases: object

Provide some common functions used in assembler classes.

Constructor.

add_values

add_values (bool) Default value is false. This controls whether values are added to the given tensor or if it is zeroed prior to assembly.

Return type:bool
finalize_tensor

finalize_tensor (bool) Default value is true. This controls whether the assembler finalizes the given tensor after assembly is completed by calling A.apply().

Return type:bool
init_global_tensor()

Initialize global tensor

Parameters:
  • & A (GenericTensor) – (GenericTensor &) GenericTensor to assemble into [direction=out]
  • Form & a (const) – (Form &) Form to assemble from [direction=in]
Return type:

void

keep_diagonal

keep_diagonal (bool) Default value is false. This controls whether the assembler enures that a diagonal entry exists in an assembled matrix. It may be removed if the matrix is finalised.

Return type:bool
thisown

The membership flag