MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / simulateFluids

Function simulateFluids

cpp/5_Domain_Specific/fluidsGL/fluidsGL.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116extern "C" void advectParticles(GLuint vbo, cData *v, int dx, int dy, float dt);
117
118void simulateFluids(void)
119{
120 // simulate fluid
121 advectVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM, DT);
122 diffuseProject(vxfield, vyfield, CPADW, DIM, DT, VIS);
123 updateVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM);
124 advectParticles(vbo, dvfield, DIM, DIM, DT);
125}
126
127void display(void)
128{

Callers 2

displayFunction · 0.70
autoTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected