Ignore:
Timestamp:
Feb 21, 2010, 1:34:41 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
b1d8ab5
Parents:
1074cb
Message:

Filling has a MaxDistance, somes changes to the Correlation Analysis.

Correlation:

  • OutputCorrelation() have setprecision(8), as irregularities appeared in the output files with regard to the number of digits.
  • ParseCommandLineOptions() for case 'C' now needs BinStart and BinEnd. However, may be set to 0,0 (search for yourself), or (0,-1) (start at 0, but search end for yourself).
  • BUGFIX: argument index of element parameter was wrong from the change [E/P/S].

Filling:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analysis_correlation.cpp

    r1074cb r850e50  
    372372  *file << "BinStart\tCount" << endl;
    373373  for (BinPairMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    374     *file << runner->first << "\t" << runner->second << endl;
     374    *file << setprecision(8) << runner->first << "\t" << runner->second << endl;
    375375  }
    376376};
     
    385385  *file << "BinStart\tAtom1\tAtom2" << endl;
    386386  for (PairCorrelationMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    387     *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
     387    *file << setprecision(8) << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
    388388  }
    389389};
     
    400400    *file << runner->first;
    401401    for (int i=0;i<NDIM;i++)
    402       *file << "\t" << (runner->second.first->node->x[i] - runner->second.second->x[i]);
     402      *file << "\t" << setprecision(8) << (runner->second.first->node->x[i] - runner->second.second->x[i]);
    403403    *file << endl;
    404404  }
     
    414414  *file << "BinStart\tTriangle" << endl;
    415415  for (CorrelationToSurfaceMap::const_iterator runner = map->begin(); runner != map->end(); ++runner) {
    416     *file << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
    417   }
    418 };
    419 
     416    *file << setprecision(8) << runner->first << "\t" << *(runner->second.first) << "\t" << *(runner->second.second) << endl;
     417  }
     418};
     419
Note: See TracChangeset for help on using the changeset viewer.