diff --git a/vtk/src/advection/AdvectionKernel.h b/vtk/src/advection/AdvectionKernel.h index 5f6c784..856383d 100644 --- a/vtk/src/advection/AdvectionKernel.h +++ b/vtk/src/advection/AdvectionKernel.h @@ -26,6 +26,7 @@ public: return metre / 1000. / 1.852 / 60.; } + virtual ~AdvectionKernel() = default; // Apparently I need this, idk why }; #endif //ADVECTION_ADVECTIONKERNEL_H diff --git a/vtk/src/layers/EGlyphLayer.cpp b/vtk/src/layers/EGlyphLayer.cpp index 59301b0..93db577 100644 --- a/vtk/src/layers/EGlyphLayer.cpp +++ b/vtk/src/layers/EGlyphLayer.cpp @@ -100,7 +100,7 @@ void EGlyphLayer::updateData(int t) { for (int lat = 0; lat < uvGrid->latSize; lat++) { for (int lon = 0; lon < uvGrid->lonSize; lon++) { auto [u, v] = (*uvGrid)[t/3600, lat, lon]; - // TODO: The 5*v stuff should really be a filter transform + // TODO: 5*v scaling stuff should really be a filter transform this->direction->SetTuple3(i, 5*u, 5*v, 0); i++; } diff --git a/vtk/src/layers/LGlyphLayer.cpp b/vtk/src/layers/LGlyphLayer.cpp index 3e0e53c..35acafd 100644 --- a/vtk/src/layers/LGlyphLayer.cpp +++ b/vtk/src/layers/LGlyphLayer.cpp @@ -75,8 +75,7 @@ void LGlyphLayer::spoofPoints() { this->points->InsertNextPoint(6.532949683882039, 53.24308582564463, 0); // Coordinates of Zernike this->points->InsertNextPoint(5.315307819255385, 60.40001057122271, 0); // Coordinates of Bergen this->points->InsertNextPoint(6.646210231365825, 46.52346296009023, 0); // Coordinates of Lausanne - this->points->InsertNextPoint(-6.553894313570932, 62.39522131195857, - 0); // Coordinates of the top of the Faroe islands + this->points->InsertNextPoint(-6.553894313570932, 62.39522131195857,0); // Coordinates of the top of the Faroe islands this->points->Modified(); } diff --git a/vtk/src/main.cpp b/vtk/src/main.cpp index 592d943..1631424 100644 --- a/vtk/src/main.cpp +++ b/vtk/src/main.cpp @@ -24,7 +24,7 @@ int main() { shared_ptr uvGrid = std::make_shared(); auto kernelRK4 = make_unique(uvGrid); - auto l = new LGlyphLayer(uvGrid, move(kernelRK4)); + auto l = new LGlyphLayer(uvGrid, std::move(kernelRK4)); Program *program = new Program(DT); program->addLayer(new BackgroundImage("../../../../data/map_661-661.png"));