From 4b6138f46a1895fe1d4139525869aa982deffbe0 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 14 Mar 2018 00:47:56 +0100 Subject: [PATCH] Fix Linear_Elastic_Active_Skeletal_Muscle_Model --- .../Linear_active_muscle_model.cc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Linear_Elastic_Active_Skeletal_Muscle_Model/Linear_active_muscle_model.cc b/Linear_Elastic_Active_Skeletal_Muscle_Model/Linear_active_muscle_model.cc index c632083..496db3e 100644 --- a/Linear_Elastic_Active_Skeletal_Muscle_Model/Linear_active_muscle_model.cc +++ b/Linear_Elastic_Active_Skeletal_Muscle_Model/Linear_active_muscle_model.cc @@ -166,12 +166,12 @@ namespace LMM parse_parameters(ParameterHandler &prm); }; - void IsotonicContraction::declare_parameters(ParameterHandler &prm) + void IsotonicContraction::declare_parameters(ParameterHandler &/*prm*/) { } - void IsotonicContraction::parse_parameters(ParameterHandler &prm) + void IsotonicContraction::parse_parameters(ParameterHandler &/*prm*/) { } @@ -448,7 +448,7 @@ namespace LMM template inline - void BodyForce::vector_value (const Point &p, + void BodyForce::vector_value (const Point &/*p*/, Vector &values) const { Assert (values.size() == dim, @@ -504,7 +504,7 @@ namespace LMM template inline - void Traction::vector_value (const Point &p, + void Traction::vector_value (const Point &/*p*/, Vector &values) const { Assert (values.size() == dim, @@ -893,7 +893,7 @@ namespace LMM // the muscle Point profile (const Point &pt_0) const { - Assert(pt[0] > -1e-6, + Assert(pt_0[0] > -1e-6, ExcMessage("All points must have x-coordinate > 0")); const double r_scale = get_radial_scaling_factor(pt_0[0]); @@ -1148,7 +1148,6 @@ namespace LMM { const double u = get_neural_signal(time); - const unsigned int n_cells = triangulation.n_active_cells(); const unsigned int n_q_points_cell = qf_cell.size(); for (unsigned int cell=0; cell void LinearMuscleModelProblem::update_fibre_state () { - const unsigned int n_cells = triangulation.n_active_cells(); const unsigned int n_q_points_cell = qf_cell.size(); FEValues fe_values (fe, qf_cell, update_gradients); @@ -1245,7 +1243,6 @@ namespace LMM const double m_p = fibre.get_m_p(); const double m_s = fibre.get_m_s(); const double beta = fibre.get_beta(dt); - const double gamma = fibre.get_gamma(dt); AssertThrow(beta != 0.0, ExcInternalError()); const double Cf = T0*(m_p + m_s*(1.0 - m_s/beta)); const Tensor<1,dim> &M = fibre.get_M(); @@ -1462,7 +1459,6 @@ namespace LMM const Point fixed_point (-parameters.half_length_x,0.0,0.0); std::vector fixed_dof_indices; bool found_point_of_interest = false; - types::global_dof_index dof_of_interest = numbers::invalid_dof_index; for (typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), @@ -1519,7 +1515,6 @@ namespace LMM const Point fixed_point (0.0,0.0,0.0); std::vector fixed_dof_indices; bool found_point_of_interest = false; - types::global_dof_index dof_of_interest = numbers::invalid_dof_index; for (typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), @@ -1590,7 +1585,6 @@ namespace LMM const Point roller_point (parameters.axial_length*parameters.scale,0.0,0.0); std::vector fixed_dof_indices; bool found_point_of_interest = false; - types::global_dof_index dof_of_interest = numbers::invalid_dof_index; for (typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), -- 2.39.5