MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / MakeProxyFunction

Method MakeProxyFunction

comp/periodic.cpp:226–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 ProxyNode PeriodicFESpace ::
227 MakeProxyFunction (bool testfunction,
228 const function<shared_ptr<ProxyFunction>(shared_ptr<ProxyFunction>)> & addblock) const
229 {
230 /*
231 auto proxy = GetBaseSpace()->MakeProxyFunction (testfunction, addblock);
232 shared_ptr<FESpace> fes = dynamic_pointer_cast<FESpace> (const_cast<PeriodicFESpace*>(this)->shared_from_this());
233 proxy.SetFESpace(fes);
234 return proxy;
235 */
236 return GetBaseSpace()->MakeProxyFunction (testfunction,
237 [&] (shared_ptr<ProxyFunction> proxy)
238 {
239 shared_ptr<FESpace> fes = dynamic_pointer_cast<FESpace> (const_cast<PeriodicFESpace*>(this)->shared_from_this());
240 proxy->SetFESpace(fes);
241 return addblock (proxy);
242 });
243 }
244
245
246 template<typename TSCAL>

Callers

nothing calls this directly

Calls 4

SetFESpaceMethod · 0.80
GetBaseSpaceFunction · 0.70
MakeProxyFunctionMethod · 0.45
shared_from_thisMethod · 0.45

Tested by

no test coverage detected