Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
a8e5a374
Commit
a8e5a374
authored
Apr 04, 2022
by
Nils Kohl
🌝
Browse files
And another msvc fix...
parent
efdc8b88
Pipeline
#38950
failed with stages
in 118 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/dgfunctionspace/DGFunction.hpp
View file @
a8e5a374
...
...
@@ -59,11 +59,23 @@ class DGFunction final : public Function< DGFunction< ValueType > >
uint_t
initialPolyDegree
,
BoundaryCondition
boundaryCondition
=
BoundaryCondition
::
create0123BC
()
);
void
multElementwise
(
const
std
::
vector
<
std
::
reference_wrapper
<
const
DGFunction
<
ValueType
>
>
>&
functions
,
uint_t
level
,
DoFType
flag
=
All
)
const
{
WALBERLA_UNUSED
(
functions
);
WALBERLA_UNUSED
(
level
);
WALBERLA_UNUSED
(
flag
);
WALBERLA_ABORT
(
"Not implemented."
);
}
/// \brief Assigns a linear combination of multiple VolumeDoFFunctions to this.
void
assign
(
const
std
::
vector
<
ValueType
>&
scalars
,
const
std
::
vector
<
std
::
reference_wrapper
<
const
DGFunction
<
ValueType
>
>
>&
functions
,
uint_t
level
)
uint_t
level
,
DoFType
flag
=
All
)
{
WALBERLA_UNUSED
(
flag
);
std
::
vector
<
std
::
reference_wrapper
<
const
VolumeDoFFunction
<
ValueType
>
>
>
vFunctions
;
for
(
const
auto
&
f
:
functions
)
{
...
...
@@ -75,14 +87,16 @@ class DGFunction final : public Function< DGFunction< ValueType > >
/// \brief Evaluates the dot product on all local DoFs. No communication is involved and the results may be different on each
/// process.
ValueType
dotLocal
(
const
DGFunction
<
ValueType
>&
rhs
,
uint_t
level
)
const
ValueType
dotLocal
(
const
DGFunction
<
ValueType
>&
rhs
,
uint_t
level
,
DoFType
flag
=
All
)
const
{
WALBERLA_UNUSED
(
flag
);
return
volumeDoFFunction_
->
dotLocal
(
*
rhs
.
volumeDoFFunction_
,
level
);
}
/// \brief Evaluates the (global) dot product. Involves communication and has to be called collectively.
ValueType
dotGlobal
(
const
DGFunction
<
ValueType
>&
rhs
,
uint_t
level
)
const
ValueType
dotGlobal
(
const
DGFunction
<
ValueType
>&
rhs
,
uint_t
level
,
DoFType
flag
=
All
)
const
{
WALBERLA_UNUSED
(
flag
);
return
volumeDoFFunction_
->
dotGlobal
(
*
rhs
.
volumeDoFFunction_
,
level
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment