Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Sep 29, 2022
1 parent 0a52ced commit f38de58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/adios2/engine/staging-common/TestOnDemandWrite.cpp
Expand Up @@ -18,7 +18,7 @@ std::vector<float> create_random_data(int n)
{
std::vector<float> v(n);

std::generate(begin(v), end(v), []() { return rand() % 100; });
std::generate(begin(v), end(v), []() { return ((float)(rand() % 100)); });
return v;
}

Expand Down Expand Up @@ -76,7 +76,7 @@ TEST_F(SstOnDemandWriteTest, ADIOS2SstOnDemandWrite)
sstWriter.BeginStep();
for (int v = 0; v < variablesSize; ++v)
{
myFloats[v * Nx] = v + timeStep * variablesSize;
myFloats[v * Nx] = (float)v + timeStep * variablesSize;
auto start_put = std::chrono::steady_clock::now();
sstWriter.Put<float>(sstFloats[v], myFloats.data() + v * Nx);
auto end_put = std::chrono::steady_clock::now();
Expand Down

0 comments on commit f38de58

Please sign in to comment.