Skip to content

Commit

Permalink
Changing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mhscott committed Oct 23, 2021
1 parent 142689f commit 9bca070
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SRC/material/uniaxial/MultiplierMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,17 +394,17 @@ MultiplierMaterial::getDampTangentSensitivity(int gradIndex)
double
MultiplierMaterial::getRhoSensitivity(int gradIndex)
{
if (theMaterial == 0)
if (theMaterial)
return theMaterial->getRhoSensitivity(gradIndex);
else
return 0.0;

return theMaterial->getRhoSensitivity(gradIndex);
}

int
MultiplierMaterial::commitSensitivity(double strainGradient, int gradIndex, int numGrads)
{
if (theMaterial == 0)
if (theMaterial)
return theMaterial->commitSensitivity(strainGradient, gradIndex, numGrads);
else
return -1;

return theMaterial->commitSensitivity(strainGradient, gradIndex, numGrads);
}

0 comments on commit 9bca070

Please sign in to comment.