848 |
|
void addParticlePot(const RealType& particlePot, int snapshotNo) { |
849 |
|
((snapshotMan_->getSnapshot(snapshotNo))->*storage_).particlePot[localIndex_] += particlePot; |
850 |
|
} |
851 |
– |
|
852 |
– |
|
853 |
– |
/** |
854 |
– |
* Returns the previous z-angle of this stuntDouble |
855 |
– |
* @return the z-angle of this stuntDouble |
856 |
– |
*/ |
857 |
– |
RealType getPrevZangle() { |
858 |
– |
return ((snapshotMan_->getPrevSnapshot())->*storage_).zAngle[localIndex_]; |
859 |
– |
} |
860 |
– |
|
861 |
– |
/** |
862 |
– |
* Returns the current z-angle of this stuntDouble |
863 |
– |
* @return the z-angle of this stuntDouble |
864 |
– |
*/ |
865 |
– |
RealType getZangle() { |
866 |
– |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).zAngle[localIndex_]; |
867 |
– |
} |
868 |
– |
|
869 |
– |
/** |
870 |
– |
* Returns the z-angle of this stuntDouble in specified snapshot |
871 |
– |
* @return the z-angle of this stuntDouble |
872 |
– |
* @param snapshotNo |
873 |
– |
*/ |
874 |
– |
RealType getZangle(int snapshotNo) { |
875 |
– |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).zAngle[localIndex_]; |
876 |
– |
} |
851 |
|
|
852 |
|
/** |
879 |
– |
* Sets the previous z-angle of this stuntDouble |
880 |
– |
* @param angle new z-angle |
881 |
– |
* @see #getZangle |
882 |
– |
*/ |
883 |
– |
void setPrevZangle(RealType angle) { |
884 |
– |
((snapshotMan_->getPrevSnapshot())->*storage_).zAngle[localIndex_] = angle; |
885 |
– |
} |
886 |
– |
|
887 |
– |
/** |
888 |
– |
* Sets the current z-angle of this stuntDouble |
889 |
– |
* @param angle new z-angle |
890 |
– |
*/ |
891 |
– |
void setZangle(RealType angle) { |
892 |
– |
((snapshotMan_->getCurrentSnapshot())->*storage_).zAngle[localIndex_] = angle; |
893 |
– |
} |
894 |
– |
|
895 |
– |
/** |
896 |
– |
* Sets the z-angle of this stuntDouble in specified snapshot |
897 |
– |
* @param angle z-angle to be set |
898 |
– |
* @param snapshotNo |
899 |
– |
* @see #getZangle |
900 |
– |
*/ |
901 |
– |
void setZangle(RealType angle, int snapshotNo) { |
902 |
– |
((snapshotMan_->getSnapshot(snapshotNo))->*storage_).zAngle[localIndex_] = angle; |
903 |
– |
} |
904 |
– |
|
905 |
– |
/** |
906 |
– |
* Adds z-angle into the previous z-angle of this stuntDouble |
907 |
– |
* @param angle new z-angle |
908 |
– |
* @see #getZangle |
909 |
– |
*/ |
910 |
– |
void addPrevZangle(RealType angle) { |
911 |
– |
((snapshotMan_->getPrevSnapshot())->*storage_).zAngle[localIndex_] += angle; |
912 |
– |
} |
913 |
– |
|
914 |
– |
/** |
915 |
– |
* Adds z-angle into the current z-angle of this stuntDouble |
916 |
– |
* @param angle new z-angle |
917 |
– |
*/ |
918 |
– |
void addZangle(RealType angle) { |
919 |
– |
((snapshotMan_->getCurrentSnapshot())->*storage_).zAngle[localIndex_] += angle; |
920 |
– |
} |
921 |
– |
|
922 |
– |
/** |
923 |
– |
* Adds z-angle into the z-angle of this stuntDouble in specified snapshot |
924 |
– |
* @param angle z-angle to be add |
925 |
– |
* @param snapshotNo |
926 |
– |
* @see #getZangle |
927 |
– |
*/ |
928 |
– |
void addZangle(RealType angle, int snapshotNo) { |
929 |
– |
((snapshotMan_->getSnapshot(snapshotNo))->*storage_).zAngle[localIndex_] += angle; |
930 |
– |
} |
931 |
– |
|
932 |
– |
|
933 |
– |
/** |
853 |
|
* Returns the previous fluctuating charge of this stuntDouble |
854 |
|
* @return the fluctuating charge of this stuntDouble |
855 |
|
*/ |