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
Core Modules
dune-common
Commits
fea8f43d
Commit
fea8f43d
authored
19 years ago
by
Adrian Burri
Browse files
Options
Downloads
Patches
Plain Diff
Some cleanup after string conversion
[[Imported from SVN: r2046]]
parent
bb90ed3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io/file/grapedataio.hh
+10
-10
10 additions, 10 deletions
io/file/grapedataio.hh
with
10 additions
and
10 deletions
io/file/grapedataio.hh
+
10
−
10
View file @
fea8f43d
...
...
@@ -19,7 +19,7 @@ namespace Dune {
typedef
std
::
basic_string
<
char
>
GrapeIOStringType
;
typedef
std
::
string
GrapeIOStringType
;
/** \brief convert type to string
*/
...
...
@@ -67,12 +67,12 @@ namespace Dune {
* generated out of filename and timestep
*/
inline
bool
writeGrid
(
const
GridType
&
grid
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
fnprefix
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
&
fnprefix
,
double
time
=
0.0
,
int
timestep
=
0
,
int
precision
=
6
);
//! get Grid from file with time and timestep , return true if ok
inline
bool
readGrid
(
GridType
&
grid
,
const
GrapeIOStringType
fnprefix
,
double
&
time
,
int
timestep
);
const
GrapeIOStringType
&
fnprefix
,
double
&
time
,
int
timestep
);
/**
...
...
@@ -83,20 +83,20 @@ namespace Dune {
//! discrete function
template
<
class
DiscreteFunctionType
>
inline
bool
writeData
(
DiscreteFunctionType
&
df
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
filename
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
&
filename
,
int
timestep
,
int
precision
=
6
);
//! same as write only read
template
<
class
DiscreteFunctionType
>
inline
bool
readData
(
DiscreteFunctionType
&
df
,
const
GrapeIOStringType
filename
,
int
timestep
);
const
GrapeIOStringType
&
filename
,
int
timestep
);
};
template
<
class
GridType
>
inline
bool
GrapeDataIO
<
GridType
>
::
writeGrid
(
const
GridType
&
grid
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
fnprefix
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
&
fnprefix
,
double
time
,
int
timestep
,
int
precision
)
{
const
char
*
path
=
""
;
...
...
@@ -105,7 +105,7 @@ namespace Dune {
file
<<
"Format: "
<<
ftype
<<
std
::
endl
;
file
<<
"Precision: "
<<
precision
<<
std
::
endl
;
const
GrapeIOStringType
fnstr
=
genFilename
(
path
,
fnprefix
,
timestep
,
precision
);
GrapeIOStringType
fnstr
=
genFilename
(
path
,
fnprefix
,
timestep
,
precision
);
file
.
close
();
switch
(
ftype
)
{
...
...
@@ -125,7 +125,7 @@ namespace Dune {
template
<
class
GridType
>
inline
bool
GrapeDataIO
<
GridType
>
::
readGrid
(
GridType
&
grid
,
const
GrapeIOStringType
fnprefix
,
double
&
time
,
int
timestep
)
(
GridType
&
grid
,
const
GrapeIOStringType
&
fnprefix
,
double
&
time
,
int
timestep
)
{
int
helpType
;
...
...
@@ -167,7 +167,7 @@ namespace Dune {
template
<
class
GridType
>
template
<
class
DiscreteFunctionType
>
inline
bool
GrapeDataIO
<
GridType
>
::
writeData
(
DiscreteFunctionType
&
df
,
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
filename
,
int
timestep
,
int
precision
)
const
GrapeIOFileFormatType
ftype
,
const
GrapeIOStringType
&
filename
,
int
timestep
,
int
precision
)
{
{
typedef
typename
DiscreteFunctionType
::
FunctionSpaceType
DiscreteFunctionSpaceType
;
...
...
@@ -208,7 +208,7 @@ namespace Dune {
template
<
class
GridType
>
template
<
class
DiscreteFunctionType
>
inline
bool
GrapeDataIO
<
GridType
>
::
readData
(
DiscreteFunctionType
&
df
,
const
GrapeIOStringType
filename
,
int
timestep
)
readData
(
DiscreteFunctionType
&
df
,
const
GrapeIOStringType
&
filename
,
int
timestep
)
{
typedef
typename
DiscreteFunctionType
::
FunctionSpaceType
DiscreteFunctionSpaceType
;
typedef
typename
DiscreteFunctionSpaceType
::
DomainField
DomainFieldType
;
...
...
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