summaryrefslogtreecommitdiff
path: root/src/ocean/ocean.cpp
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-04-09 22:48:26 -0400
committersotech117 <michael_foiani@brown.edu>2024-04-09 22:48:26 -0400
commit10619e114973276f783db40329b436082525dce3 (patch)
tree5c0cf96da16214dc80f960d9448a0bcd871c097c /src/ocean/ocean.cpp
parentfd19124693bb32835ad97802ba1950cd5202dbd2 (diff)
fix small bugs, remove vertices points for demo rendering
Diffstat (limited to 'src/ocean/ocean.cpp')
-rw-r--r--src/ocean/ocean.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ocean/ocean.cpp b/src/ocean/ocean.cpp
index eabaa8e..bb33106 100644
--- a/src/ocean/ocean.cpp
+++ b/src/ocean/ocean.cpp
@@ -196,7 +196,7 @@ std::pair<double, double> ocean::amplitude_t
// get dispersion from k
std::pair<double, double> k = k_index_to_k_vector(k_index);
double k_magnitude = sqrt(k.first * k.first + k.second * k.second);
- double omega = omega_dispersion(k_magnitude);
+ double omega = omega_dispersion(k_magnitude, true);
// calculate the complex exponential terms
double omega_t = omega * t;
@@ -234,6 +234,7 @@ std::vector<Eigen::Vector3f> ocean::get_vertices()
//if (i < length)
double amplitude = current_h[i].first;
+ // double amplitude = sqrt(current_h[i].first * current_h[i].first + current_h[i].second * current_h[i].second);
// if (i < length) amplitude = initial_h[i].first;