# | Line 46 | Line 46 | RCorrFunc::RCorrFunc(SimInfo* info, const std::string& | |
---|---|---|
46 | : ParticleTimeCorrFunc(info, filename, sele1, sele2, DataStorage::dslPosition){ | |
47 | ||
48 | setCorrFuncType("RCorrFunc"); | |
49 | < | setOutputName(getPrefix(dumpFilename_) + ".rcf"); |
49 | > | setOutputName(getPrefix(dumpFilename_) + ".rcorr"); |
50 | ||
51 | } | |
52 | ||
# | Line 54 | Line 54 | double RCorrFunc::calcCorrVal(int frame1, int frame2, | |
54 | Vector3d r1 =sd1->getPos(frame1); | |
55 | Vector3d r2 = sd2->getPos(frame2); | |
56 | ||
57 | < | return (r1-r2).lengthSquare(); |
57 | > | return (r2-r1).lengthSquare(); |
58 | } | |
59 | ||
60 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |