-
Notifications
You must be signed in to change notification settings - Fork 19
Issue 779: stress restart #930
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
base: develop
Are you sure you want to change the base?
Conversation
einola
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. Just a bit of cleaning of commented out code needed.
| static const std::map<std::string, std::pair<ModelArray::Type, double>> defaultFields = {}; | ||
| static const std::map<std::string, std::pair<ModelArray::Type, double>> defaultFields = { | ||
| // { stress11Name, { ModelArray::Type::DG, 0. } }, | ||
| // { stress12Name, { ModelArray::Type::DG, 0. } }, | ||
| // { stress22Name, { ModelArray::Type::DG, 0. } }, | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be reverted?
| // } else if (name == stress11Name) { | ||
| // DGModelArray::ma2dg(data, s11); | ||
| // } else if (name == stress12Name) { | ||
| // DGModelArray::ma2dg(data, s12); | ||
| // } else if (name == stress22Name) { | ||
| // DGModelArray::ma2dg(data, s22); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also not needed
| // e11.resize_by_mesh(*smesh); | ||
| // e12.resize_by_mesh(*smesh); | ||
| // e22.resize_by_mesh(*smesh); | ||
| // s11.resize_by_mesh(*smesh); | ||
| // s12.resize_by_mesh(*smesh); | ||
| // s22.resize_by_mesh(*smesh); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
| // e11.zero(); | ||
| // e12.zero(); | ||
| // e22.zero(); | ||
| // s11.zero(); | ||
| // s12.zero(); | ||
| // s22.zero(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
| // DGVector<DGstress> e11, e12, e22; | ||
| // DGVector<DGstress> /*s11,*/ s12, s22; | ||
| // DGVectorHolder<DGstress> s11, s12, s22; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
Stress restart
Fixes #779
Change Description
Move the stress and strain arrays to the lowest possible point in the class hierarchy. It turns out that this is
CGDynamicsKernel, only one level lower thanDynamicsKernel.Convert the stress arrays to
DGVectorHolders to allow data to be passed around without copying.Test Description
Manually check that valid stress values occur in the restart file after a run length of 0.