Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Tobias Leibner
dune-common
Commits
ca918649
Commit
ca918649
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
removed the class template parameter 'DiscFuncType'
[[Imported from SVN: r1123]]
parent
f0463b17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io/file/amiramesh/amirameshwriter.cc
+13
-12
13 additions, 12 deletions
io/file/amiramesh/amirameshwriter.cc
io/file/amirameshwriter.hh
+5
-4
5 additions, 4 deletions
io/file/amirameshwriter.hh
with
18 additions
and
16 deletions
io/file/amiramesh/amirameshwriter.cc
+
13
−
12
View file @
ca918649
...
...
@@ -8,9 +8,9 @@
#if _3
/** \todo Make sure that the grid is three-dimensional */
template
<
class
GridType
,
class
DiscFuncType
>
void
Dune
::
AmiraMeshWriter
<
GridType
,
DiscFuncType
>::
writeGrid
(
const
GridType
&
grid
,
const
std
::
string
&
filename
)
template
<
class
GridType
>
void
Dune
::
AmiraMeshWriter
<
GridType
>::
writeGrid
(
const
GridType
&
grid
,
const
std
::
string
&
filename
)
{
// Temporary: we write this level
int
level
=
grid
.
maxlevel
();
...
...
@@ -157,9 +157,9 @@ void Dune::AmiraMeshWriter<GridType, DiscFuncType>::writeGrid(const GridType& gr
#ifdef _2
template
<
class
GridType
,
class
DiscFuncType
>
void
Dune
::
AmiraMeshWriter
<
GridType
,
DiscFuncType
>::
writeGrid
(
const
GridType
&
grid
,
const
std
::
string
&
filename
)
template
<
class
GridType
>
void
Dune
::
AmiraMeshWriter
<
GridType
>::
writeGrid
(
const
GridType
&
grid
,
const
std
::
string
&
filename
)
{
// Temporary: we write this level
...
...
@@ -299,9 +299,10 @@ void Dune::AmiraMeshWriter<GridType, DiscFuncType>::writeGrid(const GridType& gr
}
#endif // #ifdef _2
template
<
class
GridType
,
class
DiscFuncType
>
void
Dune
::
AmiraMeshWriter
<
GridType
,
DiscFuncType
>::
writeFunction
(
const
DiscFuncType
&
f
,
const
std
::
string
&
filename
)
template
<
class
GridType
>
template
<
class
DiscFuncType
>
void
Dune
::
AmiraMeshWriter
<
GridType
>::
writeFunction
(
const
DiscFuncType
&
f
,
const
std
::
string
&
filename
)
{
// Get grid type associated with DiscFuncType
typedef
typename
DiscFuncType
::
FunctionSpaceType
FunctionSpaceType
;
...
...
@@ -354,9 +355,9 @@ void Dune::AmiraMeshWriter<GridType, DiscFuncType>::writeFunction(const DiscFunc
template
<
class
GridType
,
class
DiscFuncType
>
void
Dune
::
AmiraMeshWriter
<
GridType
,
DiscFuncType
>::
writeBlockVector
(
const
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
3
>
>&
f
,
const
std
::
string
&
filename
)
template
<
class
GridType
>
void
Dune
::
AmiraMeshWriter
<
GridType
>::
writeBlockVector
(
const
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
3
>
>&
f
,
const
std
::
string
&
filename
)
{
typedef
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
3
>
>
VectorType
;
...
...
This diff is collapsed.
Click to expand it.
io/file/amirameshwriter.hh
+
5
−
4
View file @
ca918649
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef
__
DUNE_AMIRAMESHWRITER_HH
__
#define
__
DUNE_AMIRAMESHWRITER_HH
__
#ifndef DUNE_AMIRAMESH
_
WRITER_HH
#define DUNE_AMIRAMESH
_
WRITER_HH
#include
<string>
#include
<dune/istl/bvector.hh>
...
...
@@ -21,7 +21,7 @@ namespace Dune {
* \todo As DiscFuncType is supposed to know its GridType we can
* delete the first template parameter.
*/
template
<
class
G
RID
,
class
DiscFunc
Type
>
template
<
class
G
rid
Type
>
class
AmiraMeshWriter
{
public:
...
...
@@ -31,7 +31,7 @@ namespace Dune {
* @param grid The grid objects that is to be written
* @param filename The filename
*/
static
void
writeGrid
(
const
G
RID
&
grid
,
static
void
writeGrid
(
const
G
ridType
&
grid
,
const
std
::
string
&
filename
);
/** \brief Writes a discrete function in AmiraMesh format
...
...
@@ -39,6 +39,7 @@ namespace Dune {
* @param f Function that should be written
* @param filename The filename
*/
template
<
class
DiscFuncType
>
static
void
writeFunction
(
const
DiscFuncType
&
f
,
const
std
::
string
&
filename
);
...
...
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