Skip to content

Commit

Permalink
Removed assignment to temporary variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Nov 23, 2023
1 parent a698d84 commit 3ea15df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mesh/coordinates.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3ea15df

Please sign in to comment.