Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Jul 21, 2023
1 parent df2b388 commit 58375ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/flamegpu/simulation/detail/AbstractSimRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class AbstractSimRunner {
ErrorDetail t;
constexpr int count = 4;
constexpr int array_of_blocklengths[count] = {1, 1, 1, sizeof(ErrorDetail::exception_string)};
constexpr MPI_Aint array_of_displacements[count] = { static_cast<MPI_Aint>(&t.run_id - &t),
static_cast<MPI_Aint>(&t.device_id - &t),
static_cast<MPI_Aint>(&t.runner_id - &t),
static_cast<MPI_Aint>(&t.exception_string - &t) };
constexpr MPI_Aint array_of_displacements[count] = { reinterpret_cast<MPI_Aint>(&t.run_id - &t),
reinterpret_cast<MPI_Aint>(&t.device_id - &t),
reinterpret_cast<MPI_Aint>(&t.runner_id - &t),
reinterpret_cast<MPI_Aint>(&t.exception_string - &t) };
constexpr MPI_Datatype array_of_types[count] = {MPI_UNSIGNED, MPI_UNSIGNED, MPI_UNSIGNED, MPI_CHAR};
MPI_Type_create_struct(count, array_of_blocklengths, array_of_displacements, array_of_types, &rtn);
}
Expand Down

0 comments on commit 58375ad

Please sign in to comment.