/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020, 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.
#include "gromacs/gmxpreprocess/grompp.h"
#include "gromacs/math/vectypes.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/topology/topology.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/exceptions.h"
ASSERT_TRUE(atoms2);
EXPECT_NE(atoms1.get(), atoms2.get());
EXPECT_EQ(0, atoms1->nr);
- EXPECT_EQ(-1, topInfo.ePBC());
+ EXPECT_EQ(PbcType::Unset, topInfo.pbcType());
EXPECT_THROW(topInfo.x().size(), gmx::APIError);
EXPECT_THROW(topInfo.v().size(), gmx::APIError);
matrix box{ { -2 } };
topInfo.fillFromInputFile(TestFileManager::getInputFilePath("lysozyme.gro"));
EXPECT_FALSE(topInfo.hasFullTopology());
runCommonTests(topInfo, numAtoms);
- EXPECT_EQ(-1, topInfo.ePBC());
+ EXPECT_EQ(PbcType::Unset, topInfo.pbcType());
// Check the per-atom data
auto atoms = topInfo.copyAtoms();
EXPECT_FALSE(topInfo.hasFullTopology());
runCommonTests(topInfo, numAtoms);
// TODO why does this differ from .gro?
- EXPECT_EQ(0, topInfo.ePBC());
+ EXPECT_EQ(PbcType::Xyz, topInfo.pbcType());
// Check the per-atom data
auto atoms = topInfo.copyAtoms();
EXPECT_TRUE(topInfo.hasFullTopology());
runCommonTests(topInfo, numAtoms);
// TODO why does this differ from .gro?
- EXPECT_EQ(0, topInfo.ePBC());
+ EXPECT_EQ(PbcType::Xyz, topInfo.pbcType());
// Check the per-atom data
auto atoms = topInfo.copyAtoms();