Skip to content
Snippets Groups Projects
Commit 691041fb authored by Elias Pipping's avatar Elias Pipping
Browse files

[Build] Rename problem

parent e693c6fa
No related branches found
No related tags found
No related merge requests found
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
/test-driver /test-driver
Makefile Makefile
Makefile.in Makefile.in
src/one-body-sample-?D src/sliding-block-?D
...@@ -4,7 +4,7 @@ AC_PREREQ(2.50) ...@@ -4,7 +4,7 @@ AC_PREREQ(2.50)
DUNE_AC_INIT # gets module version from dune.module file DUNE_AC_INIT # gets module version from dune.module file
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
AM_SILENT_RULES AM_SILENT_RULES
AC_CONFIG_SRCDIR([src/one-body-sample.cc]) AC_CONFIG_SRCDIR([dune-tectonic.pc.in])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
DUNE_CHECK_ALL DUNE_CHECK_ALL
......
bin_PROGRAMS = \ bin_PROGRAMS = sliding-block-2D
one-body-sample-2D
SOURCES = \ common_sources = \
assemblers.cc \ assemblers.cc \
boundary_writer.cc \ boundary_writer.cc \
friction_writer.cc \ friction_writer.cc \
solverfactory.cc \ solverfactory.cc \
one-body-sample.cc \
timestepping.cc \ timestepping.cc \
vtk.cc vtk.cc
## 2D sliding_block_2D_SOURCES = $(common_sources) sliding-block.cc
one_body_sample_2D_SOURCES = $(SOURCES) sliding_block_2D_CPPFLAGS = \
$(AM_CPPFLAGS) \
one_body_sample_2D_CPPFLAGS = \ -Ddatadir=\"$(abs_srcdir)/sliding-block-data/\" -DDIM=2
$(AM_CPPFLAGS) -Dsrcdir=\"$(abs_srcdir)\" -DDIM=2
# Some are for clang, others are for gcc # Some are for clang, others are for gcc
AM_CXXFLAGS = \ AM_CXXFLAGS = \
......
#ifndef MY_BODY_HH #ifndef SRC_SLIDING_BLOCK_DATA_MYBODY_HH
#define MY_BODY_HH #define SRC_SLIDING_BLOCK_DATA_MYBODY_HH
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
......
#ifndef MY_GEOMETRY_HH #ifndef SRC_SLIDING_BLOCK_DATA_MYGEOMETRY_HH
#define MY_GEOMETRY_HH #define SRC_SLIDING_BLOCK_DATA_MYGEOMETRY_HH
#include <dune/common/fassign.hh> #include <dune/common/fassign.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
......
#ifndef MY_GLOBAL_FRICTION_DATA_HH #ifndef SRC_SLIDING_BLOCK_DATA_MYGLOBALFRICTIONDATA_HH
#define MY_GLOBAL_FRICTION_DATA_HH #define SRC_SLIDING_BLOCK_DATA_MYGLOBALFRICTIONDATA_HH
#include <dune/common/function.hh> #include <dune/common/function.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
......
#ifndef SRC_SLIDING_BLOCK_DATA_MYGRID_HH
#define SRC_SLIDING_BLOCK_DATA_MYGRID_HH
#include <dune/grid/common/gridfactory.hh> #include <dune/grid/common/gridfactory.hh>
#include <dune/fufem/boundarypatch.hh> #include <dune/fufem/boundarypatch.hh>
...@@ -32,3 +35,4 @@ template <class GridView, class MyGeometry> class MyFaces { ...@@ -32,3 +35,4 @@ template <class GridView, class MyGeometry> class MyFaces {
BoundaryPatch<GridView> lower; BoundaryPatch<GridView> lower;
BoundaryPatch<GridView> upper; BoundaryPatch<GridView> upper;
}; };
#endif
File moved
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#undef HAVE_IPOPT #undef HAVE_IPOPT
#endif #endif
#ifndef srcdir #ifndef datadir
#error srcdir unset #error datadir unset
#endif #endif
#ifndef DIM #ifndef DIM
...@@ -74,10 +74,10 @@ ...@@ -74,10 +74,10 @@
#include "enum_verbosity.cc" #include "enum_verbosity.cc"
#include "enums.hh" #include "enums.hh"
#include "friction_writer.hh" #include "friction_writer.hh"
#include "mybody.hh" #include "sliding-block-data/mybody.hh"
#include "mygeometry.hh" #include "sliding-block-data/mygeometry.hh"
#include "myglobalfrictiondata.hh" #include "sliding-block-data/myglobalfrictiondata.hh"
#include "mygrid.hh" #include "sliding-block-data/mygrid.hh"
#include "solverfactory.hh" #include "solverfactory.hh"
#include "state.hh" #include "state.hh"
#include "timestepping.hh" #include "timestepping.hh"
...@@ -88,14 +88,13 @@ void initPython() { ...@@ -88,14 +88,13 @@ void initPython() {
Python::start(); Python::start();
Python::run("import sys"); Python::run("import sys");
Python::run("sys.path.append('" srcdir "')"); Python::run("sys.path.append('" datadir "')");
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
try { try {
Dune::ParameterTree parset; Dune::ParameterTree parset;
Dune::ParameterTreeParser::readINITree(srcdir "/one-body-sample.parset", Dune::ParameterTreeParser::readINITree(datadir "/parset.cfg", parset);
parset);
Dune::ParameterTreeParser::readOptions(argc, argv, parset); Dune::ParameterTreeParser::readOptions(argc, argv, parset);
MyGeometry const myGeometry; MyGeometry const myGeometry;
...@@ -140,7 +139,7 @@ int main(int argc, char *argv[]) { ...@@ -140,7 +139,7 @@ int main(int argc, char *argv[]) {
FunctionMap functions; FunctionMap functions;
{ {
initPython(); initPython();
Python::import("one-body-sample") Python::import("boundaryconditions")
.get("Functions") .get("Functions")
.toC<typename FunctionMap::Base>(functions); .toC<typename FunctionMap::Base>(functions);
} }
......
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