-
Notifications
You must be signed in to change notification settings - Fork 97
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
Changed the member initialization and some names of CFiniteElementVec #99
Conversation
f9a946c
to
2e12599
Compare
2e12599
to
b8ba60e
Compare
|
||
CFiniteElementVec::CFiniteElementVec(process::CRFProcessDeformation* dm_pcs, | ||
const int C_Sys_Flad, const int order) | ||
: CElement(C_Sys_Flad, order), pcs(dm_pcs), h_pcs(NULL), t_pcs(NULL), excavation(false), |
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.
why have you moved all the allocation/initialization here? if a member variable is a pointer, there is no advantage to initialize them here.
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.
Thanks @norihiro-w . Only for a little performance but it really looks ugly and make debug difficulty with such long initialization list. Just moved most of the pointer members from the initialization list to the constructor body.
09fb0ec
to
cd634c0
Compare
…t to the constructor body
cd634c0
to
f1ea446
Compare
looks good for me |
as titled.
The next PR will be for some improvements in the coupling computation of H and M.