Skip to content
Snippets Groups Projects
Commit 7b0e339e authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Fix small errors in code documentation

parent b79fa9ea
No related branches found
No related tags found
1 merge request!67Modernize rod code
......@@ -212,7 +212,7 @@ assembleGradient(const std::vector<TargetSpace>& sol,
{
localView.bind(element);
// A 1d grid has two vertices
// The number of degrees of freedom of the current element
const auto nDofs = localView.tree().size();
// Extract local solution
......
......@@ -13,9 +13,7 @@ class LocalFirstOrderModel
{
public:
/** \brief Assemble the element gradient of the energy functional
The default implementation in this class uses a finite difference approximation */
/** \brief Assemble the element gradient of the energy functional */
virtual void assembleGradient(const typename Basis::LocalView& localView,
const std::vector<TargetSpace>& solution,
std::vector<typename TargetSpace::TangentVector>& gradient) const = 0;
......
......@@ -243,7 +243,7 @@ void RiemannianProximalNewtonSolver<Basis,TargetSpace,Assembler>::solve()
std::cout << "Gradient norm: " << l2Norm_->operator()(gradient) << std::endl;
if (this->verbosity_ == Solver::FULL and rank==0)
std::cout << "Oveall assembly took " << gradientTimer.elapsed() << " sec." << std::endl;
std::cout << "Overall assembly took " << gradientTimer.elapsed() << " sec." << std::endl;
totalAssemblyTime += gradientTimer.elapsed();
// Transfer matrix data
......
......@@ -424,7 +424,7 @@ void RiemannianTrustRegionSolver<Basis,TargetSpace,Assembler>::solve()
std::cout << "Gradient norm: " << gradient.two_norm() << std::endl;
}
if (this->verbosity_ == Solver::FULL and rank==0)
std::cout << "Oveall assembly took " << gradientTimer.elapsed() << " sec." << std::endl;
std::cout << "Overall assembly took " << gradientTimer.elapsed() << " sec." << std::endl;
totalAssemblyTime += gradientTimer.elapsed();
// Transfer matrix data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment