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
80d6c1af
Commit
80d6c1af
authored
7 years ago
by
Podhorszki, Norbert
Browse files
Options
Downloads
Patches
Plain Diff
Set Variable.m_Value at opening for single value variables
parent
12cb32aa
No related branches found
No related tags found
1 merge request
!323
Heat
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/adios2/helper/adiosXML.cpp
+7
-0
7 additions, 0 deletions
source/adios2/helper/adiosXML.cpp
source/adios2/toolkit/format/bp3/BP3Deserializer.tcc
+1
-0
1 addition, 0 deletions
source/adios2/toolkit/format/bp3/BP3Deserializer.tcc
with
8 additions
and
0 deletions
source/adios2/helper/adiosXML.cpp
+
7
−
0
View file @
80d6c1af
...
...
@@ -164,6 +164,13 @@ void InitXML(const std::string configXML, MPI_Comm mpiComm,
fileContents
=
BroadcastValue
(
fileContents
,
mpiComm
);
if
(
debugMode
&&
fileContents
.
empty
())
{
throw
std
::
invalid_argument
(
"ERROR: config xml file "
+
configXML
+
" is either empty or file couldn't be "
"found, in call to ADIOS constructor
\n
"
);
}
pugi
::
xml_document
doc
;
auto
parse_result
=
doc
.
load_buffer_inplace
(
const_cast
<
char
*>
(
fileContents
.
data
()),
fileContents
.
size
());
...
...
This diff is collapsed.
Click to expand it.
source/adios2/toolkit/format/bp3/BP3Deserializer.tcc
+
1
−
0
View file @
80d6c1af
...
...
@@ -123,6 +123,7 @@ BP3Deserializer::DefineVariableInIO(const ElementIndexHeader &header, IO &io,
{
std::lock_guard<std::mutex> lock(m_Mutex);
variable = &io.DefineVariable<T>(variableName);
variable->m_Value = characteristics.Statistics.Value;
variable->m_Min = characteristics.Statistics.Value;
variable->m_Max = characteristics.Statistics.Value;
}
...
...
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