Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test hpdf5 fix on 2.10 #4177

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions examples/hello/hdf5SubFile/hdf5SubFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <iostream> //std::cout
#include <mpi.h>
#include <stdexcept> //std::invalid_argument std::exception
#include <unistd.h>
#include <vector>

void writeMe(adios2::IO &hdf5IO, int rank, int size, const char *testFileName)
Expand All @@ -34,8 +33,8 @@ void writeMe(adios2::IO &hdf5IO, int rank, int size, const char *testFileName)
const std::size_t Nx = 1024;
const std::size_t Ny = 1024 * scale;

std::vector<float> myFloats(Nx * Ny, 0.1 * rank);
std::vector<int> myInts(Nx * Ny, 1 + rank);
std::vector<float> myFloats(Nx * Ny, 0.1f * rank);
std::vector<int> myInts(Nx * Ny, (int)(1 + rank));

hdf5IO.SetParameter("IdleH5Writer",
"true"); // set this if not all ranks are writting
Expand Down Expand Up @@ -101,7 +100,7 @@ void ReadVarData(adios2::IO h5IO, adios2::Engine &h5Reader, const std::string &n

if (var)
{
int nDims = var.Shape().size();
int nDims = (int)var.Shape().size();
size_t totalSize = 1;
for (int i = 0; i < nDims; i++)
{
Expand Down
Loading