Skip to content
Snippets Groups Projects
Commit 8e53f1d0 authored by Elias Pipping's avatar Elias Pipping Committed by pipping
Browse files

kill src/

[[Imported from SVN: r12932]]
parent 57e522d0
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
# we need the module file to be able to build via dunecontrol
EXTRA_DIST=dune.module
SUBDIRS = src m4 dune
SUBDIRS = m4 dune
if BUILD_DOCS
SUBDIRS += doc
......
......@@ -3,7 +3,7 @@
AC_PREREQ(2.50)
DUNE_AC_INIT # gets module version from dune.module file
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/dune_solvers.cc])
AC_CONFIG_SRCDIR([dune-solvers.pc.in])
AC_CONFIG_HEADERS([config.h])
......@@ -18,7 +18,6 @@ LIBS="$DUNE_LIBS"
AC_CONFIG_FILES([
Makefile
doc/doxygen/Doxyfile
src/Makefile
dune/Makefile
dune/solvers/Makefile
dune/solvers/common/Makefile
......
SUBDIRS =
noinst_PROGRAMS = dune_solvers
dune_solvers_SOURCES = dune_solvers.cc
dune_solvers_CXXFLAGS = $(MPI_CPPFLAGS) $(UG_CPPFLAGS) $(AMIRAMESH_CPPFLAGS) $(ALBERTA_CPPFLAGS) $(ALU_CPPFLAGS)
dune_solvers_LDADD = $(MPI_LDFLAGS) $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS) $(ALU_LIBS) $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS) $(UG_LDFLAGS) $(UG_LIBS) $(MPI_LDFLAGS) $(DUNE_LDFLAGS) $(DUNE_LIBS)
# don't follow the full GNU-standard
# we need automake 1.5
AUTOMAKE_OPTIONS = foreign 1.5
# pass most important options when "make distcheck" is used
DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-grid=$(DUNE_GRID_ROOT) --with-dune-istl=$(DUNE_ISTL_ROOT) CXX="$(CXX)" CC="$(CC)"
include $(top_srcdir)/am/global-rules
#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/solvers." << 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.
Please register or to comment