Commit ea3df8b8 authored by Vít Hanousek's avatar Vít Hanousek
Browse files

Test 3Ddistribuovaného gridu. Chybí test sousedů, je limitován na 27...

Test 3Ddistribuovaného gridu. Chybí test sousedů, je limitován na 27 procesorů, netestuje 1D či 2D distribuci nodů.
parent ae4adcd0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ class DistributedGrid <GridType,1>
    typedef typename GridType::PointType PointType;
    typedef Containers::StaticVector< 1, IndexType > CoordinatesType;
    
	static constexpr int getMeshDimension() { return 1; };    

    private : 
        
@@ -217,6 +218,7 @@ class DistributedGrid <GridType,2>
    typedef typename GridType::PointType PointType;
    typedef Containers::StaticVector< 2, IndexType > CoordinatesType;
    
	static constexpr int getMeshDimension() { return 2; };
    
    private : 
        
@@ -452,6 +454,7 @@ class DistributedGrid <GridType,3>
    typedef typename GridType::PointType PointType;
    typedef Containers::StaticVector< 3, IndexType > CoordinatesType;
    
	static constexpr int getMeshDimension() { return 3; };    

    private : 
        
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ namespace Meshes {

template <typename DistributedGridType,
		typename MeshFunctionType,
        int dim>  
        int dim=DistributedGridType::getMeshDimension()>  
class DistributedGridSynchronizer
{

+9 −0
Original line number Diff line number Diff line
@@ -10,6 +10,12 @@ ADD_EXECUTABLE( DistributedGridTest_2D${mpiExt}${debugExt} DistributedGridTest_2
                              ${GTEST_BOTH_LIBRARIES}
                              tnl${mpiExt}${debugExt}-${tnlVersion} )

ADD_EXECUTABLE( DistributedGridTest_3D${mpiExt}${debugExt} DistributedGridTest_3D.cpp )
   TARGET_COMPILE_OPTIONS( DistributedGridTest_3D${mpiExt}${debugExt} PRIVATE ${CXX_TESTS_FLAGS} )
   TARGET_LINK_LIBRARIES( DistributedGridTest_3D${mpiExt}${debugExt}
                              ${GTEST_BOTH_LIBRARIES}
                              tnl${mpiExt}${debugExt}-${tnlVersion} )

    
SET (mpi_test_parameters_1d -np 4 "${EXECUTABLE_OUTPUT_PATH}/DistributedGridTest_1D${mpiExt}${debugExt}")
ADD_TEST( NAME DistributedGridTest_1D COMMAND "mpirun" ${mpi_test_parameters_1d})
@@ -17,3 +23,6 @@ ADD_TEST( NAME DistributedGridTest_1D COMMAND "mpirun" ${mpi_test_parameters_1d}
SET (mpi_test_parameters_2d -np 9 "${EXECUTABLE_OUTPUT_PATH}/DistributedGridTest_2D${mpiExt}${debugExt}")
ADD_TEST( NAME DistributedGridTest_2D COMMAND "mpirun" ${mpi_test_parameters_2d})

SET (mpi_test_parameters_3d -np 27 "${EXECUTABLE_OUTPUT_PATH}/DistributedGridTest_3D${mpiExt}${debugExt}")
ADD_TEST( NAME DistributedGridTest_3D COMMAND "mpirun" ${mpi_test_parameters_3d})
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ void check_Boundary_2D(int rank, GridType &grid, DofType &dof, typename DofType:
/*expect 9 process
 * Known BUG of Traversars: Process boundary is writing over overlap.
 * it should be true, true, every where, but we dont chcek boundary overalp on boundary
 * so boundary overlap is not checked (it is filled incorectly).
 * so boundary overlap is not checked (it is filled incorectly by boundary condition).
 */
template<typename DofType,typename GridType>
void check_Overlap_2D(int rank, GridType &grid, DofType &dof, typename DofType::RealType expectedValue)
+844 −0

File added.

Preview size limit exceeded, changes collapsed.