From 556cb77dbb9a89e19f01f9feea4f4a79f031a895 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Wed, 3 Jul 2019 18:06:40 +0300 Subject: [PATCH] Removed weird unused functions from model_rk3.cc. I have no idea where these came from. Probably remnants from the time I was pulling all-nighters to finish my thesis. --- src/standalone/model/model_rk3.cc | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/standalone/model/model_rk3.cc b/src/standalone/model/model_rk3.cc index 4c86490..e3a2e74 100644 --- a/src/standalone/model/model_rk3.cc +++ b/src/standalone/model/model_rk3.cc @@ -285,18 +285,6 @@ compute_gradient(const int i, const int j, const int k, const ModelScalar* arr) return (ModelVector){derx(i, j, k, arr), dery(i, j, k, arr), derz(i, j, k, arr)}; } -static inline ModelMatrix -compute_second_deriv(const int i, const int j, const int k, const ModelScalar* arr) -{ - ModelMatrix hessian; - - hessian.row[0] = (ModelVector){derxx(i, j, k, arr), 0, 0}; - hessian.row[1] = (ModelVector){0, deryy(i, j, k, arr), 0}; - hessian.row[2] = (ModelVector){0, 0, derzz(i, j, k, arr)}; - - return hessian; -} - static inline ModelMatrix compute_hessian(const int i, const int j, const int k, const ModelScalar* arr) { @@ -366,20 +354,6 @@ gradients(const ModelVectorData& data) return (ModelMatrix){gradient(data.x), gradient(data.y), gradient(data.z)}; } -static inline ModelScalar -val2ue(const int i, const int j, const int k, ModelScalar* vertex) -{ - return vertex[IDX(i, j, k)]; -} -static inline ModelVector -gradien2t(const int i, const int j, const int k, ModelScalar* vertex) -{ - return (ModelVector){vertex[IDX(i - 1, j, k)] + vertex[IDX(i, j, k)] + vertex[IDX(i + 1, j, k)], - vertex[IDX(i, j - 1, k)] + vertex[IDX(i, j, k)] + vertex[IDX(i, j + 1, k)], - vertex[IDX(i, j, k - 1)] + vertex[IDX(i, j, k)] + - vertex[IDX(i, j, k + 1)]}; -} - /* * ============================================================================= * Level 0.3 (Built-in functions available during the Stencil Processing Stage)