#include #include #include #include #include #include #include #include #include #include #include "layers/BackgroundImage.h" #include "layers/EGlyphLayer.h" #include "layers/LGlyphLayer.h" #include "Program.h" #include "advection/UVGrid.h" #include "advection/kernel/RK4AdvectionKernel.h" #include "advection/kernel/SnapBoundaryConditionKernel.h" using namespace std; #define DT 60 * 60 // 60 sec/min * 60 mins int main() { cout << "Reading data..." << endl; shared_ptr uvGrid = make_shared(); auto kernelRK4 = make_unique(uvGrid); auto kernelRK4BoundaryChecked = make_unique(std::move(kernelRK4), uvGrid); cout << "Starting vtk..." << endl; auto l = new LGlyphLayer(uvGrid, std::move(kernelRK4BoundaryChecked)); l->spoofPoints(); unique_ptr program = make_unique(DT); program->addLayer(new BackgroundImage("../../../../data/map_661-661.png")); program->addLayer(new EGlyphLayer(uvGrid)); program->addLayer(l); program->render(); return EXIT_SUCCESS; }