Skip to content

Commit

Permalink
Added: Permutation of integration points in PlasticMaterial to ensure…
Browse files Browse the repository at this point in the history
… they

always are evaluated in the same order (or else the history data is corrupted).

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1944 e10b68d5-8a6e-419e-a041-bce267b0401d
  • Loading branch information
kmo authored and kmokstad committed Jul 10, 2015
1 parent 7096a37 commit c4eb528
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Elasticity.C
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,19 @@ const char* Elasticity::getField2Name (size_t i, const char* prefix) const
}


bool Elasticity::hasItgBuffers () const
{
return material ? material->hasItgBuffers() : false;
}


void Elasticity::setItgPtMap (int ip, int jp) const
{
if (material)
material->setItgPtMap(ip,jp);
}


void Elasticity::printMaxVals (std::ostream& os,
std::streamsize precision, size_t comp) const
{
Expand Down
5 changes: 5 additions & 0 deletions Elasticity.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ class Elasticity : public IntegrandBase
//! \param[in] prefix Name prefix for all components
virtual const char* getField2Name(size_t i, const char* prefix = 0) const;

//! \brief Returns whether this integrand has internal point buffers or not.
virtual bool hasItgBuffers() const;
//! \brief Defines the internal processing order of the integration points.
virtual void setItgPtMap(int ip, int jp) const;

//! \brief Prints out the maximum secondary solution values.
//! \param os Output stream to write the values to
//! \param[in] precision Number of digits after the decimal point
Expand Down
5 changes: 5 additions & 0 deletions MaterialBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ class Material

//! \brief Returns whether the material model has diverged.
virtual bool diverged() const { return false; }

//! \brief Returns whether this material has internal point buffers or not.
virtual bool hasItgBuffers() const { return false; }
//! \brief Defines the internal processing order of the integration points.
virtual void setItgPtMap(size_t, size_t) const {}
};

#endif

0 comments on commit c4eb528

Please sign in to comment.