Skip to content

Commit 65345d2

Browse files
committed
Container Read: Test for Size
Check if the size of a container with offsets is read correctly.
1 parent ccfc703 commit 65345d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/DomainsTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ void DomainsTest::subTestGridDomains(const Dimensions mpiSize,
222222
Dimensions subdomain_offset = subdomain->getOffset();
223223

224224
#if defined TESTS_DEBUG
225+
std::cout << "container->getSize() = " << container->getSize().toString() << std::endl;
225226
std::cout << "subdomain->getOffset() = " << subdomain->getOffset().toString() << std::endl;
226227
std::cout << "subdomain->getElements() = " << subdomain_elements.toString() << std::endl;
227228
#endif
229+
CPPUNIT_ASSERT(container->getSize() == partition_size);
228230

229231
int *subdomain_data = (int*) (subdomain->getData());
230232
CPPUNIT_ASSERT(subdomain_elements == global_grid_size - offset);

0 commit comments

Comments
 (0)