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
d39fc596
Commit
d39fc596
authored
2 years ago
by
Martin Schönherr
Browse files
Options
Downloads
Patches
Plain Diff
rename gridScaling
parent
c6577c9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!201
Refactor parameter class (mainly interpolation)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.cpp
+3
-3
3 additions, 3 deletions
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.cpp
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.h
+1
-2
1 addition, 2 deletions
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.h
with
4 additions
and
5 deletions
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.cpp
+
3
−
3
View file @
d39fc596
...
...
@@ -3,13 +3,13 @@
void
GridScalingFactory
::
setScalingFactory
(
const
GridScalingFactory
::
GridScaling
gridScalingType
)
{
this
->
gridScaling
=
gridScalingType
;
this
->
gridScaling
Type
=
gridScalingType
;
}
gridScaling
GridScalingFactory
::
getGridScalingFC
(
bool
hasTurbulentViscosity
)
const
{
// for descriptions of the scaling types refer to the header
switch
(
gridScaling
)
{
switch
(
gridScaling
Type
)
{
case
GridScaling
::
ScaleRhoSq
:
return
ScaleFC_RhoSq_comp_27
;
break
;
...
...
@@ -25,7 +25,7 @@ gridScaling GridScalingFactory::getGridScalingFC(bool hasTurbulentViscosity) con
gridScaling
GridScalingFactory
::
getGridScalingCF
(
bool
hasTurbulentViscosity
)
const
{
// for descriptions of the scaling types refer to the header
switch
(
gridScaling
)
{
switch
(
gridScaling
Type
)
{
case
GridScaling
::
ScaleRhoSq
:
return
ScaleCF_RhoSq_comp_27
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/gpu/VirtualFluids_GPU/Factories/GridScalingFactory.h
+
1
−
2
View file @
d39fc596
...
...
@@ -42,7 +42,6 @@ struct LBMSimulationParameter;
class
Parameter
;
struct
CUstream_st
;
using
gridScaling
=
std
::
function
<
void
(
LBMSimulationParameter
*
,
LBMSimulationParameter
*
,
ICells
*
,
ICellNeigh
&
,
CUstream_st
*
stream
)
>
;
using
gridScaling
=
std
::
function
<
void
(
LBMSimulationParameter
*
,
LBMSimulationParameter
*
,
ICells
*
,
ICellNeigh
&
,
CUstream_st
*
stream
)
>
;
class
GridScalingFactory
...
...
@@ -63,7 +62,7 @@ public:
[[
nodiscard
]]
gridScaling
getGridScalingCF
(
bool
hasTurbulentViscosity
)
const
;
private
:
GridScaling
gridScaling
=
GridScaling
::
NotSpecified
;
GridScaling
gridScaling
Type
=
GridScaling
::
NotSpecified
;
};
#endif
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