/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013, by the GROMACS development team, led by
- * David van der Spoel, Berk Hess, Erik Lindahl, and including many
- * others, as listed in the AUTHORS file in the top-level source
- * directory and at http://www.gromacs.org.
+ * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
+ * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
+ * and including many others, as listed in the AUTHORS file in the
+ * top-level source directory and at http://www.gromacs.org.
*
* GROMACS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* \author Teemu Murtola <teemu.murtola@gmail.com>
* \ingroup module_analysisdata
*/
+#include "gmxpre.h"
+
#include "datastorage.h"
#include <algorithm>
* AnalysisDataStorageFrameImpl declaration
*/
-/*! \internal \brief
+/*! \internal
+ * \brief
* Internal representation for a single stored frame.
*
* It is implemented such that the frame header is always valid, i.e.,
AnalysisDataPointSetInfo pointSetInfo(0, valueCount,
dataSetIndex, firstColumn);
AnalysisDataPointSetRef pointSet(header(), pointSetInfo,
- AnalysisDataValuesRef(begin, end));
+ constArrayRefFromVector<AnalysisDataValue>(begin, end));
storageImpl().modules_->notifyParallelPointsAdd(pointSet);
if (storageImpl().shouldNotifyImmediately())
{
"Invalid point set index");
return AnalysisDataPointSetRef(
header_, pointSets_[index],
- AnalysisDataValuesRef(values_.begin(), values_.end()));
+ constArrayRefFromVector<AnalysisDataValue>(values_.begin(), values_.end()));
}
} // namespace internal
AnalysisDataModuleManager *modules,
const AnalysisDataParallelOptions &options)
{
- const int pendingLimit = 2 * options.parallelizationFactor() - 1;
+ const int pendingLimit = options.parallelizationFactor();
impl_->pendingLimit_ = pendingLimit;
modules->notifyParallelDataStart(data, options);
// Data needs to be set before calling extendBuffer()