Skip to content

Commit

Permalink
Minor style and comments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Oct 14, 2020
1 parent edd349f commit a8d6041
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/friction.cpp
Expand Up @@ -140,6 +140,7 @@ class System {

m_Eps = m_quad.AllocateQtensor<2>(0.0);
m_Sig = m_quad.AllocateQtensor<2>(0.0);

// --------
// material
// --------
Expand Down
4 changes: 2 additions & 2 deletions include/GMatElastoPlasticQPot/Cartesian2d.h
Expand Up @@ -149,7 +149,7 @@ class Cusp
double epsp() const; // "plastic strain" (mean of currentYieldLeft and currentYieldRight)
double energy() const; // potential energy

// Check that 'the particle' is "n" wells from the far-left/right
// Check that 'the particle' is at least "n" wells from the far-left/right
bool checkYieldBoundLeft(size_t n = 0) const;
bool checkYieldBoundRight(size_t n = 0) const;

Expand Down Expand Up @@ -204,7 +204,7 @@ class Smooth
double epsp() const; // "plastic strain" (mean of currentYieldLeft and currentYieldRight)
double energy() const; // potential energy

// Check that 'the particle' is "n" wells from the far-left/right
// Check that 'the particle' is at least "n" wells from the far-left/right
bool checkYieldBoundLeft(size_t n = 0) const;
bool checkYieldBoundRight(size_t n = 0) const;

Expand Down
12 changes: 6 additions & 6 deletions python/main.cpp
Expand Up @@ -174,13 +174,13 @@ auto add_common_members_array(T& self)
.def(
"checkYieldBoundLeft",
&SM::Array<rank>::checkYieldBoundLeft,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-left.",
py::arg("n") = 0)

.def(
"checkYieldBoundRight",
&SM::Array<rank>::checkYieldBoundRight,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-right.",
py::arg("n") = 0)

.def(
Expand Down Expand Up @@ -376,13 +376,13 @@ PYBIND11_MODULE(GMatElastoPlasticQPot, m)
.def(
"checkYieldBoundLeft",
&SM::Cusp::checkYieldBoundLeft,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-left.",
py::arg("n") = 0)

.def(
"checkYieldBoundRight",
&SM::Cusp::checkYieldBoundRight,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-right.",
py::arg("n") = 0)

.def(
Expand Down Expand Up @@ -439,13 +439,13 @@ PYBIND11_MODULE(GMatElastoPlasticQPot, m)
.def(
"checkYieldBoundLeft",
&SM::Smooth::checkYieldBoundLeft,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-left.",
py::arg("n") = 0)

.def(
"checkYieldBoundRight",
&SM::Smooth::checkYieldBoundRight,
"Check that the particle is 'n' wells from the far-left.",
"Check that 'the particle' is at least 'n' wells from the far-right.",
py::arg("n") = 0)

.def(
Expand Down

0 comments on commit a8d6041

Please sign in to comment.