Skip to content

Commit 53fcb76

Browse files
authored
Merge pull request #731 from cb-geo/hotfix/norsand-sign-error
🐛🔧 fix sign error for dtheta_dsigma in NorSand
2 parents adfe6f1 + 2df3fe2 commit 53fcb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/materials/norsand.tcc

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ void mpm::NorSand<Tdim>::compute_plastic_tensor(const Vector6d& stress,
369369
(3. * std::pow(Mtc_, 2) * sin(3. / 2. * lode_angle)) / (2. * (3. + Mtc_));
370370

371371
// Compute dtheta / dsigma
372-
const Vector6d dtheta_dsigma = mpm::materials::dtheta_dsigma(stress);
372+
const Vector6d dtheta_dsigma = -1. * mpm::materials::dtheta_dsigma(stress);
373373

374374
// dF_dsigma is in compression negative
375375
const Vector6d dF_dsigma =

0 commit comments

Comments
 (0)