Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
11a8021f
Commit
11a8021f
authored
10 years ago
by
Ansgar Burchardt
Committed by
Oliver Sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bin/am2cmake.py: remove large chunk of debug code
parent
275c824f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/am2cmake.py
+0
-239
0 additions, 239 deletions
bin/am2cmake.py
with
0 additions
and
239 deletions
bin/am2cmake.py
+
0
−
239
View file @
11a8021f
...
...
@@ -463,245 +463,6 @@ def am_2_cmake_string(amstring):
return
s
str1
=
"""
# $Id: Makefile.am 8330 2012-08-09 08:12:25Z sander $
#
## Find out which tests can be built
#
if ALBERTA
APROG = test-alberta-1-1 test-alberta-1-2 test-alberta-2-2
\
test-alberta-1-3 test-alberta-2-3 test-alberta-3-3
\
test-alberta-generic
ALBERTA_EXTRA_PROGS = test-alberta
endif
if ALUGRID
ALUPROG = test-alugrid
endif
if UG
UPROG = test-ug test-parallel-ug
if ALUGRID
DGFALU_UGGRID = test-dgfalu-uggrid-combination
else
DGFALU_UGGRID =
endif
endif
#
## Defines for gridtype.hh
#
GRIDTYPE=YASPGRID
GRIDDIM=2
ALBERTA_DIM = $(WORLDDIM)
#
## Some parameters for the geogrid test
#
COORDFUNCTION = IdenticalCoordFunction\<double,$(GRIDDIM)\>
# COORDFUNCTION = Helix
# COORDFUNCTION = ThickHelix
# COORDFUNCTION = DGFCoordFunction\<$(GRIDDIM),$(GRIDDIM)\>
# COORDFUNCTION = DGFCoordFunction\<2,3\>
CACHECOORDFUNCTION = 0
#
## define the lists of tests to build and run
#
# tests where program to build and program to run are equal
NORMALTESTS = test-sgrid test-oned test-yaspgrid test-geogrid $(APROG) $(UPROG) $(ALUPROG) $(DGFALU_UGGRID)
# list of tests to run
TESTS = $(NORMALTESTS)
# programs just to build when
"
make check
"
is used
check_PROGRAMS = $(NORMALTESTS)
EXTRA_PROGRAMS = $(ALBERTA_EXTRA_PROGS)
#
## common flags
#
# paranoia
DUNE_EXTRA_CHECKS = -DDUNE_DEVEL_MODE
# output coverage
#COVERAGE = -fprofile-arcs -ftest-coverage
AM_CXXFLAGS = $(COVERAGE)
AM_CPPFLAGS = @AM_CPPFLAGS@ $(DUNE_EXTRA_CHECKS)
# The directory where the example grid files used for testing are located
AM_CPPFLAGS+=-DDUNE_GRID_EXAMPLE_GRIDS_PATH=
\"
$(top_srcdir)/doc/grids/
\"
#
## define the programs
#
test_sgrid_SOURCES = test-sgrid.cc
test_oned_SOURCES = test-oned.cc
test_yaspgrid_SOURCES = test-yaspgrid.cc
test_yaspgrid_CPPFLAGS = $(AM_CPPFLAGS)
\
$(DUNEMPICPPFLAGS)
test_yaspgrid_LDFLAGS = $(AM_LDFLAGS)
\
$(DUNEMPILDFLAGS)
test_yaspgrid_LDADD =
\
$(DUNEMPILIBS)
\
$(LDADD)
# this implicitly checks the autoconf-test as well...
test_alberta_SOURCES = test-alberta.cc
test_alberta_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA_CPPFLAGS) -DGRIDDIM=$(GRIDDIM) $(GRAPE_CPPFLAGS)
test_alberta_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA_LDFLAGS) $(GRAPE_LDFLAGS)
test_alberta_LDADD =
\
$(GRAPE_LIBS)
\
$(ALBERTA_LIBS)
\
$(LDADD)
test_alberta_1_1_SOURCES = test-alberta.cc
test_alberta_1_1_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=1 $(ALBERTA1D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_1_LDFLAGS = $(ALBERTA1D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_1_LDADD = $(ALBERTA1D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_1_2_SOURCES = test-alberta.cc
test_alberta_1_2_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=2 $(ALBERTA2D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_2_LDFLAGS = $(ALBERTA2D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_2_LDADD = $(ALBERTA2D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_2_2_SOURCES = test-alberta.cc
test_alberta_2_2_CPPFLAGS = -DGRIDDIM=2 -DWORLDDIM=2 $(ALBERTA2D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_2_2_LDFLAGS = $(ALBERTA2D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_2_2_LDADD = $(ALBERTA2D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_1_3_SOURCES = test-alberta.cc
test_alberta_1_3_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_2_3_SOURCES = test-alberta.cc
test_alberta_2_3_CPPFLAGS = -DGRIDDIM=2 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_2_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_2_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_3_3_SOURCES = test-alberta.cc
test_alberta_3_3_CPPFLAGS = -DGRIDDIM=3 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_3_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_3_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_generic_SOURCES = $(test_alberta_SOURCES)
test_alberta_generic_CPPFLAGS = $(test_alberta_CPPFLAGS) -DDUNE_ALBERTA_USE_GENERICGEOMETRY=1
test_alberta_generic_LDFLAGS = $(test_alberta_LDFLAGS)
test_alberta_generic_LDADD = $(test_alberta_LDADD)
# files for alugrid
test_alugrid_SOURCES = test-alugrid.cc
test_alugrid_CPPFLAGS = $(AM_CPPFLAGS)
\
$(ALL_PKG_CPPFLAGS)
test_alugrid_LDFLAGS = $(AM_LDFLAGS)
\
$(ALL_PKG_LDFLAGS)
\
-static
test_alugrid_LDADD =
\
$(ALL_PKG_LIBS)
\
$(LDADD)
test_geogrid_SOURCES = test-geogrid.cc functions.hh
test_geogrid_CPPFLAGS = $(AM_CPPFLAGS)
\
$(ALL_PKG_CPPFLAGS)
\
-DCOORDFUNCTION=$(COORDFUNCTION)
\
-DCACHECOORDFUNCTION=$(CACHECOORDFUNCTION)
test_geogrid_LDFLAGS = $(AM_LDFLAGS)
\
$(ALL_PKG_LDFLAGS)
test_geogrid_LDADD =
\
$(ALL_PKG_LIBS)
\
$(LDADD)
# libdune contains both libugX2 and libugX3, always test both dimensions
test_ug_SOURCES = test-ug.cc
test_ug_CPPFLAGS = $(AM_CPPFLAGS)
\
$(DUNEMPICPPFLAGS)
\
$(UG_CPPFLAGS)
test_ug_LDFLAGS = $(AM_LDFLAGS)
\
$(DUNEMPILDFLAGS)
\
$(UG_LDFLAGS)
test_ug_LDADD =
\
$(UG_LIBS)
\
$(DUNEMPILIBS)
\
$(LDADD)
# libdune contains both libugX2 and libugX3, always test both dimensions
test_parallel_ug_SOURCES = test-parallel-ug.cc
test_parallel_ug_CPPFLAGS = $(AM_CPPFLAGS)
\
$(DUNEMPICPPFLAGS)
\
$(UG_CPPFLAGS)
test_parallel_ug_LDFLAGS = $(AM_LDFLAGS)
\
$(DUNEMPILDFLAGS)
\
$(UG_LDFLAGS)
test_parallel_ug_LDADD =
\
$(UG_LIBS)
\
$(DUNEMPILIBS)
\
$(LDADD)
# Test whether you can combine the different implementations in one file
test_dgfalu_uggrid_combination_SOURCES = test-dgfalu-uggrid-combination.cc
test_dgfalu_uggrid_combination_CPPFLAGS = $(AM_CPPFLAGS) $(UG_CPPFLAGS) $(ALUGRID_CPPFLAGS)
test_dgfalu_uggrid_combination_LDFLAGS = $(AM_LDFLAGS) $(UG_LDFLAGS) $(ALUGRID_LDFLAGS)
test_dgfalu_uggrid_combination_LDADD =
\
$(ALUGRID_LIBS)
\
$(UG_LIBS)
\
$(LDADD)
## distribution tarball
SOURCES = gridcheck.cc staticcheck.hh checkindexset.cc checkgeometryinfather.cc checkintersectionit.cc checkcommunicate.cc checkiterators.cc checktwists.cc check-albertareader.cc basicunitcube.hh checkadaptation.cc checkgeometry.cc checkpartition.cc checkentityseed.cc
# gridcheck not used explicitly, we should still ship it :)
EXTRA_DIST = $(SOURCES)
CLEANFILES = *.gcda *.gcno semantic.cache simplex-testgrid*.dgf.* cube-testgrid*.dgf.* dgfparser.log
include $(top_srcdir)/am/global-rules
doxygendir = $(datadir)/doc/dune-localfunctions/doxygen
doxygen_DATA = $(WHAT)
# install the html pages
docdir=$(datadir)/doc/dune-common/buildsystem
if BUILD_DOCS
DOCFILES=buildsystem.pdf
EXTRA_DIST=$(DOCFILES)
EXTRAINSTALL=$(DOCFILES)
endif
all: $(WHAT) $(DOXYGENFILES)
clean-local:
if test
"
x$(VPATH)
"
!=
"
x
"
&& test ! -e $(srcdir)/doxygen-tag; then
\
if test -e $(top_srcdir)/doc/doxygen/Doxydep; then
\
rm -rf $(SVNCLEANFILES);
\
fi;
\
fi
# also build these sub directories
SUBDIRS = doxygen buildsystem
docdir=$(datadir)/doc/dune-common
doc_DATA=data_bla data_blu
doc_PROGRAMS= balla
XFAIL_TESTS=ftest1 ftest2 ftest3
COMPILE_XFAIL_TESTS=cftest1 cftest2
"""
#print am_2_cmake_string("""# which tests to run
#TESTS = lagrangeshapefunctiontest \
# monomshapefunctiontest \
# virtualshapefunctiontest \
# testgenericfem \
# $(ALUPROG)
#""")
str2
=
''
.
join
([
'
TESTS = lagrangeshapefunctiontest
\\\n
'
,
'
\t
monomshapefunctiontest
\t\t\t\\\n
'
,
'
\t
virtualshapefunctiontest
\t\t\\\n
'
,
'
\t
testgenericfem
\\\n
'
,
'
\t
$(ALUPROG)
\n
'
])
#print "s=%s" % output
def
init_cmake_module
(
module_name
):
return
''
.
join
([
'
# set up project
\n
'
,
'
project(
"'
+
module_name
+
'"
C CXX)
\n\n
#circumvent not building docs
\n
set(BUILD_DOCS 1)
\n\n
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment