From 3ea15df2b5c7b32c1edde433eabd3f463cb4ed8f Mon Sep 17 00:00:00 2001 From: tomc271 Date: Thu, 23 Nov 2023 16:48:29 +0000 Subject: [PATCH] Removed assignment to temporary variable. --- src/mesh/coordinates.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesh/coordinates.cxx b/src/mesh/coordinates.cxx index 0cb8749f7a..ab81dd00ef 100644 --- a/src/mesh/coordinates.cxx +++ b/src/mesh/coordinates.cxx @@ -475,9 +475,8 @@ Coordinates::Coordinates(Mesh* mesh, Options* options, const CELL_LOC loc, interpolateAndExtrapolate_function), region); - const auto new_covariant_metric_tensor = - covariantMetricTensor.applyToComponents(interpolateAndExtrapolate_function); - covariantMetricTensor.setMetricTensor(new_covariant_metric_tensor); + covariantMetricTensor.setMetricTensor( + covariantMetricTensor.applyToComponents(interpolateAndExtrapolate_function)); // Check input metrics checkContravariant();