Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
iwr
amdis
Commits
aa7f3631
Commit
aa7f3631
authored
May 22, 2013
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some small changes in FileWriter
parent
f161a986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
AMDiS/src/Functors.h
AMDiS/src/Functors.h
+1
-1
AMDiS/src/io/FileWriter.cc
AMDiS/src/io/FileWriter.cc
+1
-1
AMDiS/src/io/FileWriter.hh
AMDiS/src/io/FileWriter.hh
+1
-1
No files found.
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
Markdown
is supported
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