[cig-commits] [commit] master: More style fixes. (eed2a3b)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu May 15 08:58:16 PDT 2014
Repository : https://github.com/geodynamics/aspect
On branch : master
Link : https://github.com/geodynamics/aspect/compare/2f27335d4a52efc6ce31351c2a47422171411114...47f27df84eb33170e6ea9a3937e3adc652a9f3f0
>---------------------------------------------------------------
commit eed2a3b5b10f93ffadea545a2455c93b8962b07f
Author: Wolfgang Bangerth <bangerth at math.tamu.edu>
Date: Thu May 15 10:20:39 2014 -0500
More style fixes.
>---------------------------------------------------------------
eed2a3b5b10f93ffadea545a2455c93b8962b07f
include/aspect/velocity_boundary_conditions/gplates.h | 14 ++++++++------
source/velocity_boundary_conditions/gplates.cc | 14 ++++++++------
2 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/include/aspect/velocity_boundary_conditions/gplates.h b/include/aspect/velocity_boundary_conditions/gplates.h
index c5f02cd..4f2222b 100644
--- a/include/aspect/velocity_boundary_conditions/gplates.h
+++ b/include/aspect/velocity_boundary_conditions/gplates.h
@@ -188,11 +188,11 @@ namespace aspect
* be tangential to the surface).
*/
double
- add_interpolation_point(Tensor<1,3> &surf_vel,
- const Tensor<1,3> position,
- const int spatial_index[2],
- const double time_weight,
- const bool check_termination) const;
+ add_interpolation_point(Tensor<1,3> &surf_vel,
+ const Tensor<1,3> &position,
+ const int spatial_index[2],
+ const double time_weight,
+ const bool check_termination) const;
/**
* Returns a velocity vector that is rotated to be tangential to the
@@ -204,7 +204,9 @@ namespace aspect
* @param data_velocity Unrotated velocity vector
*/
Tensor<1,3>
- rotate_grid_velocity(const Tensor<1,3> data_position, const Tensor<1,3> point_position, const Tensor<1,3> data_velocity) const;
+ rotate_grid_velocity(const Tensor<1,3> &data_position,
+ const Tensor<1,3> &point_position,
+ const Tensor<1,3> &data_velocity) const;
/**
* Returns the position (cartesian or spherical depending on last
diff --git a/source/velocity_boundary_conditions/gplates.cc b/source/velocity_boundary_conditions/gplates.cc
index 11bff05..4d1e028 100644
--- a/source/velocity_boundary_conditions/gplates.cc
+++ b/source/velocity_boundary_conditions/gplates.cc
@@ -300,11 +300,11 @@ namespace aspect
}
double
- GPlatesLookup::add_interpolation_point(Tensor<1,3> &surf_vel,
- const Tensor<1,3> position,
- const int spatial_index[2],
- const double time_weight,
- const bool check_termination) const
+ GPlatesLookup::add_interpolation_point(Tensor<1,3> &surf_vel,
+ const Tensor<1,3> &position,
+ const int spatial_index[2],
+ const double time_weight,
+ const bool check_termination) const
{
// If the point is extended over the poles, do not use it. It will be found
// by the check in phi direction.
@@ -342,7 +342,9 @@ namespace aspect
}
Tensor<1,3>
- GPlatesLookup::rotate_grid_velocity(const Tensor<1,3> data_position, const Tensor<1,3> point_position, const Tensor<1,3> data_velocity) const
+ GPlatesLookup::rotate_grid_velocity(const Tensor<1,3> &data_position,
+ const Tensor<1,3> &point_position,
+ const Tensor<1,3> &data_velocity) const
{
if ((point_position-data_position).norm()/point_position.norm() < 1e-7)
More information about the CIG-COMMITS
mailing list