Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Podhorszki, Norbert
ADIOS2
Commits
7ab609f1
Commit
7ab609f1
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Add consistent bracket initialization
parent
f7013dcd
No related branches found
No related tags found
1 merge request
!25
Fix gcc485 segfault
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/engine/bp/BPFileWriter.h
+2
-2
2 additions, 2 deletions
include/engine/bp/BPFileWriter.h
source/core/Engine.cpp
+2
-2
2 additions, 2 deletions
source/core/Engine.cpp
source/engine/bp/BPFileWriter.cpp
+7
-5
7 additions, 5 deletions
source/engine/bp/BPFileWriter.cpp
with
11 additions
and
9 deletions
include/engine/bp/BPFileWriter.h
+
2
−
2
View file @
7ab609f1
...
...
@@ -34,8 +34,8 @@ public:
* @param method
* @param debugMode
*/
BPFileWriter
(
ADIOS
&
adios
,
const
std
::
string
name
,
const
std
::
string
accessMode
,
MPI_Comm
mpiComm
,
BPFileWriter
(
ADIOS
&
adios
,
std
::
string
name
,
const
std
::
string
&
accessMode
,
MPI_Comm
mpiComm
,
const
Method
&
method
,
const
IOMode
iomode
=
IOMode
::
INDEPENDENT
,
const
float
timeout_sec
=
0.
,
const
bool
debugMode
=
false
,
const
unsigned
int
nthreads
=
1
);
...
...
This diff is collapsed.
Click to expand it.
source/core/Engine.cpp
+
2
−
2
View file @
7ab609f1
...
...
@@ -22,8 +22,8 @@ Engine::Engine(ADIOS &adios, std::string engineType, std::string name,
bool
debugMode
,
unsigned
int
nthreads
,
std
::
string
endMessage
)
:
m_MPIComm
{
mpiComm
},
m_EngineType
{
std
::
move
(
engineType
)},
m_Name
{
std
::
move
(
name
)},
m_AccessMode
{
std
::
move
(
accessMode
)},
m_Method
{
method
},
m_ADIOS
(
adios
)
,
m_DebugMode
{
debugMode
},
m_nThreads
{
nthreads
},
m_EndMessage
(
std
::
move
(
endMessage
)
)
m_Method
{
method
},
m_ADIOS
{
adios
}
,
m_DebugMode
{
debugMode
},
m_nThreads
{
nthreads
},
m_EndMessage
{
std
::
move
(
endMessage
)
}
{
if
(
m_DebugMode
==
true
)
{
...
...
This diff is collapsed.
Click to expand it.
source/engine/bp/BPFileWriter.cpp
+
7
−
5
View file @
7ab609f1
...
...
@@ -7,6 +7,7 @@
* Created on: Dec 19, 2016
* Author: wfg
*/
#include
<utility>
#include
"engine/bp/BPFileWriter.h"
#include
"ADIOS.h"
...
...
@@ -19,14 +20,15 @@
namespace
adios
{
BPFileWriter
::
BPFileWriter
(
ADIOS
&
adios
,
const
std
::
string
name
,
const
std
::
string
accessMode
,
MPI_Comm
mpiComm
,
BPFileWriter
::
BPFileWriter
(
ADIOS
&
adios
,
std
::
string
name
,
const
std
::
string
&
accessMode
,
MPI_Comm
mpiComm
,
const
Method
&
method
,
const
IOMode
/*iomode*/
,
const
float
/*timeout_sec*/
,
const
bool
debugMode
,
const
unsigned
int
nthreads
)
:
Engine
(
adios
,
"BPFileWriter"
,
name
,
accessMode
,
mpiComm
,
method
,
debugMode
,
nthreads
,
" BPFileWriter constructor (or call to ADIOS Open).
\n
"
),
m_Buffer
{
capsule
::
STLVector
(
accessMode
,
m_RankMPI
,
m_DebugMode
)},
:
Engine
{
adios
,
"BPFileWriter"
,
std
::
move
(
name
),
accessMode
,
mpiComm
,
method
,
debugMode
,
nthreads
,
" BPFileWriter constructor (or call to ADIOS Open).
\n
"
},
m_Buffer
{
capsule
::
STLVector
{
accessMode
,
m_RankMPI
,
m_DebugMod
}},
m_BP1Aggregator
{
format
::
BP1Aggregator
(
m_MPIComm
,
debugMode
)},
m_MaxBufferSize
{
m_Buffer
.
m_Data
.
max_size
()}
{
...
...
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