134 {
136
138 typename EssentialBC<OpBase>::template Assembly<A>::template
LinearForm<
141 using OpInternal = typename FormsIntegrators<OpBase>::template Assembly<
144
145 auto add_op = [&](auto &bcs) {
147 for (
auto &
m : bcs) {
148 if (
auto bc =
m.second->dispBcPtr) {
149 auto &bc_id =
m.first;
150 auto regex_str =
151 (boost::format(
"%s_%s_(.*)") % problem_name %
field_name).str();
152 if (std::regex_match(bc_id, std::regex(regex_str))) {
154 pipeline.push_back(
155 new OpSetBc(
field_name,
false,
m.second->getBcMarkersPtr()));
156 pipeline.push_back(
158 pipeline.push_back(new OpInternal(
160 [](double, double, double) constexpr { return 1.; },
161 m.second->getBcEntsPtr()));
162 pipeline.push_back(
new OpUnSetBc(
field_name));
163 }
164 }
165 }
168 };
169
171
173 }
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
FTensor::Index< 'm', SPACE_DIM > m
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
constexpr IntegrationType I
constexpr auto field_name
Enforce essential constrains on rhs.
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.