Ignore:
Timestamp:
Dec 19, 2009, 7:31:34 PM (16 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Smaller fixes.

  • analysis_correlation.cpp: Info objects created at start of each function for debugging.
  • ParseCommandLineOptions(): case 'I' dissection added, some stuff was unexplained
  • molecule::CenterOrigin() - starting at start not next now, which left out first!

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analysis_correlation.cpp

    r16807e rf78203  
    1010#include "analysis_correlation.hpp"
    1111#include "element.hpp"
     12#include "info.hpp"
    1213#include "log.hpp"
    1314#include "molecule.hpp"
     
    2829PairCorrelationMap *PairCorrelation(MoleculeListClass * const &molecules, const element * const type1, const element * const type2 )
    2930{
     31  Info FunctionInfo(__func__);
    3032  PairCorrelationMap *outmap = NULL;
    3133  double distance = 0.;
     
    7779PairCorrelationMap *PeriodicPairCorrelation(MoleculeListClass * const &molecules, const element * const type1, const element * const type2, const int ranges[NDIM] )
    7880{
     81  Info FunctionInfo(__func__);
    7982  PairCorrelationMap *outmap = NULL;
    8083  double distance = 0.;
     
    154157CorrelationToPointMap *CorrelationToPoint(MoleculeListClass * const &molecules, const element * const type, const Vector *point )
    155158{
     159  Info FunctionInfo(__func__);
    156160  CorrelationToPointMap *outmap = NULL;
    157161  double distance = 0.;
     
    190194CorrelationToPointMap *PeriodicCorrelationToPoint(MoleculeListClass * const &molecules, const element * const type, const Vector *point, const int ranges[NDIM] )
    191195{
     196  Info FunctionInfo(__func__);
    192197  CorrelationToPointMap *outmap = NULL;
    193198  double distance = 0.;
     
    243248CorrelationToSurfaceMap *CorrelationToSurface(MoleculeListClass * const &molecules, const element * const type, const Tesselation * const Surface, const LinkedCell *LC )
    244249{
     250  Info FunctionInfo(__func__);
    245251  CorrelationToSurfaceMap *outmap = NULL;
    246252  double distance = 0;
     
    288294CorrelationToSurfaceMap *PeriodicCorrelationToSurface(MoleculeListClass * const &molecules, const element * const type, const Tesselation * const Surface, const LinkedCell *LC, const int ranges[NDIM] )
    289295{
     296  Info FunctionInfo(__func__);
    290297  CorrelationToSurfaceMap *outmap = NULL;
    291298  double distance = 0;
     
    342349double GetBin ( const double value, const double BinWidth, const double BinStart )
    343350{
     351  Info FunctionInfo(__func__);
    344352  double bin =(double) (floor((value - BinStart)/BinWidth));
    345353  return (bin*BinWidth+BinStart);
     
    353361void OutputCorrelation( ofstream * const file, const BinPairMap * const map )
    354362{
     363  Info FunctionInfo(__func__);
    355364  *file << "# BinStart\tCount" << endl;
    356365  for (BinPairMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
     
    365374void OutputPairCorrelation( ofstream * const file, const PairCorrelationMap * const map )
    366375{
     376  Info FunctionInfo(__func__);
    367377  *file << "# BinStart\tAtom1\tAtom2" << endl;
    368378  for (PairCorrelationMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
     
    377387void OutputCorrelationToPoint( ofstream * const file, const CorrelationToPointMap * const map )
    378388{
     389  Info FunctionInfo(__func__);
    379390  *file << "# BinStart\tAtom::x[i]-point.x[i]" << endl;
    380391  for (CorrelationToPointMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
     
    392403void OutputCorrelationToSurface( ofstream * const file, const CorrelationToSurfaceMap * const map )
    393404{
     405  Info FunctionInfo(__func__);
    394406  *file << "# BinStart\tTriangle" << endl;
    395407  for (CorrelationToSurfaceMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
Note: See TracChangeset for help on using the changeset viewer.