From 927c62d8a3181be9ddcce8146b8c8cf28e61e10b Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 10 Apr 2015 05:21:48 +0200 Subject: [PATCH] Patch for comms none nocompile --- Grid_communicator_fake.cc | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/Grid_communicator_fake.cc b/Grid_communicator_fake.cc index 83d5475e..2b94ea4b 100644 --- a/Grid_communicator_fake.cc +++ b/Grid_communicator_fake.cc @@ -14,20 +14,43 @@ CartesianCommunicator::CartesianCommunicator(std::vector &processors) for(int d=0;d<_ndimension;d++) _processor_coor[d] = 0; } -void CartesianCommunicator::GlobalSumF(float &){} -void CartesianCommunicator::GlobalSumFVector(float *,int N){} -void CartesianCommunicator::GlobalSumF(double &){} -void CartesianCommunicator::GlobalSumFVector(double *,int N){} +void CartesianCommunicator::GlobalSum(float &){} +void CartesianCommunicator::GlobalSumVector(float *,int N){} +void CartesianCommunicator::GlobalSum(double &){} +void CartesianCommunicator::GlobalSumVector(double *,int N){} // Basic Halo comms primitive void CartesianCommunicator::SendToRecvFrom(void *xmit, - std::vector to_coordinate, - void *recv, - std::vector from_coordinate, - int bytes) + int dest, + void *recv, + int from, + int bytes) { exit(-1); } +void CartesianCommunicator::Barrier(void) +{ +} + +void CartesianCommunicator::Broadcast(int root,void* data, int bytes) +{ +} + + +void CartesianCommunicator::ShiftedRanks(int dim,int shift,int &source,int &dest) +{ + source =1; + dest=1; +} +int CartesianCommunicator::RankFromProcessorCoor(std::vector &coor) +{ + return 1; +} +void CartesianCommunicator::ProcessorCoorFromRank(int rank, std::vector &coor) +{ +} + + }