From 3c9de37348a9910785d89883a0f2315123cfcd1d Mon Sep 17 00:00:00 2001 From: Brad Aagaard Date: Tue, 19 Nov 2024 14:42:39 -0700 Subject: [PATCH] FIX: Increase tolerances on material properties to be about 2x maximum expected range. --- libsrc/pylith/materials/AuxiliaryFactoryElastic.cc | 2 +- libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc | 4 ++-- tests/libtests/materials/TestAuxiliaryFactoryLinearElastic.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/pylith/materials/AuxiliaryFactoryElastic.cc b/libsrc/pylith/materials/AuxiliaryFactoryElastic.cc index 2a6ae928bf..f4489abc3d 100644 --- a/libsrc/pylith/materials/AuxiliaryFactoryElastic.cc +++ b/libsrc/pylith/materials/AuxiliaryFactoryElastic.cc @@ -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); diff --git a/libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc b/libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc index df859c6bdd..81dd44dd89 100644 --- a/libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc +++ b/libsrc/pylith/materials/AuxiliaryFactoryPoroelastic.cc @@ -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); @@ -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); diff --git a/tests/libtests/materials/TestAuxiliaryFactoryLinearElastic.cc b/tests/libtests/materials/TestAuxiliaryFactoryLinearElastic.cc index a0eb15de7a..b6dbb0f12b 100644 --- a/tests/libtests/materials/TestAuxiliaryFactoryLinearElastic.cc +++ b/tests/libtests/materials/TestAuxiliaryFactoryLinearElastic.cc @@ -68,7 +68,7 @@ pylith::materials::TestAuxiliaryFactoryLinearElastic::TestAuxiliaryFactoryLinear componentNames.size(), pylith::topology::Field::SCALAR, _data->normalizer->getPressureScale(), - 25.0, + 100.0, pylith::topology::FieldQuery::validatorNonnegative ); info.fe = pylith::topology::Field::Discretization(