Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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-xt
Commits
c8ce8e51
Commit
c8ce8e51
authored
4 years ago
by
Dr. Felix Tobias Schindler
Committed by
Tobias Leibner
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[functions.interfaces] deprecated func.visualize()
parent
622a4862
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!44
ccache and clang sanitizer flags for CI
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/xt/functions/interfaces/function.hh
+2
-2
2 additions, 2 deletions
dune/xt/functions/interfaces/function.hh
dune/xt/functions/interfaces/grid-function.hh
+34
-23
34 additions, 23 deletions
dune/xt/functions/interfaces/grid-function.hh
with
36 additions
and
25 deletions
dune/xt/functions/interfaces/function.hh
+
2
−
2
View file @
c8ce8e51
...
...
@@ -351,7 +351,7 @@ public:
* \copydoc GridFunctionInterface::visualize
*/
template
<
class
GridLayerType
>
[[
deprecated
(
"Use
make_grid_function(*this).visualize(...)
instead (
18
.09.2020)!"
)]]
[[
deprecated
(
"Use
visualize(*this, ...) from <dune/xt/functions/visualizations.hh>
instead (
24
.09.2020)!"
)]]
typename
std
::
enable_if
<
Grid
::
is_layer
<
GridLayerType
>::
value
,
void
>::
type
visualize
(
const
GridLayerType
&
grid_layer
,
const
std
::
string
path
,
...
...
@@ -366,7 +366,7 @@ public:
* \copydoc GridFunctionInterface::visualize_gradient
*/
template
<
class
GridLayerType
>
[[
deprecated
(
"Use
make_grid_function(*this).visualize(...)
instead (
18
.09.2020)!"
)]]
[[
deprecated
(
"Use
visualize_gradient(*this, ...) from <dune/xt/functions/visualizations.hh>
instead (
24
.09.2020)!"
)]]
typename
std
::
enable_if
<
Grid
::
is_layer
<
GridLayerType
>::
value
,
void
>::
type
visualize_gradient
(
const
GridLayerType
&
grid_layer
,
const
std
::
string
path
,
...
...
This diff is collapsed.
Click to expand it.
dune/xt/functions/interfaces/grid-function.hh
+
34
−
23
View file @
c8ce8e51
...
...
@@ -237,12 +237,13 @@ public:
* visualization may thus be a refinement of the actual grid!
*/
template
<
class
GridViewType
>
void
visualize
(
const
GridViewType
&
grid_view
,
const
std
::
string
path
,
const
bool
subsampling
=
true
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
r
,
rC
,
R
>&
visualizer
=
default_visualizer
<
r
,
rC
,
R
>
())
const
[[
deprecated
(
"Use visualize(*this, ...) from <dune/xt/functions/visualizations.hh> instead (24.09.2020)!"
)]]
void
visualize
(
const
GridViewType
&
grid_view
,
const
std
::
string
path
,
const
bool
subsampling
=
true
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
r
,
rC
,
R
>&
visualizer
=
default_visualizer
<
r
,
rC
,
R
>
())
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
auto
vtk_writer
=
create_vtkwriter
(
grid_view
,
subsampling
);
...
...
@@ -256,12 +257,14 @@ public:
* \note Not yet implemented for vector-valued functions.
*/
template
<
class
GridViewType
>
void
visualize_gradient
(
const
GridViewType
&
grid_view
,
const
std
::
string
path
,
const
bool
subsampling
=
true
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
d
,
1
,
R
>&
visualizer
=
default_visualizer
<
d
,
1
,
R
>
())
const
[[
deprecated
(
"Use visualize_gradient(*this, ...) from <dune/xt/functions/visualizations.hh> instead (24.09.2020)!"
)]]
void
visualize_gradient
(
const
GridViewType
&
grid_view
,
const
std
::
string
path
,
const
bool
subsampling
=
true
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
d
,
1
,
R
>&
visualizer
=
default_visualizer
<
d
,
1
,
R
>
())
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
auto
vtk_writer
=
create_vtkwriter
(
grid_view
,
subsampling
);
...
...
@@ -270,8 +273,10 @@ public:
}
// ... visualize_gradient(...)
template
<
class
GridViewType
>
std
::
unique_ptr
<
VTKWriter
<
GridViewType
>>
create_vtkwriter
(
const
GridViewType
&
grid_view
,
const
bool
subsampling
=
true
)
const
[[
deprecated
(
"Use internal::create_vtkwriter(...) from <dune/xt/functions/visualizations.hh> instead (24.09.2020)!"
)]]
std
::
unique_ptr
<
VTKWriter
<
GridViewType
>>
create_vtkwriter
(
const
GridViewType
&
grid_view
,
const
bool
subsampling
=
true
)
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
return
subsampling
?
std
::
make_unique
<
SubsamplingVTKWriter
<
GridViewType
>>
(
grid_view
,
/*subsampling_level=*/
2
)
...
...
@@ -279,9 +284,11 @@ public:
}
template
<
class
GridViewType
>
void
add_to_vtkwriter
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
r
,
rC
,
R
>&
visualizer
=
default_visualizer
<
r
,
rC
,
R
>
())
const
[[
deprecated
(
"Use internal::add_to_vtkwriter(...) from <dune/xt/functions/visualizations.hh> instead (24.09.2020)!"
)]]
void
add_to_vtkwriter
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
r
,
rC
,
R
>&
visualizer
=
default_visualizer
<
r
,
rC
,
R
>
())
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
const
auto
adapter
=
...
...
@@ -291,9 +298,11 @@ public:
}
template
<
class
GridViewType
>
void
add_gradient_to_vtkwriter
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
d
,
1
,
R
>&
visualizer
=
default_visualizer
<
d
,
1
,
R
>
())
const
[[
deprecated
(
"Use internal::add_gradient_to_vtkwriter(...) from <dune/xt/functions/visualizations.hh> instead "
"(24.09.2020)!"
)]]
void
add_gradient_to_vtkwriter
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
XT
::
Common
::
Parameter
&
param
=
{},
const
VisualizerInterface
<
d
,
1
,
R
>&
visualizer
=
default_visualizer
<
d
,
1
,
R
>
())
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
const
auto
adapter
=
...
...
@@ -303,9 +312,11 @@ public:
}
template
<
class
GridViewType
>
auto
write_visualization
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
std
::
string
path
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
)
const
[[
deprecated
(
"Use internal::write_visualization(...) from <dune/xt/functions/visualizations.hh> instead "
"(24.09.2020)!"
)]]
void
write_visualization
(
VTKWriter
<
GridViewType
>&
vtk_writer
,
const
std
::
string
path
,
const
VTK
::
OutputType
vtk_output_type
=
VTK
::
appendedraw
)
const
{
static_assert
(
Grid
::
is_view
<
GridViewType
>::
value
);
if
(
path
.
empty
())
...
...
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