Skip to content

Commit 2e0ecb4

Browse files
committed
Resolve some FIXME comments
1 parent 25454bb commit 2e0ecb4

24 files changed

+26
-30
lines changed

src/Action_MakeStructure.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Action_MakeStructure : public Action {
2020
SS_TYPE(double ph,double ps,double ph2,double ps2,int t,std::string const& n) :
2121
phi(ph), psi(ps), phi2(ph2), psi2(ps2), isTurn(t), type_arg(n) {}
2222
bool empty() { return (isTurn == -1); }
23-
double phi, psi, phi2, psi2; // Angle(s) FIXME: Should this be an array?
23+
double phi, psi, phi2, psi2; // Angle(s) TODO: Should this be an array?
2424
int isTurn; // 0=phi/psi, 1=Turn (phi/psi/phi2/psi2), 2=Single Dihedral(phi)
2525
std::string type_arg;
2626
};

src/Action_OrderParameter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Action_OrderParameter : public Action {
4141
AtomMask tailend_mask_;
4242
AtomMask unsat_mask_;
4343

44-
// FIXME:
4544
// std::vector<std::pair<AtomMask, bool> > masks_;
4645
std::vector<AtomMask> masks_;
4746
std::vector<std::vector<int> > dbonds_;

src/Analysis_Spline.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "Constants.h" // SMALL
44

55
Analysis_Spline::Analysis_Spline() :
6-
outfile_(0),
76
meshsize_(0),
87
meshmin_(0.0),
98
meshmax_(0.0),
@@ -21,7 +20,7 @@ void Analysis_Spline::Help() const {
2120
Analysis::RetType Analysis_Spline::Setup(ArgList& analyzeArgs, AnalysisSetup& setup, int debugIn)
2221
{
2322
std::string setname = analyzeArgs.GetStringKey("name");
24-
outfile_ = setup.DFL().AddDataFile(analyzeArgs.GetStringKey("out"), analyzeArgs);
23+
DataFile* outfile = setup.DFL().AddDataFile(analyzeArgs.GetStringKey("out"), analyzeArgs);
2524
meshsize_ = analyzeArgs.getKeyInt("meshsize", 0);
2625
meshfactor_ = -1.0;
2726
if (meshsize_ < 3) {
@@ -66,7 +65,7 @@ Analysis::RetType Analysis_Spline::Setup(ArgList& analyzeArgs, AnalysisSetup& se
6665
ds->SetLegend( "Spline(" + (*dsIn)->Meta().Legend() + ")" );
6766
// TODO: Set individually based on input_dsets_
6867
ds->SetDim(Dimension::X, Xdim);
69-
if (outfile_ != 0) outfile_->AddDataSet( ds );
68+
if (outfile != 0) outfile->AddDataSet( ds );
7069
output_dsets_.push_back( (DataSet_Mesh*)ds );
7170
}
7271

@@ -83,10 +82,10 @@ Analysis::RetType Analysis_Spline::Setup(ArgList& analyzeArgs, AnalysisSetup& se
8382
mprintf(" Mesh max= %f\n", meshmax_);
8483
else
8584
mprintf(" Mesh max will be input set max.\n");
86-
if (outfile_ != 0) {
85+
if (outfile != 0) {
8786
if (!setname.empty())
8887
mprintf("\tOutput set name: %s\n", setname.c_str());
89-
mprintf("\tOutfile name: %s\n", outfile_->DataFilename().base());
88+
mprintf("\tOutfile name: %s\n", outfile->DataFilename().base());
9089
}
9190
//for (Array1D::const_iterator set = input_dsets_.begin(); set != input_dsets_.end(); ++set)
9291
// mprintf("\t%s\n", (*set)->legend());

src/Analysis_Spline.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class Analysis_Spline : public Analysis {
1212
Analysis::RetType Setup(ArgList&, AnalysisSetup&, int);
1313
Analysis::RetType Analyze();
1414
private:
15-
DataFile* outfile_; // FIXME: May not need to be class var
1615
Array1D input_dsets_;
1716
std::vector<DataSet_Mesh*> output_dsets_;
1817
int meshsize_; ///< Mesh size will be DataSet.Size * meshfactor

src/AtomMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AtomMap {
88
AtomMap();
99

1010
MapAtom& operator[](int);
11-
const MapAtom& operator[](int i) const { return mapatoms_[i]; } // FIXME: bounds
11+
const MapAtom& operator[](int i) const { return mapatoms_[i]; }
1212
/// \return the number of atoms in the AtomMap.
1313
int Natom() const { return (int)mapatoms_.size(); }
1414
/// Set the debug level of the AtomMap.

src/ClusterNode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class ClusterNode {
2424
void CalcEccentricity(DataSet_Cmatrix const&);
2525
/// Calculate centroid of members of this cluster.
2626
void CalculateCentroid(ClusterDist* Cdist) {
27-
// FIXME: Could potentially get rid of this branch.
2827
if (centroid_ == 0)
2928
centroid_ = Cdist->NewCentroid( frameList_ );
3029
else

src/DataIO_RemLog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DataIO_RemLog : public DataIO {
2020
enum LogType { UNKNOWN = 0, TREMD, HREMD, MREMD, RXSGLD, PHREMD };
2121
static const char* LogDescription[];
2222
typedef std::vector<std::string> Sarray; // TODO FileName array?
23-
typedef std::map<double,int> TmapType; // FIXME: Use ReplicaMap
23+
typedef std::map<double,int> TmapType; // TODO: Use ReplicaMap
2424
typedef DataSet_RemLog::IdxArray IdxArray;
2525

2626
/// Read remlog header

src/DataSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class DataSet {
4949
virtual SizeArray DimSizes() const { return SizeArray(); }
5050
/// Print DataSet information //TODO return string instead?
5151
virtual void Info() const = 0;
52-
/// Write data to file given start indices. FIXME Buffer? Should this function take number of elements as well?
52+
/// Write data to file given start indices.
5353
virtual void WriteBuffer(CpptrajFile&, SizeArray const&) const = 0;
5454
/// \return value of coordinate for specified dimension d and position p.
5555
/** NOTE: It is assumed this can ALWAYS be represented as double precision. */

src/DataSetList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DataSetList {
3030

3131
DataSetList& operator+=(DataSetList const&);
3232
/// \return DataSet at didx.
33-
DataSet* operator[](int didx) const { return DataList_[didx]; } // FIXME: No bounds check
33+
DataSet* operator[](int didx) const { return DataList_[didx]; }
3434
/// DataSetList default iterator
3535
typedef DataListType::const_iterator const_iterator;
3636
/// Iterator to beginning of dataset list

src/DataSet_2D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DataSet_2D : public DataSet {
1212
DataSet(tIn, MATRIX_2D, fIn, 2) {}
1313
// TODO enable Append?
1414
int Append(DataSet*) { return 1; }
15-
int Allocate(SizeArray const& s) { return Allocate2D(s[0], s[1]); } // FIXME bounds check
15+
int Allocate(SizeArray const& s) { return Allocate2D(s[0], s[1]); }
1616
// TODO: 1 allocate using MatrixKind?
1717
/// Set up matrix for given # columns and rows. // TODO replace with Allocate
1818
virtual int Allocate2D(size_t, size_t) = 0;

0 commit comments

Comments
 (0)