Skip to content
Snippets Groups Projects
Commit 3b5fc179 authored by Ludovic Noels's avatar Ludovic Noels
Browse files

Merge branch 'Mohamed_stochasticDMN' into 'master'

setTime() Fuction added to MultipleDG3DMaterialLaw

See merge request !426
parents ab8f900a 9af90338
No related branches found
No related tags found
1 merge request!426setTime() Fuction added to MultipleDG3DMaterialLaw
......@@ -1537,6 +1537,14 @@ void MultipleDG3DMaterialLaw::setWeightGenerator(const generalMapping* wGen)
_weightGenerator = wGen->clone();
}
 
void MultipleDG3DMaterialLaw::setTime(const double t,const double dtime)
{
dG3DMaterialLaw::setTime(t,dtime);
for(int i=0; i<_allLaws.size();i++){
_allLaws[i]->setTime(t,dtime);
}
};
void MultipleDG3DMaterialLaw::createIPState(IPStateBase* &ips, bool hasBodyForce, const bool* state_,const MElement *ele, const int nbFF_, const IntPt *GP, const int gpt) const
{
// check interface element
......
......@@ -437,6 +437,7 @@ class MultipleDG3DMaterialLaw : public dG3DMaterialLaw
#ifndef SWIG
MultipleDG3DMaterialLaw(const MultipleDG3DMaterialLaw& src);
virtual ~MultipleDG3DMaterialLaw();
virtual void setTime(const double t, double dtime);
virtual materialLaw::matname getType() const {return materialLaw::MultipleLaws;}
virtual void createIPState(IPStateBase* &ips, bool hasBodyForce, const bool* state_=NULL,const MElement *ele=NULL, const int nbFF_=0, const IntPt *GP=NULL, const int gpt = 0) const;
// To allow initialization of bulk ip in case of fracture
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment