Skip to content
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

Merged
merged 4 commits into from
Jun 19, 2018

Conversation

wenqing
Copy link
Member

@wenqing wenqing commented Jun 12, 2018

as titled.

The next PR will be for some improvements in the coupling computation of H and M.

@wenqing wenqing force-pushed the improveCFiniteElementVec branch 5 times, most recently from f9a946c to 2e12599 Compare June 14, 2018 07:57
@wenqing wenqing changed the title Only for test Changed the member initialization and some names of CFiniteElementVec Jun 14, 2018
@wenqing wenqing force-pushed the improveCFiniteElementVec branch from 2e12599 to b8ba60e Compare June 14, 2018 08:31

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),
Copy link
Contributor

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.

Copy link
Member Author

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.

@wenqing wenqing force-pushed the improveCFiniteElementVec branch 6 times, most recently from 09fb0ec to cd634c0 Compare June 18, 2018 12:40
@wenqing wenqing force-pushed the improveCFiniteElementVec branch from cd634c0 to f1ea446 Compare June 18, 2018 13:03
@norihiro-w
Copy link
Contributor

looks good for me

@wenqing wenqing merged commit 4159491 into ufz:master Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants