Communicate.C File Reference

#include <string.h>
#include <stdlib.h>
#include "Communicate.h"
#include "MStream.h"
#include "charm++.h"

Go to the source code of this file.

Functions

 CkpvStaticDeclare (CmmTable, CsmMessages)
 CkpvStaticDeclare (int, CsmAcks)
static void CsmHandler (void *msg)
static void CsmAckHandler (void *msg)


Function Documentation

CkpvStaticDeclare ( int  ,
CsmAcks   
)

CkpvStaticDeclare ( CmmTable  ,
CsmMessages   
)

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

static void CsmAckHandler ( void *  msg  )  [static]

Definition at line 25 of file Communicate.C.

References NAMD_bug().

Referenced by Communicate::Communicate().

00026 {
00027   if ( CmiMyRank() ) NAMD_bug("Communicate CsmAckHandler on non-rank-zero pe");
00028   CmiFree(msg);
00029   CkpvAccess(CsmAcks) += 1;
00030 }

static void CsmHandler ( void *  msg  )  [static]

Definition at line 16 of file Communicate.C.

References NAMD_bug().

Referenced by Communicate::Communicate().

00017 {
00018   if ( CmiMyRank() ) NAMD_bug("Communicate CsmHandler on non-rank-zero pe");
00019   // get start of user message
00020   int *m = (int *) ((char *)msg+CmiMsgHeaderSizeBytes);
00021   // sending node  & tag act as tags
00022   CmmPut(CkpvAccess(CsmMessages), 2, m, msg);
00023 }


Generated on Wed Nov 22 01:17:17 2017 for NAMD by  doxygen 1.4.7