Commit b6b7fd74 authored by hanouvit's avatar hanouvit Committed by Vít Hanousek
Browse files

Fix of Segfault when Mesh is not distributed.

parent b0ba39cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ if( WITH_CUDA STREQUAL "yes" )
        if( NOT WITH_CUBLAS STREQUAL "no" )
            find_path( CUBLAS_INCLUDE_DIR cublas_v2.h
                       /usr/local/cuda/include
                       ${CUDA_INCLUDE_DIR}
                       ${CUDA_INCLUDE_DIRS}
                       DOC "CUBLAS headers." )
            if( ${CUBLAS_INCLUDE_DIR} STREQUAL "CUBLAS_INCLUDE_DIR-NOTFOUND" )
                message( "CUBLAS not found." )
@@ -219,7 +219,7 @@ if( WITH_CUDA STREQUAL "yes" )
        if( NOT WITH_CUSPARSE STREQUAL "no" )
           find_path( CUSPARSE_INCLUDE_DIR cusparse.h
                      /usr/local/cuda/include                   
                      ${CUDA_INCLUDE_DIR}  
                      ${CUDA_INCLUDE_DIRS}  
                      DOC "CUSPARSE headers." )
           if( ${CUSPARSE_INCLUDE_DIR} STREQUAL "CUSPARSE_INCLUDE_DIR-NOTFOUND" )
               message( "CUSPARSE not found." )
+2 −1
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@ Grid< 2, Real, Device, Index > :: Grid()
  numberOfNxFaces( 0 ),
  numberOfNyFaces( 0 ),
  numberOfFaces( 0 ),
  numberOfVertices( 0 )
  numberOfVertices( 0 ),
  distGrid(nullptr)
{
}

+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ Grid< 3, Real, Device, Index > :: Grid()
  numberOfDzEdges( 0 ),
  numberOfDxAndDyEdges( 0 ),
  numberOfEdges( 0 ),
  numberOfVertices( 0 )
  numberOfVertices( 0 ),
  distGrid(nullptr)
{
}