From bc6adb7cf44975611497f7fc1215da29b7eb6bf7 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Mon, 15 May 2017 09:57:48 +0200 Subject: [PATCH] Remove dummy src directory --- CMakeLists.txt | 1 - src/CMakeLists.txt | 4 ---- src/dune_matrix_vector.cc | 27 --------------------------- 3 files changed, 32 deletions(-) delete mode 100644 src/CMakeLists.txt delete mode 100644 src/dune_matrix_vector.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index 6eeba4b..c2afd2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ include(DuneMacros) # start a dune project with information from dune.module dune_project() -add_subdirectory("src") add_subdirectory("dune") add_subdirectory("doc") add_subdirectory("cmake/modules") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index 29d3630..0000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ - -add_executable("dune_matrix_vector" dune_matrix_vector.cc) -target_link_dune_default_libraries("dune_matrix_vector") - diff --git a/src/dune_matrix_vector.cc b/src/dune_matrix_vector.cc deleted file mode 100644 index e8b4fbd..0000000 --- a/src/dune_matrix_vector.cc +++ /dev/null @@ -1,27 +0,0 @@ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif -#include <iostream> -#include <dune/common/parallel/mpihelper.hh> // An initializer of MPI -#include <dune/common/exceptions.hh> // We use exceptions - -int main(int argc, char** argv) -{ - try{ - //Maybe initialize Mpi - Dune::MPIHelper& helper = Dune::MPIHelper::instance(argc, argv); - std::cout << "Hello World! This is dune-matrix-vector." << std::endl; - if(Dune::MPIHelper::isFake) - std::cout<< "This is a sequential program." << std::endl; - else - std::cout<<"I am rank "<<helper.rank()<<" of "<<helper.size() - <<" processes!"<<std::endl; - return 0; - } - catch (Dune::Exception &e){ - std::cerr << "Dune reported error: " << e << std::endl; - } - catch (...){ - std::cerr << "Unknown exception thrown!" << std::endl; - } -} -- GitLab