MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getTolerance

Function getTolerance

SRC/domain/domain/DomainModalProperties.cpp:855–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853#define DMP_OUT_REL_TOL 1.0e-12
854
855 inline double getTolerance(const Vector& x) {
856 double vmax = 0.0;
857 for (int i = 0; i < x.Size(); ++i)
858 vmax = std::max(vmax, std::abs(x(i)));
859 return std::max(DMP_OUT_REL_TOL * vmax, DMP_OUT_TOL);
860 }
861
862 inline double getTolerance(const Matrix& x) {
863 double vmax = 0.0;

Callers 1

print_internalFunction · 0.70

Calls 3

SizeMethod · 0.45
noRowsMethod · 0.45
noColsMethod · 0.45

Tested by

no test coverage detected