Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-grid
Merge requests
!98
Feature/fs1721 grid selector
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/fs1721 grid selector
feature/FS1721-grid-selector
into
master
Overview
9
Commits
5
Pipelines
5
Changes
9
Merged
Christian Engwer
requested to merge
feature/FS1721-grid-selector
into
master
8 years ago
Overview
9
Commits
5
Pipelines
5
Changes
9
Expand
See
flyspray/FS#1721 (closed)
allow to enable/disable the gridselector feature.
0
0
Merge request reports
Compare
master
version 5
634191e5
8 years ago
version 4
29b031bd
8 years ago
version 3
8175a29d
8 years ago
version 2
bad34d12
8 years ago
version 1
66ff5e20
8 years ago
master (base)
and
latest version
latest version
b202e5a8
5 commits,
8 years ago
version 5
634191e5
5 commits,
8 years ago
version 4
29b031bd
5 commits,
8 years ago
version 3
8175a29d
4 commits,
8 years ago
version 2
bad34d12
1 commit,
8 years ago
version 1
66ff5e20
3 commits,
8 years ago
9 files
+
155
−
74
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
cmake/modules/GridType.cmake
+
15
−
7
Options
@@ -7,25 +7,24 @@
# :required:
# :positional:
#
#
TODO doc me
#
String variable grid definition is written to.
#
# .. cmake_param:: GRIDTYPE
# :single:
# :required:
#
# The name of the grid type to register.
# The name of the grid type to register
, .e.g. YASPGRID
.
#
# .. cmake_param:: DUNETYPE
# :single:
# :required:
#
# The C++ type of the grid to be used for the typedef
# The C++ type of the grid to be used for the typedef
, e.g. YaspGrid< dimgrid >.
#
# .. cmake_param:: ASSERTION
# :single:
#
# TODO doc me
# old doc: condition to be checked by the preprocessor
# Condition to be checked by the preprocessor, e.g. GRIDDIM == WORLDDIM for grids like YaspGrid.
#
# .. cmake_param:: HEADERS
# :multi:
@@ -36,8 +35,13 @@
# This function registers a new type for the GRIDTYPE magic.
#
# option to enable GridSelector
option
(
DUNE_GRID_GRIDTYPE_SELECTOR
"Grid selector definition added to config.h"
OFF
)
macro
(
dune_define_gridtype output
)
cmake_parse_arguments
(
GRIDTYPE
""
"GRIDTYPE;DUNETYPE;ASSERTION"
"HEADERS"
${
ARGN
}
)
cmake_parse_arguments
(
GRIDTYPE
""
"GRIDTYPE;DUNETYPE;ASSERTION"
"HEADERS"
${
ARGN
}
)
if
(
DUNE_GRID_GRIDTYPE_SELECTOR
)
if
(
NOT
(
GRIDTYPE_GRIDTYPE AND GRIDTYPE_DUNETYPE
))
message
(
ERROR
"Both GRIDTYPE and DUNETYPE have to be set"
)
endif
(
NOT
(
GRIDTYPE_GRIDTYPE AND GRIDTYPE_DUNETYPE
))
@@ -86,5 +90,9 @@ macro(dune_define_gridtype output)
#define HAVE_GRIDTYPE 1
#define USED_
${
GRIDTYPE_GRIDTYPE
}
_GRIDTYPE 1
#endif // #if HAVE_DUNE_GRID && defined
${
GRIDTYPE_GRIDTYPE
}
&& .."
)
# if disabled print message how to enable
else
(
DUNE_GRID_GRIDTYPE_SELECTOR
)
set
(
${
output
}
"
${${
output
}}
\n
/*
${
GRIDTYPE_GRIDTYPE
}
not available, enable with cmake variable DUNE_GRID_GRIDTYPE_SELECTOR=ON */"
)
endif
(
DUNE_GRID_GRIDTYPE_SELECTOR
)
endmacro
(
dune_define_gridtype output
)
Loading