Skip to content

Commit

Permalink
Added missing Create member function
Browse files Browse the repository at this point in the history
  • Loading branch information
avdg81 committed Mar 15, 2024
1 parent d920b4d commit 1a1f8da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@
namespace Kratos
{

template< unsigned int TDim, unsigned int TNumNodes >
Condition::Pointer PwCondition<TDim,TNumNodes>::
Create(IndexType NewId,NodesArrayType const& ThisNodes,PropertiesType::Pointer pProperties) const
template <unsigned int TDim, unsigned int TNumNodes>
Condition::Pointer PwCondition<TDim, TNumNodes>::Create(IndexType NewId,
NodesArrayType const& ThisNodes,
PropertiesType::Pointer pProperties) const
{
return Create(NewId, GetGeometry().Create(ThisNodes), pProperties);
}

template <unsigned int TDim, unsigned int TNumNodes>
Condition::Pointer PwCondition<TDim, TNumNodes>::Create(IndexType NewId,
Geometry<GeometricalObject::NodeType>::Pointer pGeom,
Properties::Pointer pProperties) const
{
return Condition::Pointer(new PwCondition(NewId, GetGeometry().Create(ThisNodes), pProperties));
return Condition::Pointer(new PwCondition(NewId, pGeom, pProperties));
}

//----------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) PwCondition : public Condition

//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Condition::Pointer Create(IndexType NewId,
NodesArrayType const& ThisNodes,
PropertiesType::Pointer pProperties ) const override;
Condition::Pointer Create(IndexType NewId,
NodesArrayType const& ThisNodes,
PropertiesType::Pointer pProperties) const override;

Condition::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override;

void GetDofList(DofsVectorType& rConditionDofList, const ProcessInfo&) const override;

Expand Down Expand Up @@ -106,6 +108,8 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) PwCondition : public Condition
KRATOS_SERIALIZE_LOAD_BASE_CLASS( rSerializer, Condition )
}

}; // class PwCondition.
};

// class PwCondition.

} // namespace Kratos.

0 comments on commit 1a1f8da

Please sign in to comment.