#include <AtomsDisInfo.h>
Public Types | |
| enum | { ATOMDISNUM = 500 } |
Public Member Functions | |
| AtomsDisInfo () | |
| AtomsDisInfo (CkMigrateMessage *m) | |
| ~AtomsDisInfo () | |
| void | recvStaticInfo (AtomStaticInfoMsg *msg) |
| void | recvAtomsCoor (AtomsCoorMsg *msg) |
| void | recvAtomsForces (AtomsForcesMsg *msg) |
Static Public Member Functions | |
| int | getAtomArrayIndex (int atomId) |
Public Attributes | |
| int | atomsCnt |
| Atom * | disAtoms |
|
|
Definition at line 29 of file AtomsDisInfo.h. 00029 { ATOMDISNUM = 500 };
|
|
|
Definition at line 54 of file AtomsDisInfo.h. References Atom, and disAtoms. 00054 {
00055 //initialize the atoms' static info array/force array/coordinates array
00056 disAtoms = new Atom[ATOMDISNUM];
00057 }
|
|
|
Definition at line 59 of file AtomsDisInfo.h. 00059 {}
|
|
|
Definition at line 61 of file AtomsDisInfo.h. 00061 {
00062 //free allocated memory for static info/force array/coor array
00063 delete disAtoms;
00064 }
|
|
|
Definition at line 35 of file AtomsDisInfo.h. 00035 {
00036 if(atomId<0){
00037 return -1;
00038 }
00039
00040 return atomId/ATOMDISNUM;
00041 }
|
|
|
Definition at line 12 of file AtomsDisInfo.C. 00012 {
00013 }
|
|
|
Definition at line 15 of file AtomsDisInfo.C. 00015 {
00016 }
|
|
|
Definition at line 3 of file AtomsDisInfo.C. References AtomStaticInfoMsg::actualNumAtoms, Atom, AtomStaticInfoMsg::atoms, atomsCnt, and disAtoms. 00003 {
00004 atomsCnt = msg->actualNumAtoms;
00005 Atom *msgAtoms = msg->atoms;
00006 for(int i=0; i<atomsCnt; i++){
00007 disAtoms[i] = msgAtoms[i];
00008 }
00009 delete msg;
00010 }
|
|
|
Definition at line 46 of file AtomsDisInfo.h. Referenced by recvStaticInfo(). |
|
|
Definition at line 47 of file AtomsDisInfo.h. Referenced by AtomsDisInfo(), and recvStaticInfo(). |
1.3.9.1