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
ce9a9609
Commit
ce9a9609
authored
1 year ago
by
Hkorb
Browse files
Options
Downloads
Patches
Plain Diff
const all the things in geometry utils
parent
8004d7c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!296
Refactor Actuator Farm
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gpu/core/GPU/GeometryUtils.h
+7
-7
7 additions, 7 deletions
src/gpu/core/GPU/GeometryUtils.h
with
7 additions
and
7 deletions
src/gpu/core/GPU/GeometryUtils.h
+
7
−
7
View file @
ce9a9609
...
...
@@ -3,9 +3,9 @@
#include
<basics/DataTypes.h>
__inline__
__host__
__device__
void
getNeighborIndicesOfBSW
(
uint
k
,
//index of
d
MMM node
__inline__
__host__
__device__
void
getNeighborIndicesOfBSW
(
uint
k
,
//index of
DIR_
MMM node
uint
&
ke
,
uint
&
kn
,
uint
&
kt
,
uint
&
kne
,
uint
&
kte
,
uint
&
ktn
,
uint
&
ktne
,
uint
*
neighborX
,
uint
*
neighborY
,
uint
*
neighborZ
)
const
uint
*
neighborX
,
const
uint
*
neighborY
,
const
uint
*
neighborZ
)
{
ke
=
neighborX
[
k
];
kn
=
neighborY
[
k
];
...
...
@@ -16,10 +16,10 @@ __inline__ __host__ __device__ void getNeighborIndicesOfBSW( uint k, //index of
ktne
=
neighborX
[
ktn
];
}
__inline__
__host__
__device__
uint
findNearestCellBSW
(
uint
index
,
real
*
coordsX
,
real
*
coordsY
,
real
*
coordsZ
,
real
posX
,
real
posY
,
real
posZ
,
uint
*
neighborsX
,
uint
*
neighborsY
,
uint
*
neighborsZ
,
uint
*
neighborsWSB
)
__inline__
__host__
__device__
uint
findNearestCellBSW
(
const
uint
index
,
const
real
*
coordsX
,
const
real
*
coordsY
,
const
real
*
coordsZ
,
const
real
posX
,
const
real
posY
,
const
real
posZ
,
const
uint
*
neighborsX
,
const
uint
*
neighborsY
,
const
uint
*
neighborsZ
,
const
uint
*
neighborsWSB
)
{
uint
new_index
=
index
;
...
...
@@ -53,7 +53,7 @@ __inline__ __host__ __device__ void getInterpolationWeights(real &dW, real &dE,
__inline__
__host__
__device__
real
trilinearInterpolation
(
real
dW
,
real
dE
,
real
dN
,
real
dS
,
real
dT
,
real
dB
,
uint
k
,
uint
ke
,
uint
kn
,
uint
kt
,
uint
kne
,
uint
kte
,
uint
ktn
,
uint
ktne
,
real
*
quantity
)
const
real
*
quantity
)
{
return
(
dE
*
dN
*
dT
*
quantity
[
k
]
+
dW
*
dN
*
dT
*
quantity
[
ke
]
+
dE
*
dS
*
dT
*
quantity
[
kn
]
+
dW
*
dS
*
dT
*
quantity
[
kne
]
...
...
This diff is collapsed.
Click to expand it.
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