Skip to content

Commit

Permalink
FIX: Increase tolerances on material properties to be about 2x maximu…
Browse files Browse the repository at this point in the history
…m expected range.
  • Loading branch information
baagaard-usgs committed Nov 19, 2024
1 parent 218ecb1 commit d026d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libsrc/pylith/materials/AuxiliaryFactoryElastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pylith::materials::AuxiliaryFactoryElastic::addShearModulus(void) {
description.componentNames[0] = subfieldName;
description.scale = pressureScale;
description.validator = pylith::topology::FieldQuery::validatorNonnegative;
description.validatorTolerance = 25.0;
description.validatorTolerance = 100.0;

_field->subfieldAdd(description, getSubfieldDiscretization(subfieldName));
pylith::materials::Query::shearModulusFromVM(subfieldName, this);
Expand Down
4 changes: 2 additions & 2 deletions libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pylith::materials::AuxiliaryFactoryPoroelastic::addDrainedBulkModulus(void) {
description.componentNames[0] = subfieldName;
description.scale = pressureScale;
description.validator = pylith::topology::FieldQuery::validatorPositive;
description.validatorTolerance = 25.0;
description.validatorTolerance = 100.0;

_field->subfieldAdd(description, getSubfieldDiscretization(subfieldName));
this->setSubfieldQuery(subfieldName);
Expand Down Expand Up @@ -180,7 +180,7 @@ pylith::materials::AuxiliaryFactoryPoroelastic::addBiotModulus(void) {
description.componentNames[0] = subfieldName;
description.scale = pressureScale;
description.validator = pylith::topology::FieldQuery::validatorPositive;
description.validatorTolerance = 25.0;
description.validatorTolerance = 100.0;

_field->subfieldAdd(description, getSubfieldDiscretization(subfieldName));
pylith::materials::Query::biotModulusFromInput(subfieldName, this);
Expand Down

0 comments on commit d026d49

Please sign in to comment.