Skip to content

Commit

Permalink
Update ParallelMaterial.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mhscott authored May 19, 2024
1 parent f5a07d7 commit 205b5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SRC/material/uniaxial/ParallelMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ ParallelMaterial::recvSelf(int cTag, Channel &theChannel,
for (int i=0; i<numMaterials; i++) {
int matClassTag = classTags(i);
if (theModels[i] == 0 || theModels[i]->getClassTag() != matClassTag) {
if (theModels[i] == 0)
if (theModels[i] != 0)
delete theModels[i];
UniaxialMaterial *theMaterialModel =
theBroker.getNewUniaxialMaterial(matClassTag);
Expand Down

0 comments on commit 205b5c9

Please sign in to comment.