Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
51fe9a8a
Commit
51fe9a8a
authored
2 years ago
by
Anna Wellmann
Browse files
Options
Downloads
Patches
Plain Diff
Use static constexpr int for directions instead of define
parent
e962430c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!120
Change the order of the distributions (D3Q27) and use the same names as in CPU
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gpu/VirtualFluids_GPU/LBM/D3Q27.h
+31
-34
31 additions, 34 deletions
src/gpu/VirtualFluids_GPU/LBM/D3Q27.h
with
31 additions
and
34 deletions
src/gpu/VirtualFluids_GPU/LBM/D3Q27.h
+
31
−
34
View file @
51fe9a8a
...
@@ -2,40 +2,37 @@
...
@@ -2,40 +2,37 @@
#define _LB_D3Q27_H_
#define _LB_D3Q27_H_
#include
<math.h>
#include
<math.h>
#define dirSTART 0
static
constexpr
int
dirSTART
=
0
;
#define dirEND 26
static
constexpr
int
dirEND
=
26
;
#define dirE 0
static
constexpr
int
dirE
=
0
;
#define dirW 1
static
constexpr
int
dirW
=
1
;
#define dirN 2
static
constexpr
int
dirN
=
2
;
#define dirS 3
static
constexpr
int
dirS
=
3
;
#define dirT 4
static
constexpr
int
dirT
=
4
;
#define dirB 5
static
constexpr
int
dirB
=
5
;
static
constexpr
int
dirNE
=
6
;
#define dirNE 6
static
constexpr
int
dirSW
=
7
;
#define dirSW 7
static
constexpr
int
dirSE
=
8
;
#define dirSE 8
static
constexpr
int
dirNW
=
9
;
#define dirNW 9
static
constexpr
int
dirTE
=
10
;
#define dirTE 10
static
constexpr
int
dirBW
=
11
;
#define dirBW 11
static
constexpr
int
dirBE
=
12
;
#define dirBE 12
static
constexpr
int
dirTW
=
13
;
#define dirTW 13
static
constexpr
int
dirTN
=
14
;
#define dirTN 14
static
constexpr
int
dirBS
=
15
;
#define dirBS 15
static
constexpr
int
dirBN
=
16
;
#define dirBN 16
static
constexpr
int
dirTS
=
17
;
#define dirTS 17
static
constexpr
int
dirTNE
=
18
;
static
constexpr
int
dirTNW
=
19
;
#define dirTNE 18
static
constexpr
int
dirTSE
=
20
;
#define dirTNW 19
static
constexpr
int
dirTSW
=
21
;
#define dirTSE 20
static
constexpr
int
dirBNE
=
22
;
#define dirTSW 21
static
constexpr
int
dirBNW
=
23
;
#define dirBNE 22
static
constexpr
int
dirBSE
=
24
;
#define dirBNW 23
static
constexpr
int
dirBSW
=
25
;
#define dirBSE 24
#define dirBSW 25
static
constexpr
int
dirREST
=
26
;
// #define dirZERO 26
#define dirREST 26
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Anna Wellmann
@a.wellmann
mentioned in commit
0e3a66e2
·
2 years ago
mentioned in commit
0e3a66e2
mentioned in commit 0e3a66e271d8f10b4bba95913d2b274b832776c9
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment