| 439 | } |
| 440 | |
| 441 | void test_io( const geode::RegularGrid3D& grid, std::string_view filename ) |
| 442 | { |
| 443 | geode::save_regular_grid( grid, filename ); |
| 444 | const auto reload = geode::load_regular_grid< 3 >( filename ); |
| 445 | geode::OpenGeodeMeshException::test( |
| 446 | grid.nb_cells() == reload->nb_cells(), "Wrong reload nb_cells()" ); |
| 447 | geode::OpenGeodeMeshException::test( |
| 448 | grid.nb_cells_in_direction( 0 ) == reload->nb_cells_in_direction( 0 ), |
| 449 | "Wrong reload nb_cells_in_direction(0)" ); |
| 450 | geode::OpenGeodeMeshException::test( |
| 451 | grid.nb_cells_in_direction( 1 ) == reload->nb_cells_in_direction( 1 ), |
| 452 | "Wrong reload nb_cells_in_direction(1)" ); |
| 453 | geode::OpenGeodeMeshException::test( |
| 454 | grid.nb_cells_in_direction( 2 ) == reload->nb_cells_in_direction( 2 ), |
| 455 | "Wrong reload nb_cells_in_direction(2)" ); |
| 456 | } |
| 457 | |
| 458 | void test_adjacencies2D() |
| 459 | { |
no test coverage detected