Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
23245e1a
Commit
23245e1a
authored
May 07, 2020
by
Ed Laughton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only write on rank 0
parent
e1734248
Pipeline
#1936
passed with stages
in 276 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
library/SolverUtils/Filters/FilterError.cpp
library/SolverUtils/Filters/FilterError.cpp
+14
-3
No files found.
library/SolverUtils/Filters/FilterError.cpp
View file @
23245e1a
...
...
@@ -120,7 +120,11 @@ void FilterError::v_Update(
}
// Output to file L2 and Linf error for each variable
m_outFile
<<
time
;
if
(
m_comm
->
GetRank
()
==
0
)
{
m_outFile
<<
time
;
}
for
(
size_t
i
=
0
;
i
<
m_numVariables
;
++
i
)
{
Array
<
OneD
,
NekDouble
>
exactsoln
(
m_equationShPtr
->
GetTotPoints
(),
0.0
);
...
...
@@ -137,7 +141,10 @@ void FilterError::v_Update(
}
}
m_outFile
<<
std
::
endl
;
if
(
m_comm
->
GetRank
()
==
0
)
{
m_outFile
<<
std
::
endl
;
}
}
void
FilterError
::
v_Finalise
(
...
...
@@ -145,7 +152,11 @@ void FilterError::v_Finalise(
const
NekDouble
&
time
)
{
boost
::
ignore_unused
(
pFields
,
time
);
m_outFile
.
close
();
if
(
m_comm
->
GetRank
()
==
0
)
{
m_outFile
.
close
();
}
}
bool
FilterError
::
v_IsTimeDependent
()
...
...
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