#include "topologyinformation.h"
-#include "gromacs/compat/make_unique.h"
+#include <memory>
+
#include "gromacs/fileio/confio.h"
#include "gromacs/math/vec.h"
#include "gromacs/pbcutil/rmpbc.h"
void TopologyInformation::fillFromInputFile(const std::string &filename)
{
- mtop_ = gmx::compat::make_unique<gmx_mtop_t>();
+ mtop_ = std::make_unique<gmx_mtop_t>();
// TODO When filename is not a .tpr, then using readConfAndAtoms
// would be efficient for not doing multiple conversions for
// makeAtomsData. However we'd also need to be able to copy the
// Do lazy initialization
if (expandedTopology_ == nullptr && hasTopology())
{
- expandedTopology_.reset(gmx_mtop_generate_local_top(mtop_.get(), false));
+ expandedTopology_ = std::make_unique<gmx_localtop_t>();
+ gmx_mtop_generate_local_top(*mtop_, expandedTopology_.get(), false);
}
return expandedTopology_.get();