MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/CompactNSearch / advect

Function advect

demo/main.cpp:124–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void
125advect()
126{
127#ifdef _MSC_VER
128 concurrency::parallel_for_each
129#else
130 __gnu_parallel::for_each
131#endif
132 (positions.begin(), positions.end(), [&](std::array<Real, 3>& x)
133 {
134 std::array<Real, 3> v = enright_velocity_field(x);
135 x[0] += 0.005 * v[0];
136 x[1] += 0.005 * v[1];
137 x[2] += 0.005 * v[1];
138 }
139 );
140}
141
142int main(int argc, char* argv[])
143{

Callers 1

mainFunction · 0.85

Calls 1

enright_velocity_fieldFunction · 0.85

Tested by

no test coverage detected