summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ocean/ocean.cpp6
-rw-r--r--src/ocean/ocean.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ocean/ocean.cpp b/src/ocean/ocean.cpp
index 1b0e23c..eabaa8e 100644
--- a/src/ocean/ocean.cpp
+++ b/src/ocean/ocean.cpp
@@ -140,8 +140,8 @@ int ocean::k_index_to_negative_k_index
int x = k_index % length;
int z = k_index / length;
- int x_neg = length - x;
- int z_neg = width - z;
+ int x_neg = length - x - 1;
+ int z_neg = width - z - 1;
return z_neg * length + x_neg;
}
@@ -234,7 +234,7 @@ std::vector<Eigen::Vector3f> ocean::get_vertices()
//if (i < length)
double amplitude = current_h[i].first;
- if (i < length) amplitude = initial_h[i].first;
+ // if (i < length) amplitude = initial_h[i].first;
//if (i==2) std::cout << amplitude << std::endl;
diff --git a/src/ocean/ocean.h b/src/ocean/ocean.h
index faa0fb2..a576c44 100644
--- a/src/ocean/ocean.h
+++ b/src/ocean/ocean.h
@@ -27,7 +27,7 @@ private:
const int width = 32; // width of grid
const int N = length * width; // total number of grid points
- const double A = 100; // numeric constant for the Phillips spectrum
+ const double A = 10; // numeric constant for the Phillips spectrum
const double V = 5.0; // wind speed
const std::pair<double, double> omega_wind
= std::make_pair(1.0, 0.0); // wind direction