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

replace relay mpi C99 allocs with c++ style allocs #29

Closed
cyrush opened this issue Aug 12, 2016 · 0 comments · Fixed by #62
Closed

replace relay mpi C99 allocs with c++ style allocs #29

cyrush opened this issue Aug 12, 2016 · 0 comments · Fixed by #62
Labels
Milestone

Comments

@cyrush
Copy link
Member

cyrush commented Aug 12, 2016

    int intArray[2];
    MPI_Status status;

    int mpi_error = MPI_Recv(intArray, 2, MPI_INT, src, tag, comm, &status);
    CONDUIT_CHECK_MPI_ERROR(mpi_error);

    int schema_len = intArray[0];
    int data_len = intArray[1];

    char schema[schema_len + 1];
    char data[data_len + 1];

the above allocs for schema and data are working -- but they aren't typical C++ allocs. We should replace them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant