fix a compilation error for non-smp
[charm.git] / src / arch / mpi / machine.c
index e7f14237d7fb6ea06fd702499ea9ac9c15625882..b42e2acbaed3d9d6f31b18ad5d0a0ce78b6380eb 100644 (file)
@@ -829,7 +829,7 @@ static void AdvanceCommunicationForMPI() {
 static void MachinePostNonLocalForMPI() {
 #if !CMK_SMP
     if (no_outstanding_sends) {
-        while (MsgQueueLen>0) {
+        while (CpvAccess(MsgQueueLen)>0) {
             AdvanceCommunicationForMPI();
         }
     }