ProcessorPrivate.C

Go to the documentation of this file.
00001 
00007 #include "ProcessorPrivate.h"
00008 #include "Debug.h"
00009 #include "InfoStream.h"
00010 
00011 /*
00012  * Variable Definitions
00013  */
00014 
00015 // Instance Variables that maintain singletonness of classes
00016 
00017 CkpvDeclare(AtomMap*, AtomMap_instance);
00018 CkpvDeclare(BroadcastMgr*, BroadcastMgr_instance);
00019 CkpvDeclare(CollectionMaster*, CollectionMaster_instance);
00020 CkpvDeclare(CollectionMgr*, CollectionMgr_instance);
00021 CkpvDeclare(LdbCoordinator*, LdbCoordinator_instance);
00022 CkpvDeclare(Node*, Node_instance);
00023 CkpvDeclare(PatchMap*, PatchMap_instance);
00024 CkpvDeclare(PatchMgr*, PatchMgr_instance);
00025 CkpvDeclare(ProxyMgr*, ProxyMgr_instance);
00026 CkpvDeclare(ReductionMgr*, ReductionMgr_instance);
00027 
00028 #ifdef PROCTRACE_DEBUG
00029 CkpvDeclare(DebugFileTrace*, DebugFileTrace_instance);
00030 #endif
00031 
00032 // Other static variables
00033 
00034 CkpvDeclare(PatchMgr*, PatchMap_patchMgr);
00035 CkpvDeclare(BOCgroup, BOCclass_group);
00036 CkpvDeclare(Communicate*, comm);
00037 CkpvDeclare(Sync*, Sync_instance);
00038 CkpvDeclare(infostream, iout_obj);
00039 
00040 //handlers for replica communication
00041 CkpvDeclare(int, recv_data_idx);
00042 CkpvDeclare(int, recv_ack_idx);
00043 CkpvDeclare(int, recv_bcast_idx);
00044 CkpvDeclare(int, recv_red_idx);
00045 CkpvDeclare(int, recv_eval_command_idx);
00046 CkpvDeclare(int, recv_eval_result_idx);
00047 CkpvDeclare(int, recv_replica_dcd_init_idx);
00048 CkpvDeclare(int, recv_replica_dcd_data_idx);
00049 CkpvDeclare(int, recv_replica_dcd_ack_idx);
00050 
00051 extern void initializeReplicaConverseHandlers();
00052 
00053 /*
00054  * Initialization Function to be called on every processor
00055  */
00056 
00057 void ProcessorPrivateInit(void)
00058 {
00059   CkpvInitialize(AtomMap*, AtomMap_instance);
00060   CkpvAccess(AtomMap_instance) = 0;
00061   CkpvInitialize(BroadcastMgr*, BroadcastMgr_instance);
00062   CkpvAccess(BroadcastMgr_instance) = 0;
00063   CkpvInitialize(CollectionMaster*, CollectionMaster_instance);
00064   CkpvAccess(CollectionMaster_instance) = 0;
00065   CkpvInitialize(CollectionMgr*, CollectionMgr_instance);
00066   CkpvAccess(CollectionMgr_instance) = 0;
00067   CkpvInitialize(LdbCoordinator*, LdbCoordinator_instance);
00068   CkpvAccess(LdbCoordinator_instance) = 0;
00069   CkpvInitialize(Node*, Node_instance);
00070   CkpvAccess(Node_instance) = 0;
00071 
00072   CkpvInitialize(PatchMap*, PatchMap_instance);
00073   CkpvAccess(PatchMap_instance) = 0;
00074   CkpvInitialize(PatchMgr*, PatchMgr_instance);
00075   CkpvAccess(PatchMgr_instance) = 0;
00076   CkpvInitialize(ProxyMgr*, ProxyMgr_instance);
00077   CkpvAccess(ProxyMgr_instance) = 0;
00078   CkpvInitialize(ReductionMgr*, ReductionMgr_instance);
00079   CkpvAccess(ReductionMgr_instance) = 0;
00080   CkpvInitialize(PatchMgr*, PatchMap_patchMgr);
00081   CkpvAccess(PatchMap_patchMgr) = 0;
00082   CkpvInitialize(BOCgroup, BOCclass_group);
00083   CkpvAccess(BOCclass_group).dataExchanger.setZero();
00084   CkpvInitialize(Communicate*, comm);
00085   CkpvAccess(comm) = 0;
00086   CkpvInitialize(Sync*, Sync_instance);
00087   CkpvAccess(Sync_instance) = 0;
00088   CkpvInitialize(infostream, iout_obj);
00089 
00090   initializeReplicaConverseHandlers();
00091 
00092 #ifdef PROCTRACE_DEBUG
00093   CkpvInitialize(DebugFileTrace*, DebugFileTrace_instance);
00094   CkpvAccess(DebugFileTrace_instance) = 0;
00095 #endif
00096 
00097 }
00098 

Generated on Sat Sep 23 01:17:15 2017 for NAMD by  doxygen 1.4.7