NAMD
|
#include <stdio.h>
#include "DataExchanger.h"
#include "ProcessorPrivate.h"
#include "common.h"
#include "Node.h"
#include "CollectionMaster.h"
#include "Output.h"
#include "ScriptTcl.h"
#include "qd.h"
#include "DataExchanger.def.h"
Go to the source code of this file.
Functions | |
CpvDeclare (int, breakScheduler) | |
CpvDeclare (int, inEval) | |
void | packSend (int dst, int dstPart, const char *data, int size, int handler, int code) |
void | sendReplicaDcdInit (int dstPart, ReplicaDcdInitMsg *msg, int msgsize) |
void | sendReplicaDcdData (int dstPart, ReplicaDcdDataMsg *msg, int msgsize) |
void | sendReplicaDcdAck (int dstPart, ReplicaDcdAckMsg *msg) |
void | recvReplicaDcdInit (ReplicaDcdInitMsg *msg) |
void | recvReplicaDcdData (ReplicaDcdDataMsg *msg) |
void | recvReplicaDcdAck (ReplicaDcdAckMsg *msg) |
void | recvData (DataMessage *dmsg) |
void | recvAck (DataMessage *dmsg) |
void | recvBcast (DataMessage *dmsg) |
void | recvRed (DataMessage *dmsg) |
void | recvEvalCommand (DataMessage *dmsg) |
void | recvEvalResult (DataMessage *dmsg) |
void | replica_send (const char *sndbuf, int sendcount, int destPart, int destPE) |
void | replica_recv (DataMessage **precvMsg, int srcPart, int srcPE) |
void | replica_sendRecv (const char *sndbuf, int sendcount, int destPart, int destPE, DataMessage **precvMsg, int srcPart, int srcPE) |
void | replica_eval (const char *cmdbuf, int targPart, int targPE, DataMessage **precvMsg) |
void | replica_barrier () |
void | replica_bcast (char *buf, int count, int root) |
void | replica_min_double (double *dat, int count) |
void | initializeReplicaConverseHandlers () |
Variables | |
static int | recvRedCalledEarly |
CpvDeclare | ( | int | , |
breakScheduler | |||
) |
CpvDeclare | ( | int | , |
inEval | |||
) |
void initializeReplicaConverseHandlers | ( | ) |
Definition at line 252 of file DataExchanger.C.
References recvAck(), recvBcast(), recvData(), recvEvalCommand(), recvEvalResult(), recvRed(), recvReplicaDcdAck(), recvReplicaDcdData(), and recvReplicaDcdInit().
Referenced by ProcessorPrivateInit().
void packSend | ( | int | dst, |
int | dstPart, | ||
const char * | data, | ||
int | size, | ||
int | handler, | ||
int | code | ||
) |
Definition at line 34 of file DataExchanger.C.
References DataMessage::setMessage().
Referenced by replica_send().
void recvAck | ( | DataMessage * | dmsg | ) |
Definition at line 99 of file DataExchanger.C.
References CPROXY_DE, and NAMD_bug().
Referenced by initializeReplicaConverseHandlers().
void recvBcast | ( | DataMessage * | dmsg | ) |
Definition at line 105 of file DataExchanger.C.
References CPROXY_DE, and NAMD_bug().
Referenced by initializeReplicaConverseHandlers().
void recvData | ( | DataMessage * | dmsg | ) |
Definition at line 93 of file DataExchanger.C.
References CPROXY_DE, and NAMD_bug().
Referenced by initializeReplicaConverseHandlers().
void recvEvalCommand | ( | DataMessage * | dmsg | ) |
Definition at line 121 of file DataExchanger.C.
References CPROXY_DE, and NAMD_bug().
Referenced by initializeReplicaConverseHandlers().
void recvEvalResult | ( | DataMessage * | dmsg | ) |
Definition at line 127 of file DataExchanger.C.
References CPROXY_DE, and NAMD_bug().
Referenced by initializeReplicaConverseHandlers().
void recvRed | ( | DataMessage * | dmsg | ) |
Definition at line 111 of file DataExchanger.C.
References CPROXY_DE, and recvRedCalledEarly.
Referenced by initializeReplicaConverseHandlers().
void recvReplicaDcdAck | ( | ReplicaDcdAckMsg * | msg | ) |
Definition at line 87 of file DataExchanger.C.
References CollectionMaster::Object(), and CollectionMaster::unblockPositions().
Referenced by initializeReplicaConverseHandlers().
void recvReplicaDcdData | ( | ReplicaDcdDataMsg * | msg | ) |
Definition at line 82 of file DataExchanger.C.
References Node::Object(), Node::output, and Output::recvReplicaDcdData().
Referenced by initializeReplicaConverseHandlers().
void recvReplicaDcdInit | ( | ReplicaDcdInitMsg * | msg | ) |
Definition at line 77 of file DataExchanger.C.
References Node::Object(), Node::output, and Output::recvReplicaDcdInit().
Referenced by initializeReplicaConverseHandlers().
void replica_barrier | ( | ) |
Definition at line 168 of file DataExchanger.C.
References CPROXY_DE, and recvRedCalledEarly.
Referenced by colvarproxy_namd::replica_comm_barrier(), and ScriptTcl::run().
void replica_bcast | ( | char * | buf, |
int | count, | ||
int | root | ||
) |
Definition at line 175 of file DataExchanger.C.
References DataMessage::data, NAMD_bug(), replica_recv(), replica_send(), and DataMessage::size.
Referenced by replica_min_double().
void replica_eval | ( | const char * | cmdbuf, |
int | targPart, | ||
int | targPE, | ||
DataMessage ** | precvMsg | ||
) |
Definition at line 159 of file DataExchanger.C.
References CPROXY_DE.
void replica_min_double | ( | double * | dat, |
int | count | ||
) |
Definition at line 202 of file DataExchanger.C.
References DataMessage::data, NAMD_bug(), replica_bcast(), replica_recv(), replica_send(), and DataMessage::size.
Referenced by PatchMap::makePatches().
void replica_recv | ( | DataMessage ** | precvMsg, |
int | srcPart, | ||
int | srcPE | ||
) |
Definition at line 144 of file DataExchanger.C.
References CPROXY_DE.
Referenced by replica_bcast(), colvarproxy_namd::replica_comm_recv(), and replica_min_double().
void replica_send | ( | const char * | sndbuf, |
int | sendcount, | ||
int | destPart, | ||
int | destPE | ||
) |
Definition at line 133 of file DataExchanger.C.
References CPROXY_DE, and packSend().
Referenced by replica_bcast(), colvarproxy_namd::replica_comm_send(), and replica_min_double().
void replica_sendRecv | ( | const char * | sndbuf, |
int | sendcount, | ||
int | destPart, | ||
int | destPE, | ||
DataMessage ** | precvMsg, | ||
int | srcPart, | ||
int | srcPE | ||
) |
Definition at line 151 of file DataExchanger.C.
References CPROXY_DE.
void sendReplicaDcdAck | ( | int | dstPart, |
ReplicaDcdAckMsg * | msg | ||
) |
Definition at line 67 of file DataExchanger.C.
References ReplicaDcdAckMsg::core.
Referenced by Output::recvReplicaDcdData(), and Output::recvReplicaDcdInit().
void sendReplicaDcdData | ( | int | dstPart, |
ReplicaDcdDataMsg * | msg, | ||
int | msgsize | ||
) |
Definition at line 56 of file DataExchanger.C.
References CollectionMaster::blockPositions(), ReplicaDcdDataMsg::core, and CollectionMaster::Object().
void sendReplicaDcdInit | ( | int | dstPart, |
ReplicaDcdInitMsg * | msg, | ||
int | msgsize | ||
) |
Definition at line 45 of file DataExchanger.C.
References CollectionMaster::blockPositions(), ReplicaDcdInitMsg::core, and CollectionMaster::Object().
Referenced by Output::replicaDcdInit(), and Output::replicaDcdSelectInit().
|
static |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 27 of file DataExchanger.C.
Referenced by recvRed(), and replica_barrier().