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

Select element types/dimension/order to be built via cmake #1092

Merged
merged 1 commit into from
Mar 14, 2016

Conversation

chleh
Copy link
Collaborator

@chleh chleh commented Mar 11, 2016

This PR adds the following cmake options, which enable selection of element types to be built via cmake. That possibly saves compile time. The effect will be more significant for fixed-size shape matrices, not so much for dynamically allocated ones.

OGS_ENABLE_ELEMENT_CUBOID
OGS_ENABLE_ELEMENT_PRISM
OGS_ENABLE_ELEMENT_PYRAMID
OGS_ENABLE_ELEMENT_SIMPLEX
OGS_MAX_ELEMENT_DIM
OGS_MAX_ELEMENT_ORDER

@ogsbot
Copy link
Member

ogsbot commented Mar 11, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1411/

@chleh
Copy link
Collaborator Author

chleh commented Mar 11, 2016

Fixed it.

@ogsbot
Copy link
Member

ogsbot commented Mar 11, 2016

Jenkins: OGS-6/Gui/Gui-Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Gui-Linux-PRs/1390/

@ogsbot
Copy link
Member

ogsbot commented Mar 11, 2016

Jenkins: OGS-6/Gui/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Mac-PRs/1281/

@ogsbot
Copy link
Member

ogsbot commented Mar 11, 2016

Jenkins: OGS-6/Gui/Win-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Win-PRs/1279/

@chleh
Copy link
Collaborator Author

chleh commented Mar 11, 2016

At least for non-GUI. ^^

@ogsbot
Copy link
Member

ogsbot commented Mar 11, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/1417/

@endJunction
Copy link
Member

Be aware that when for example only pyramids are enabled the triangles and quads should also be available because of the boundary. ✅

@chleh
Copy link
Collaborator Author

chleh commented Mar 11, 2016

Gonna rethink it.

@wenqing
Copy link
Member

wenqing commented Mar 14, 2016

Also line element should be enabled by default because it is used as edge type to assign BCs for all types of element.

@chleh
Copy link
Collaborator Author

chleh commented Mar 14, 2016

The macro ENABLED_ELEMENT_TYPE_LINE should make sure that lines and points are effectively always enabled.

@chleh
Copy link
Collaborator Author

chleh commented Mar 14, 2016

Note: Just added an error message for nonexistent mesh element types. 50269d1

@@ -0,0 +1,24 @@
# Definitions controlling which FEM elements will be compiled
if(NOT OGS_MAX_ELEMENT_DIM MATCHES "^[0-9]$")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0-3 is sufficient. ✅

@endJunction
Copy link
Member

⏩ from my side.

@wenqing
Copy link
Member

wenqing commented Mar 14, 2016

👍

chleh added a commit that referenced this pull request Mar 14, 2016
Select element types/dimension/order to be built via cmake
@chleh chleh merged commit 48dd5f7 into ufz:master Mar 14, 2016
@chleh chleh deleted the select-elements branch March 14, 2016 17:09
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants