Skip to content
Snippets Groups Projects
Commit 1dfe5227 authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

correct function

parent 8185b546
Branches
Tags
1 merge request!27Update from Master
......@@ -161,7 +161,7 @@ class J2SmallStrainDG3DMaterialLaw : public dG3DMaterialLaw
virtual materialLaw* clone() const{return new J2SmallStrainDG3DMaterialLaw(*this);};
virtual bool withEnergyDissipation() const {return _j2law.withEnergyDissipation();};
virtual void setMacroSolver(nonLinearMechSolver* sv){
virtual void setMacroSolver(const nonLinearMechSolver* sv){
dG3DMaterialLaw::setMacroSolver(sv);
_j2law.setMacroSolver(sv);
};
......
......@@ -118,7 +118,7 @@ class J2linearShellLaw : public dgNonLinearShellMaterialLaw
virtual void stresst33(const IPStateBase *ips,const int npoint, double &t33, double &t33rel) const; //t33rel is the relative value divided by a material constant used to check convergence
virtual materialLaw* clone() const {return new J2linearShellLaw(*this);};
virtual bool withEnergyDissipation() const {return _j2law.withEnergyDissipation();}
virtual void setMacroSolver(nonLinearMechSolver* sv){
virtual void setMacroSolver(const nonLinearMechSolver* sv){
dgNonLinearShellMaterialLaw::setMacroSolver(sv);
_j2law.setMacroSolver(sv);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment