|
| int | main (int argc, char **argv) |
| |
| | TEST_CASE ("ParArray basics") |
| |
| | TEST_CASE ("ArrayTransformer pull - TABLE_StaticFixed") |
| |
| father | Resize (nLocal, dynCols) |
| |
| father | createGlobalMapping () |
| |
| for(DNDS::index i=0;i< nLocal;i++) for(DNDS j< dynCols;j++)(*father)(i, j)=(gOff+i) *0.1+j *0.001;DNDS::index gSize=father-> | globalSize () |
| |
| std::vector< DNDS::index > | pullAll (gSize) |
| |
| trans | setFatherSon (father, son) |
| |
| trans | createFatherGlobalMapping () |
| |
| trans | createGhostMapping (std::vector< DNDS::index >(pullAll)) |
| |
| trans | createMPITypes () |
| |
| trans | pullOnce () |
| |
| | CHECK (son->Size()==gSize) |
| |
| | CHECK ((*son)(g, j)==doctest::Approx(expected)) |
| |
| | TEST_CASE ("ArrayTransformer pull - CSR layout") |
| |
| | TEST_CASE ("ArrayTransformer pull - std::array elements") |
| |
| | TEST_CASE ("ArrayTransformer persistent pull") |
| |
| | TEST_CASE ("ArrayTransformer BorrowGGIndexing") |
| |
| | TEST_CASE ("ArrayTransformer push") |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutStaticFixed, 1) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutStaticFixed, 3) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutStaticFixed, 7) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutDynamic, 1) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutDynamic, 3) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutDynamic, 7) |
| |
| | TRANS_TAG_STR (DNDS::real, LayoutCSR, 0) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutStaticFixed, 1) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutStaticFixed, 3) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutStaticFixed, 7) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutDynamic, 1) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutDynamic, 3) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutDynamic, 7) |
| |
| | TRANS_TAG_STR (DNDS::index, LayoutCSR, 0) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutStaticFixed, 1) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutStaticFixed, 3) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutStaticFixed, 7) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutDynamic, 1) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutDynamic, 3) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutDynamic, 7) |
| |
| | TRANS_TAG_STR (uint16_t, LayoutCSR, 0) |
| |
| | TRANS_TAG_STR (int32_t, LayoutStaticFixed, 1) |
| |
| | TRANS_TAG_STR (int32_t, LayoutStaticFixed, 3) |
| |
| | TRANS_TAG_STR (int32_t, LayoutStaticFixed, 7) |
| |
| | TRANS_TAG_STR (int32_t, LayoutDynamic, 1) |
| |
| | TRANS_TAG_STR (int32_t, LayoutDynamic, 3) |
| |
| | TRANS_TAG_STR (int32_t, LayoutDynamic, 7) |
| |
| | TRANS_TAG_STR (int32_t, LayoutCSR, 0) |
| |
| | TEST_CASE_TEMPLATE ("ArrayTransformer pull", Tag, TRANS_ALL_TAGS) |
| |
Comprehensive doctest-based unit tests for DNDS::ArrayTransformer ghost/halo communication, run under mpirun with 1, 2, and 4 ranks.
Tests pull-based and push-based ghost exchange for TABLE_StaticFixed, TABLE_Fixed, CSR, and compound element types. Also covers persistent communication and BorrowGGIndexing.
- See also
- DNDS Core Unit Tests for the full test-suite overview.
- Test:
- ParArray basics, pull (StaticFixed, Fixed, CSR, std::array), persistent pull, BorrowGGIndexing, push.
Definition in file test_ArrayTransformer.cpp.