NAMD
Functions
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 ( CmmTable  ,
CsmMessages   
)

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

CkpvStaticDeclare ( int  ,
CsmAcks   
)
static void CsmAckHandler ( void msg)
static

Definition at line 25 of file Communicate.C.

References NAMD_bug().

Referenced by Communicate::Communicate().

26 {
27  if ( CmiMyRank() ) NAMD_bug("Communicate CsmAckHandler on non-rank-zero pe");
28  CmiFree(msg);
29  CkpvAccess(CsmAcks) += 1;
30 }
void NAMD_bug(const char *err_msg)
Definition: common.C:129
static void CsmHandler ( void msg)
static

Definition at line 16 of file Communicate.C.

References NAMD_bug().

Referenced by Communicate::Communicate().

17 {
18  if ( CmiMyRank() ) NAMD_bug("Communicate CsmHandler on non-rank-zero pe");
19  // get start of user message
20  int *m = (int *) ((char *)msg+CmiMsgHeaderSizeBytes);
21  // sending node & tag act as tags
22  CmmPut(CkpvAccess(CsmMessages), 2, m, msg);
23 }
void NAMD_bug(const char *err_msg)
Definition: common.C:129