MCPcopy Create free account
hub / github.com/cselab/aphros / Init

Function Init

examples/107_wasm/diffusion.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void Init(FieldCell<Scal>& fcu, const M& m) {
96 Vars par;
97 par.String.Set("init_vf", "circlels");
98 par.Vect.Set("circle_c", {0.5, 0.5});
99 par.Double.Set("circle_r", 0.2);
100 par.Int.Set("dim", 2);
101 auto func = CreateInitU<M>(par, false);
102 func(fcu, m);
103}
104
105static void Step(
106 FieldCell<Scal>& fcu, Scal dt, Scal diffusion,

Callers 1

RunMethod · 0.70

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected