Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
aa7f3631
Commit
aa7f3631
authored
May 22, 2013
by
Praetorius, Simon
Browse files
some small changes in FileWriter
parent
f161a986
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Functors.h
View file @
aa7f3631
...
...
@@ -27,7 +27,7 @@ template<typename T=double>
struct
Factor
:
public
AbstractFunction
<
T
,
T
>
{
Factor
(
double
fac_
)
:
AbstractFunction
<
T
,
T
>
(
1
),
fac
(
fac_
)
{}
T
operator
()(
const
T
&
x
)
const
{
return
fac
*
x
;
}
;
T
operator
()(
const
T
&
x
)
const
{
return
fac
*
x
;
}
private:
double
fac
;
};
...
...
AMDiS/src/io/FileWriter.cc
View file @
aa7f3631
...
...
@@ -69,7 +69,7 @@ namespace AMDiS {
FUNCNAME
(
"FileWriterTemplated<T>::writeFiles()"
);
if
(
timeModulo
>
0.0
)
{
if
((
adaptInfo
->
getTime
()
<
lastWriteTime
+
timeModulo
)
&&
!
force
)
if
((
lastWriteTime
!=
0.0
&&
adaptInfo
->
getTime
()
<
lastWriteTime
+
timeModulo
)
&&
!
force
)
return
;
}
else
{
if
((
adaptInfo
->
getTimestepNumber
()
%
tsModulo
!=
0
)
&&
!
force
)
...
...
AMDiS/src/io/FileWriter.hh
View file @
aa7f3631
...
...
@@ -180,7 +180,7 @@ namespace AMDiS {
FUNCNAME
(
"FileWriterTemplated<T>::writeFiles()"
);
if
(
timeModulo
>
0.0
)
{
if
((
adaptInfo
->
getTime
()
<
lastWriteTime
+
timeModulo
)
&&
!
force
)
if
((
lastWriteTime
!=
0.0
&&
adaptInfo
->
getTime
()
<
lastWriteTime
+
timeModulo
)
&&
!
force
)
return
;
}
else
{
if
((
adaptInfo
->
getTimestepNumber
()
%
tsModulo
!=
0
)
&&
!
force
)
...
...
Write
Preview
Supports
Markdown
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