Skip to content

Changed the member initialization and some names of CFiniteElementVec - #99

Merged
wenqing merged 4 commits into
ufz:masterfrom
wenqing:improveCFiniteElementVec
Jun 19, 2018
Merged

wenqing merged 4 commits into
ufz:masterfrom
wenqing:improveCFiniteElementVec

Conversation

@wenqing

@wenqing wenqing commented Jun 12, 2018 •

Copy link
Copy Markdown
Member

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
Comment thread FEM/fem_ele_vec.cpp

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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