Changeset f78203 for molecuilder/src/analysis_correlation.cpp
- Timestamp:
- Dec 19, 2009, 7:31:34 PM (16 years ago)
- Children:
- dd3a80, ff4611
- Parents:
- 16807e
- git-author:
- Frederik Heber <heber@…> (12/19/09 19:29:02)
- git-committer:
- Frederik Heber <heber@…> (12/19/09 19:31:34)
- File:
-
- 1 edited
-
molecuilder/src/analysis_correlation.cpp (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/analysis_correlation.cpp
r16807e rf78203 10 10 #include "analysis_correlation.hpp" 11 11 #include "element.hpp" 12 #include "info.hpp" 12 13 #include "log.hpp" 13 14 #include "molecule.hpp" … … 28 29 PairCorrelationMap *PairCorrelation(MoleculeListClass * const &molecules, const element * const type1, const element * const type2 ) 29 30 { 31 Info FunctionInfo(__func__); 30 32 PairCorrelationMap *outmap = NULL; 31 33 double distance = 0.; … … 77 79 PairCorrelationMap *PeriodicPairCorrelation(MoleculeListClass * const &molecules, const element * const type1, const element * const type2, const int ranges[NDIM] ) 78 80 { 81 Info FunctionInfo(__func__); 79 82 PairCorrelationMap *outmap = NULL; 80 83 double distance = 0.; … … 154 157 CorrelationToPointMap *CorrelationToPoint(MoleculeListClass * const &molecules, const element * const type, const Vector *point ) 155 158 { 159 Info FunctionInfo(__func__); 156 160 CorrelationToPointMap *outmap = NULL; 157 161 double distance = 0.; … … 190 194 CorrelationToPointMap *PeriodicCorrelationToPoint(MoleculeListClass * const &molecules, const element * const type, const Vector *point, const int ranges[NDIM] ) 191 195 { 196 Info FunctionInfo(__func__); 192 197 CorrelationToPointMap *outmap = NULL; 193 198 double distance = 0.; … … 243 248 CorrelationToSurfaceMap *CorrelationToSurface(MoleculeListClass * const &molecules, const element * const type, const Tesselation * const Surface, const LinkedCell *LC ) 244 249 { 250 Info FunctionInfo(__func__); 245 251 CorrelationToSurfaceMap *outmap = NULL; 246 252 double distance = 0; … … 288 294 CorrelationToSurfaceMap *PeriodicCorrelationToSurface(MoleculeListClass * const &molecules, const element * const type, const Tesselation * const Surface, const LinkedCell *LC, const int ranges[NDIM] ) 289 295 { 296 Info FunctionInfo(__func__); 290 297 CorrelationToSurfaceMap *outmap = NULL; 291 298 double distance = 0; … … 342 349 double GetBin ( const double value, const double BinWidth, const double BinStart ) 343 350 { 351 Info FunctionInfo(__func__); 344 352 double bin =(double) (floor((value - BinStart)/BinWidth)); 345 353 return (bin*BinWidth+BinStart); … … 353 361 void OutputCorrelation( ofstream * const file, const BinPairMap * const map ) 354 362 { 363 Info FunctionInfo(__func__); 355 364 *file << "# BinStart\tCount" << endl; 356 365 for (BinPairMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { … … 365 374 void OutputPairCorrelation( ofstream * const file, const PairCorrelationMap * const map ) 366 375 { 376 Info FunctionInfo(__func__); 367 377 *file << "# BinStart\tAtom1\tAtom2" << endl; 368 378 for (PairCorrelationMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { … … 377 387 void OutputCorrelationToPoint( ofstream * const file, const CorrelationToPointMap * const map ) 378 388 { 389 Info FunctionInfo(__func__); 379 390 *file << "# BinStart\tAtom::x[i]-point.x[i]" << endl; 380 391 for (CorrelationToPointMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) { … … 392 403 void OutputCorrelationToSurface( ofstream * const file, const CorrelationToSurfaceMap * const map ) 393 404 { 405 Info FunctionInfo(__func__); 394 406 *file << "# BinStart\tTriangle" << endl; 395 407 for (CorrelationToSurfaceMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
Note:
See TracChangeset
for help on using the changeset viewer.
