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
bdf08705
Commit
bdf08705
authored
7 years ago
by
Podhorszki, Norbert
Browse files
Options
Downloads
Patches
Plain Diff
writer uses command line config file as well
parent
5fbab031
No related branches found
No related tags found
1 merge request
!326
Refactored heat transfer example. A config file is now command line a…
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/heatTransfer/heat.xml
+1
-1
1 addition, 1 deletion
examples/heatTransfer/heat.xml
examples/heatTransfer/write/IO_adios2.cpp
+2
-10
2 additions, 10 deletions
examples/heatTransfer/write/IO_adios2.cpp
examples/heatTransfer/write/config.xml
+0
-46
0 additions, 46 deletions
examples/heatTransfer/write/config.xml
with
3 additions
and
57 deletions
examples/heatTransfer/heat.xml
+
1
−
1
View file @
bdf08705
...
...
@@ -11,7 +11,7 @@
====================================-->
<io
name=
"writer"
>
<engine
type=
"
BPFile
Writer"
>
<engine
type=
"
ADIOS1
Writer"
>
<!-- for vectorized memory operations, make sure your system
enables threads-->
...
...
This diff is collapsed.
Click to expand it.
examples/heatTransfer/write/IO_adios2.cpp
+
2
−
10
View file @
bdf08705
...
...
@@ -14,13 +14,6 @@
#include
<adios2.h>
#define str_helper(X) #X
#define str(X) str_helper(X)
#ifndef DEFAULT_CONFIG
#define DEFAULT_CONFIG config.xml
#endif
#define DEFAULT_CONFIG_STR str(DEFAULT_CONFIG)
adios2
::
ADIOS
*
ad
=
nullptr
;
adios2
::
Engine
*
bpWriter
=
nullptr
;
adios2
::
Variable
<
double
>
*
varT
=
nullptr
;
...
...
@@ -29,12 +22,11 @@ adios2::Variable<unsigned int> *varGndx = nullptr;
IO
::
IO
(
const
Settings
&
s
,
MPI_Comm
comm
)
{
m_outputfilename
=
s
.
outputfile
+
".bp"
;
ad
=
new
adios2
::
ADIOS
(
std
::
string
(
DEFAULT_CONFIG_STR
),
comm
,
adios2
::
DebugON
);
ad
=
new
adios2
::
ADIOS
(
s
.
configfile
,
comm
,
adios2
::
DebugON
);
// Define method for engine creation
adios2
::
IO
&
bpio
=
ad
->
DeclareIO
(
"
output
"
);
adios2
::
IO
&
bpio
=
ad
->
DeclareIO
(
"
writer
"
);
if
(
!
bpio
.
InConfigFile
())
{
// if not defined by user, we can change the default settings
...
...
This diff is collapsed.
Click to expand it.
examples/heatTransfer/write/config.xml
deleted
100644 → 0
+
0
−
46
View file @
5fbab031
<?xml version="1.0"?>
<!-- Config XML file fo the heatTransfer_write_adios2 executable in .
build/bin from IO_adios2.cpp -->
<adios-config>
<io
name=
"output"
>
<engine
type=
"BPFileWriter"
>
<!-- for vectorized memory operations, make sure your system
enables threads-->
<parameter
key=
"Threads"
value=
"2"
/>
<!-- Microseconds (default), Milliseconds, Seconds,
Minutes, Hours -->
<parameter
key=
"ProfileUnits"
value=
"Microseconds"
/>
<!-- XXKb, XXMb, or XXXGb supported, default=16Kb
(applications might choose an optimal value) -->
<parameter
key=
"InitialBufferSize"
value=
"16Kb"
/>
<!-- XXKb, XXMb, or XXXGb supported, default=Unlimited (until
fails), maximum at each time step
(applications might choose an optimal value) -->
<!-- <parameter key="MaxBufferSize" value="2Gb"/> -->
<!-- exponential growth factor > 1, default = 1.05
1.05 is good for a few large variables, for many small
variables increase the value to 1.5 to 2
(optimal value is application dependent)-->
<!-- <parameter key="BufferGrowthFactor" value="1.05"/> -->
</engine>
<transport
type=
"File"
>
<!-- POSIX, stdio (C FILE*), fstream (C++) -->
<parameter
key=
"Library"
value=
"POSIX"
/>
<!-- For read/write, Microseconds (default), Milliseconds, Seconds,
Minutes, Hours. open/close always in Microseconds -->
<parameter
key=
"ProfileUnits"
value=
"Microseconds"
/>
</transport>
</io>
</adios-config>
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