-
Notifications
You must be signed in to change notification settings - Fork 3
Use AutoDiffScalar Concept and fix checkFESByAutoDiff test #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9e48676
28c7f15
ba9070e
8255673
884a956
75944eb
a806cd3
c37e4c7
512fa92
32c59a9
7c0fe4f
3207d3c
21ffe03
9ad6eda
dee9f3a
53a2c03
5715638
492863b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,8 @@ int main(int argc, char** argv) { | |
t.subTest(NonLinearElasticityLoadControlNRandTR<Grids::Yasp>(matNH1)); | ||
t.subTest(NonLinearElasticityLoadControlNRandTR<Grids::IgaSurfaceIn2D>(matNH1)); | ||
|
||
autoDiffTest<2>(t, planeStressMat1, " nu != 0"); | ||
autoDiffTest<2>(t, planeStressMat2, " nu = 0"); | ||
autoDiffTest<2>(t, planeStressMat1, " nu != 0", 1e-7); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This tolerance isn't always necessary but only for certain cases depending on the randomness in the element geometry and the displacement vector (see comment). I am not sure if this is good enough or it could be resolved in a better way? May be fixing the random displacement vector in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Increasing minIter might help but I'm not sure here. But using tolerances here is not to bad. But I think there is no nice way to fix this. We might refactor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay then I leave the tolerance here as such and we can refactor |
||
autoDiffTest<2>(t, planeStressMat2, " nu = 0", 1e-7); | ||
autoDiffTest<3>(t, matNH1, " nu != 0"); | ||
autoDiffTest<3>(t, matNH2, " nu = 0"); | ||
return t.exit(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.