Skip to content

Commit

Permalink
Refs #8631 Inelastic part: moved constraints to init
Browse files Browse the repository at this point in the history
modified: DiffRotDiscreteCircle.h
modified: DiffRotDiscreteCircle.cpp
  • Loading branch information
jmborr committed Dec 17, 2013
1 parent 4a0c9e6 commit a6ddad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -77,7 +77,7 @@ class DLLExport InelasticDiffRotDiscreteCircle : public API::ParamFunction, publ

virtual std::string name() const { return "InelasticDiffRotDiscreteCircle"; }

// virtual void init();
virtual void init();

protected:

Expand Down
Expand Up @@ -117,7 +117,10 @@ InelasticDiffRotDiscreteCircle::InelasticDiffRotDiscreteCircle() : m_h(4.1356656

declareAttribute( "Q", API::IFunction::Attribute( 0.5 ) );
declareAttribute( "N", API::IFunction::Attribute( 3 ) );
}

void InelasticDiffRotDiscreteCircle::init()
{
// Ensure positive values for Intensity, Radius, and decay
BoundaryConstraint* IntensityConstraint = new BoundaryConstraint( this, "Intensity", std::numeric_limits< double >::epsilon(), true );
addConstraint(IntensityConstraint);
Expand Down

0 comments on commit a6ddad0

Please sign in to comment.