fix: unified dt

This commit is contained in:
robin
2024-05-06 12:04:40 +02:00
parent 705cf248cb
commit 09a285e41c
18 changed files with 120 additions and 197 deletions

View File

@@ -18,15 +18,16 @@
using namespace std;
#define DT 60 * 60 // 60 sec/min * 60 mins
int main() {
shared_ptr<UVGrid> uvGrid = std::make_shared<UVGrid>();
auto kernelRK4 = make_unique<RK4AdvectionKernel>(uvGrid);
auto kernelRK4 = make_unique<RK4AdvectionKernel>(uvGrid, DT);
auto l = new LGlyphLayer(move(kernelRK4));
auto l = new LGlyphLayer(uvGrid, move(kernelRK4));
// l->spoofPoints();
Program *program = new Program();
Program *program = new Program(DT);
program->addLayer(new BackgroundImage("../../../../data/map_661-661.png"));
program->addLayer(new EGlyphLayer(uvGrid));
program->addLayer(l);