From 4150f19230962abaf68a8be209c7fa10bc7691e3 Mon Sep 17 00:00:00 2001 From: jjesswan Date: Thu, 9 May 2024 23:53:08 -0400 Subject: relative filepaths thanks joelll --- src/ocean/ocean_alt.cpp | 2 +- src/ocean/ocean_alt.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/ocean') diff --git a/src/ocean/ocean_alt.cpp b/src/ocean/ocean_alt.cpp index 0e44d9c..dcc3e42 100644 --- a/src/ocean/ocean_alt.cpp +++ b/src/ocean/ocean_alt.cpp @@ -589,7 +589,7 @@ std::vector ocean_alt::fast_fft } // divide by N*N and add the signs based on the indices - double sign[] = {1.0, -1.0}; + double sign[] = {-1.0, 1.0}; for (int i = 0; i < N; i++) { h[i] /= N; diff --git a/src/ocean/ocean_alt.h b/src/ocean/ocean_alt.h index dc8888d..9c5e4e2 100644 --- a/src/ocean/ocean_alt.h +++ b/src/ocean/ocean_alt.h @@ -42,6 +42,9 @@ public: return m_foam_constants; } + std::vector m_vertices; // current displacement vector for each K + + @@ -71,8 +74,8 @@ private: const int num_rows = 256; const int num_cols = 256; - const int num_tiles_x = 2; - const int num_tiles_z = 2; + const int num_tiles_x = 1; + const int num_tiles_z = 1; const double vertex_displacement = Lx / 2; @@ -106,7 +109,6 @@ private: int iterations = 0; - std::vector m_vertices; // current displacement vector for each K const double D = 1.0; // Depth below mean water level (for dispersion relation) -- cgit v1.2.3-70-g09d2