Skip to content
Snippets Groups Projects
Commit 28c0b9a8 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

[cleanup] remove `src` directory

It only contained the default program generated by duneproject.
parent 70d7d774
No related branches found
No related tags found
1 merge request!24Minor changes
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
......@@ -19,7 +19,6 @@ include(DuneMacros)
dune_project()
dune_enable_all_packages()
add_subdirectory(src)
add_subdirectory(dune)
add_subdirectory(doc)
add_subdirectory(cmake/modules)
......
add_executable("dune_foamgrid" dune_foamgrid.cc)
target_link_dune_default_libraries("dune_foamgrid")
#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-foamgrid." << 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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment