Skip to content

Commit

Permalink
modified vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Sep 17, 2024
1 parent bd8412c commit 4f760ff
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/tests/c_api/test_join_sail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,17 @@ int main(int argc, char** argv) {
jsoncons::json output_json = jsoncons::json::array();

// Send P1's header to P2
std::vector<int> js1_header;
std::vector<int> js1_header_toSend;
for (int i = 0; i<COLS1; i++){
long long curr_header = js1_header_json[i].as<long long >();
long long curr_header = js1_header_json[i].as<long long>();
std::cout <<curr_header;
js1_header.push_back(curr_header);
}
MPI_Send(js1_header.data(), js1_header.size(), MPI_LONG_LONG, 1, HEADER_TAG, MPI_COMM_WORLD);
MPI_Send(js1_header_toSend.data(), js1_header_toSend.size(), MPI_LONG_LONG, 1, HEADER_TAG, MPI_COMM_WORLD);

for(size_t i = 0; i<js1_header.size(); i++){
js1_header[i] = decodeIntToString(js1_header[i]);
std::vector<std::string> js1_header;
for(size_t i = 0; i<js1_header_toSend.size(); i++){
js1_header.push_back(decodeIntToString(js1_header_toSend[i]));
}

// Receive P2's header, except key col
Expand Down

0 comments on commit 4f760ff

Please sign in to comment.