assign.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

void assign(std::shared_ptr<Function> receiving_func, std::shared_ptr<const Function> assigning_func)

Assign one function to another. The functions must reside in the same type of FunctionSpace. One or both functions can be sub functions.

Arguments
receiving_func (std::shared_ptr<Function>)
The receiving function
assigning_func (std::shared_ptr<Function>)
The assigning function
void assign(std::shared_ptr<Function> receiving_func, std::vector<std::shared_ptr<const Function>> assigning_funcs)

Assign several functions to sub functions of a mixed receiving function. The number of receiving functions must sum up to the number of sub functions in the assigning mixed function. The sub spaces of the assigning mixed space must be of the same type ans size as the receiving spaces.

void assign(std::vector<std::shared_ptr<Function>> receiving_funcs, std::shared_ptr<const Function> assigning_func)

Assign sub functions of a single mixed function to single receiving functions. The number of sub functions in the assigning mixed function must sum up to the number of receiving functions. The sub spaces of the receiving mixed space must be of the same type ans size as the assigning spaces.