CallbackOperator
A callback operator passes the matrix and rhs to a user-defined function where they can be modified as desired. An example where this is used is Example265.
Constructors
ExtendableFEM.CallbackOperator
— Typefunction CallbackOperator(
callback!::Function,
u_args = [];
kwargs...)
Generates an operator that simply passes the matrix and rhs to a user-specified call back function. The callback function needs to be conform to the interface
callback!(A, b, args; assemble_matrix = true, assemble_rhs = true, time = 0, kwargs...)
The u_args argument can be used to specify the arguments of the solution that should be passed as args (a vector of FEVectorBlocks) to the callback.
Keyword arguments:
linearized_dependencies
: [uansatz, utest] when linearized. Default: automodifies_matrix
: callback function modifies the matrix?. Default: truemodifies_rhs
: callback function modifies the rhs?. Default: truename
: name for operator used in printouts. Default: ''CallbackOperator''store
: store matrix and rhs separately (and copy from there when reassembly is triggered). Default: falsetime_dependent
: operator is time-dependent ?. Default: falseverbosity
: verbosity level. Default: 0