Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <mpi.h>
- #include "Coordinate.h"
- #include "Node.h"
- class AStarMPICommunication
- {
- MPI_Datatype dt_coordinate;
- //MPI_Datatype dt_nodeSet;
- MPI_Datatype dt_node;
- public:
- void DefineCoordinateTypeInMPI();
- //void DefineNodeSetTypeInMPI();
- void DefineNodeTypeInMPI();
- void CommunicationWithCoordinateExample(int rank);
- void CommunicationWithNodeExample(int rank);
- void SendCoordinate(int rank, Coordinate coordinate);
- Coordinate ReceiveCoordinate(int rank);
- void SendNode(int rank, Node node);
- Node ReceiveNode(int rank);
- // void BroadcastNodeSet();
- // NodeSet ReceiveNodeSet();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement