Skip to content

Commit

Permalink
Fix style and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tupek2 committed Dec 13, 2024
1 parent 804169b commit e17afee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/serac/numerics/equation_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@

namespace serac {

/// @brief A simple exception class for recording Newton and TrustRegion failures
class SolveException : public std::exception {
public:
/// constructor
SolveException(const std::string& message) : msg(message) {}

/// what is message
const char* what() const noexcept override { return msg.c_str(); }

private:
/// message string
std::string msg;
};

Expand Down
1 change: 1 addition & 0 deletions src/serac/physics/solid_mechanics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

namespace serac {

/// @brief simple utility for computing matrix norm
inline double matrixNorm(std::unique_ptr<mfem::HypreParMatrix>& K)
{
mfem::HypreParMatrix* H = K.get();
Expand Down

0 comments on commit e17afee

Please sign in to comment.