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

Merge branch 'dev_mm_ann' into 'master'

[Append IPVariable] - MultipleDG3DMaterialLaw

See merge request !414
parents 26021292 80336f9b
No related branches found
No related tags found
1 merge request!414[Append IPVariable] - MultipleDG3DMaterialLaw
...@@ -1992,6 +1992,17 @@ double dG3DIPVariableMultiple::get(const int comp) const ...@@ -1992,6 +1992,17 @@ double dG3DIPVariableMultiple::get(const int comp) const
} }
return v; return v;
} }
// Appended to enable use with torchbasedmaterial law @Mohib
// USER0 and USER1 stores extra variable assigned to the torchbasedmaterial law
else if (comp == IPField::USER0 || comp == IPField::USER1)
{
double v = 0;
for (int j=0; j< _numIP; j++)
{
v += _IPVector[j]->get(comp);
}
return v;
}
else else
{ {
return dG3DIPVariable::get(comp); return dG3DIPVariable::get(comp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment