Skip to content
Snippets Groups Projects
Commit b65b35fe authored by pnorbert's avatar pnorbert Committed by GitHub
Browse files

Merge pull request #183 from pnorbert/fix-example-setparameters

fix IO::SetParameters() calls in examples to build the release branch
parents 7caff689 2b0907be
No related branches found
No related tags found
1 merge request!189Memory
...@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) ...@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
bpReaderSettings.SetEngine( bpReaderSettings.SetEngine(
"ADIOS1Reader"); // BP is the default engine "ADIOS1Reader"); // BP is the default engine
// see only one step at a time // see only one step at a time
bpReaderSettings.SetParameters({"OpenAsFile=yes"}); bpReaderSettings.SetParameters({{"OpenAsFile", "yes"}});
} }
// Create engine smart pointer due to polymorphism, // Create engine smart pointer due to polymorphism,
......
...@@ -78,7 +78,7 @@ int main(int argc, char *argv[]) ...@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
#endif #endif
); );
// Passing parameters to the engine // Passing parameters to the engine
bpWriterSettings.SetParameters({"have_metadata_file=yes"}); bpWriterSettings.SetParameters({{"have_metadata_file", "yes"}});
// number of aggregators // number of aggregators
// bpWriterSettings.SetParameters("Aggregation", (nproc + 1) / 2); // bpWriterSettings.SetParameters("Aggregation", (nproc + 1) / 2);
} }
......
...@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) ...@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
// if not defined by user, we can change the default settings // if not defined by user, we can change the default settings
// BPFileWriter is the default engine // BPFileWriter is the default engine
bpReaderIO.SetEngine("ADIOS1Reader"); bpReaderIO.SetEngine("ADIOS1Reader");
bpReaderIO.SetParameters({"num_threads=2"}); bpReaderIO.SetParameters({{"num_threads", "2"}});
// ISO-POSIX file is the default transport // ISO-POSIX file is the default transport
// Passing parameters to the transport // Passing parameters to the transport
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment