Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-gdt
Commits
95ce661a
Commit
95ce661a
authored
6 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[discretefunction.bochner] return function instead of vector in evaluate()
parent
94ec9133
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gdt/discretefunction/bochner.hh
+2
-2
2 additions, 2 deletions
dune/gdt/discretefunction/bochner.hh
with
2 additions
and
2 deletions
dune/gdt/discretefunction/bochner.hh
+
2
−
2
View file @
95ce661a
...
...
@@ -76,7 +76,7 @@ public:
return
name_
;
}
V
evaluate
(
const
double
&
time
)
const
DiscreteFunction
<
V
,
GV
,
r
,
rC
,
R
>
evaluate
(
const
double
&
time
)
const
{
const
auto
search_result
=
XT
::
Grid
::
make_entity_in_level_search
(
bochner_space_
.
temporal_space
().
grid_view
())(
std
::
vector
<
double
>
(
1
,
time
));
...
...
@@ -91,7 +91,7 @@ public:
const
auto
global_dof_indices
=
bochner_space_
.
temporal_space
().
mapper
().
global_indices
(
time_interval
);
for
(
size_t
ii
=
0
;
ii
<
temporal_basis
->
size
();
++
ii
)
result
.
axpy
(
temporal_basis_values
[
ii
],
this
->
dof_vectors
()[
global_dof_indices
[
ii
]].
vector
());
return
result
;
return
make_discrete_function
(
bochner_space_
.
spatial_space
(),
std
::
move
(
result
))
;
}
// ... evaluate(...)
void
visualize
(
const
std
::
string
filename_prefix
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
)
const
...
...
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