~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to doc/pexamples/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito
  • Date: 2012-04-06 09:12:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120406091221-m58me99p1nxqui49
Tags: 6.0-1
* New upstream release 6.0 (major changes):
  - massively distributed and parallel support
  - full FEM characteristic method (Lagrange-Gakerkin method) support
  - enhanced users documentation 
  - source code supports g++-4.7 (closes: #667356)
* debian/control: dependencies for MPI distributed solvers added
* debian/rules: build commands simplified
* debian/librheolef-dev.install: man1/* to man9/* added
* debian/changelog: package description rewritted (closes: #661689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## process this file with automake to produce Makefile.in
 
1
# process this file with automake to produce Makefile.in
2
2
#
3
3
# This file is part of Rheolef.
4
4
#
20
20
#
21
21
include ${top_builddir}/config/config.mk
22
22
 
 
23
docdir     = $(prefix)/share/doc/@doc_dir@
23
24
exampledir = $(docdir)/examples
24
25
 
25
26
# uncomment for html generation
30
31
# the file set
31
32
# -----------------------------------------------------------------------------
32
33
 
 
34
# c++ 2011 feature:
 
35
CONCAT_CHECK_PROGS =                                            \
 
36
        neumann-laplace
 
37
 
 
38
if HAVE_STD_INITIALIZER_LIST
 
39
   CXX2011_CHECK_PROGS = $(CONCAT_CHECK_PROGS)
 
40
else
 
41
   CXX2011_CHECK_PROGS = 
 
42
endif
33
43
CHECK_EXAMPLE_PRGM  =                                           \
34
44
        dirichlet                                               \
35
 
        neumann                                                 \
 
45
        dirichlet-nh                                            \
 
46
        neumann-nh                                              \
36
47
        robin                                                   \
37
 
        dirichlet-nh                                            \
38
 
        neumann-laplace
 
48
        $(CXX2011_CHECK_PROGS)                                  \
 
49
        helmholtz_s_sphere                                      \
 
50
        transmission                                            \
 
51
        embankment                                              \
 
52
        stokes_cavity                                           \
 
53
        incompressible-elasticity                               \
 
54
        stokes_contraction                                      \
 
55
        stokes_contraction_bubble                               \
 
56
        streamf_contraction                                     \
 
57
        heat                                                    \
 
58
        convect                                                 \
 
59
        navier_stokes_cavity                                    \
 
60
        p_laplacian_fixed_point                                 \
 
61
        p_laplacian_newton                                      \
 
62
        p_laplacian_damped_newton
 
63
 
39
64
 
40
65
dirichlet_SOURCES       = dirichlet.cc
41
 
neumann_SOURCES         = neumann.cc
 
66
neumann_nh_SOURCES      = neumann-nh.cc
 
67
dirichlet_nh_SOURCES    = dirichlet-nh.cc
42
68
robin_SOURCES           = robin.cc
43
 
dirichlet_nh_SOURCES    = dirichlet-nh.cc
44
 
neumann_laplace_SOURCES = neumann-laplace.cc neumann-laplace-assembly.h
45
 
 
46
 
# examples included in usrman:
 
69
neumann_laplace_SOURCES = neumann-laplace.cc
 
70
helmholtz_s_sphere_SOURCES = helmholtz_s_sphere.cc
 
71
transmission_SOURCES = transmission.cc
 
72
embankment_SOURCES      = embankment.cc
 
73
stokes_cavity_SOURCES   = stokes_cavity.cc
 
74
incompressible_elasticity_SOURCES   = incompressible-elasticity.cc
 
75
stokes_contraction_SOURCES   = stokes_contraction.cc
 
76
stokes_contraction_bubble_SOURCES   = stokes_contraction_bubble.cc
 
77
streamf_contraction_SOURCES     = streamf_contraction.cc
 
78
heat_SOURCES = heat.cc
 
79
convect_SOURCES = convect.cc
 
80
navier_stokes_cavity_SOURCES = navier_stokes_cavity.cc
 
81
p_laplacian_fixed_point_SOURCES = p_laplacian_fixed_point.cc
 
82
p_laplacian_newton_SOURCES = p_laplacian_newton.cc
 
83
p_laplacian_damped_newton_SOURCES = p_laplacian_damped_newton.cc
 
84
 
 
85
# others examples progs, but without *_tst.sh script:
 
86
OTHERS_EXAMPLE_PRGM =                                           \
 
87
        stress                                                  \
 
88
        vorticity                                               \
 
89
        streamf_cavity                                          \
 
90
        embankment_adapt                                        \
 
91
        convect_error                                           \
 
92
        cosinusprod_error
 
93
 
 
94
stress_SOURCES          = stress.cc
 
95
vorticity_SOURCES       = vorticity.cc
 
96
streamf_cavity_SOURCES  = streamf_cavity.cc
 
97
embankment_adapt_SOURCES = embankment_adapt.cc
 
98
convect_error_SOURCES = convect_error.cc
 
99
cosinusprod_error_SOURCES = cosinusprod_error.cc
 
100
 
 
101
# others examples files, included in usrman:
47
102
EXAMPLES_FILES =                                                \
48
103
        Makefile.demo                                           \
49
 
        $(CHECK_EXAMPLE_PRGM:=.cc)
 
104
        cosinusprod_laplace.icc                                 \
 
105
        cosinusrad_laplace.icc                                  \
 
106
        cosinusprod.icc                                         \
 
107
        cosinusrad.icc                                          \
 
108
        sinusprod_helmholtz.icc                                 \
 
109
        sphere.h                                                \
 
110
        embankment.icc                                          \
 
111
        elasticity_solve.icc                                    \
 
112
        elasticity_criterion.icc                                \
 
113
        line.mshcad                                             \
 
114
        square.mshcad                                           \
 
115
        cube.mshcad                                             \
 
116
        square.bamgcad                                          \
 
117
        square.dmn                                              \
 
118
        cavity.icc                                              \
 
119
        dirichlet.icc                                           \
 
120
        not_too_small.h                                         \
 
121
        contraction.mshcad                                      \
 
122
        poiseuille.h                                            \
 
123
        rotating-hill.h                                         \
 
124
        navier_stokes_solve.icc                                 \
 
125
        navier_stokes_criterion.icc                             \
 
126
        streamf_cavity.icc                                      \
 
127
        p_laplacian_fixed_point.icc                             \
 
128
        p_laplacian.h                                           \
 
129
        p_laplacian1.icc                                        \
 
130
        p_laplacian2.icc                                        \
 
131
        $(CONCAT_CHECK_PROGS:=.cc)                              \
 
132
        $(CHECK_EXAMPLE_PRGM:=.cc)                              \
 
133
        $(OTHERS_EXAMPLE_PRGM:=.cc)
50
134
 
51
 
check_PROGRAMS  =                                               \
 
135
# progs compiled before running make check, but do not go to exampledir
 
136
CHECK_BOX_PRGM  =                                               \
52
137
        $(CHECK_EXAMPLE_PRGM)                                   \
53
 
        rounder                                                 \
54
 
        neumann-check                                           \
55
 
        dirichlet-nh-check                                      \
56
 
        neumann-laplace-check
 
138
        $(OTHERS_EXAMPLE_PRGM)                                  \
 
139
        neumann                                                 \
 
140
        dirichlet2                                              \
 
141
        robin2                                                  \
 
142
        sinusprod_error                                         \
 
143
        neumann-laplace-check                                   \
 
144
        transmission_error                                      \
 
145
        convect2                                                \
 
146
        navier_stokes_criterion                                 \
 
147
        navier_stokes_cavity_exp                                \
 
148
        vortex_position                                         \
 
149
        p_laplacian_post
57
150
 
58
 
# extra-examples
59
 
rounder_SOURCES = rounder.cc
60
 
neumann_check_SOURCES = neumann-check.cc
61
 
dirichlet_nh_check_SOURCES = dirichlet-nh-check.cc
 
151
# extra-tests
 
152
dirichlet2_SOURCES      = dirichlet2.cc
 
153
neumann_SOURCES         = neumann.cc
 
154
robin2_SOURCES          = robin2.cc
 
155
sinusprod_error_SOURCES = sinusprod_error.cc
62
156
neumann_laplace_check_SOURCES = neumann-laplace-check.cc
 
157
transmission_error_SOURCES = transmission_error.cc
 
158
convect2_SOURCES = convect2.cc
 
159
navier_stokes_criterion_SOURCES = navier_stokes_criterion.cc
 
160
navier_stokes_cavity_exp_SOURCES = navier_stokes_cavity_exp.cc
 
161
vortex_position_SOURCES = vortex_position.cc
 
162
p_laplacian_post_SOURCES = p_laplacian_post.cc
 
163
 
 
164
CHECK_BALL_PRGM  =                                              \
 
165
        dirichlet_nh_ball                                       \
 
166
        dirichlet2-ball                                         \
 
167
        sinusrad_error                                          \
 
168
        cosinusrad_error                                        \
 
169
        helmholtz_s_sphere_error                                \
 
170
        stokes_cavity_check                                     \
 
171
        incompressible-elasticity-check
 
172
 
 
173
dirichlet_nh_ball_SOURCES = dirichlet_nh_ball.cc
 
174
dirichlet2_ball_SOURCES = dirichlet2-ball.cc
 
175
cosinusrad_error_SOURCES = cosinusrad_error.cc
 
176
sinusrad_error_SOURCES = sinusrad_error.cc
 
177
helmholtz_s_sphere_error_SOURCES = helmholtz_s_sphere_error.cc
 
178
stokes_cavity_check_SOURCES = stokes_cavity_check.cc
 
179
incompressible_elasticity_check_SOURCES = incompressible-elasticity-check.cc
 
180
 
 
181
BUILT_SOURCES =                                                 \
 
182
        robin2.cc                                               \
 
183
        dirichlet_nh_ball.cc                                    \
 
184
        dirichlet2-ball.cc                                      \
 
185
        sinusrad_error.cc                                       \
 
186
        cosinusrad_error.cc
 
187
 
 
188
robin2.cc: robin.cc
 
189
        sed -e "s/cosinusprod/sinusprod/" < robin.cc > robin2.cc
 
190
dirichlet_nh_ball.cc: dirichlet-nh.cc
 
191
        sed -e "s/sinusprod/sinusrad/" < dirichlet-nh.cc > dirichlet_nh_ball.cc
 
192
dirichlet2-ball.cc: dirichlet2.cc
 
193
        sed -e "s/sinusprod/sinusrad/" < dirichlet2.cc > dirichlet2-ball.cc
 
194
sinusrad_error.cc: sinusprod_error.cc
 
195
        sed -e "s/sinusprod/sinusrad/" < sinusprod_error.cc > sinusrad_error.cc
 
196
cosinusrad_error.cc: cosinusprod_error.cc
 
197
        sed -e "s/sinusprod/sinusrad/" < cosinusprod_error.cc > cosinusrad_error.cc
 
198
 
 
199
check_PROGRAMS  =                                               \
 
200
        $(CHECK_BOX_PRGM)                                       \
 
201
        $(CHECK_BALL_PRGM)
63
202
 
64
203
TESTS =                                                         \
65
 
        $(CHECK_EXAMPLE_PRGM:=.sh)
 
204
        $(CHECK_EXAMPLE_PRGM:=.sh)                              \
 
205
        neumann.sh                                              \
 
206
        dirichlet2.sh                                           \
 
207
        robin2.sh                                               \
 
208
        dirichlet_nh_ball.sh
 
209
 
 
210
TESTS_EXTRA_H =                                                 \
 
211
        sinusprod.icc                                           \
 
212
        sinusprod_laplace.icc                                   \
 
213
        cosinusprod_helmholtz.icc                               \
 
214
        sinusrad.icc                                            \
 
215
        sinusrad_laplace.icc
 
216
 
66
217
 
67
218
TESTS_ENVIRONMENT  =                                            \
68
219
        SRCDIR=${srcdir};     export SRCDIR;                    \
73
224
        /bin/sh
74
225
 
75
226
GEO_SRC =                                                       \
76
 
        line-1-bdry.geo                                         \
77
 
        line-2-bdry.geo                                         \
78
 
        line-3-bdry.geo                                         \
79
 
        line-20-bdry.geo                                        \
80
227
        square-10-bdry.geo                                      \
81
 
        cube-5-bdry.geo
 
228
        square-bamg-q-bdry.geo                                  \
 
229
        cube-5-bdry.geo                                         \
 
230
        cube-H-6-bdry.geo                                       \
 
231
        contraction-small.geo                                   \
 
232
        contraction-small-zr.geo
82
233
 
83
234
FIELD_SRC =                                                     \
84
235
        dirichlet-line-1-bdry-P1.field                          \
 
236
        dirichlet-line-1-bdry-P2.field                          \
 
237
        dirichlet-line-1-bdry-P3.field                          \
85
238
        dirichlet-line-2-bdry-P1.field                          \
 
239
        dirichlet-line-2-bdry-P2.field                          \
 
240
        dirichlet-line-2-bdry-P3.field                          \
86
241
        dirichlet-line-3-bdry-P1.field                          \
 
242
        dirichlet-line-3-bdry-P2.field                          \
 
243
        dirichlet-line-3-bdry-P3.field                          \
87
244
        dirichlet-line-20-bdry-P1.field                         \
 
245
        dirichlet-line-20-bdry-P2.field                         \
 
246
        dirichlet-line-20-bdry-P3.field                         \
88
247
        dirichlet-square-10-bdry-P1.field                       \
89
 
        dirichlet-cube-5-bdry-P1.field
 
248
        dirichlet-square-10-bdry-P2.field                       \
 
249
        dirichlet-square-10-bdry-P3.field                       \
 
250
        dirichlet-cube-5-bdry-P1.field                          \
 
251
        dirichlet-cube-5-bdry-P2.field                          \
 
252
        dirichlet-cube-5-bdry-P3.field                          \
 
253
        dirichlet-cube-P-5-dom-v2-P1.field                      \
 
254
        dirichlet-cube-P-5-dom-v2-P2.field                      \
 
255
        dirichlet-cube-P-5-dom-v2-P3.field                      \
 
256
        dirichlet-my_cube_PH-5-v2-P1.field                      \
 
257
        dirichlet-my_cube_PH-5-v2-P2.field                      \
 
258
        dirichlet-my_cube_PH-5-v2-P3.field                      \
 
259
        dirichlet-my_cube_TP-5-v2-P1.field                      \
 
260
        dirichlet-my_cube_TP-5-v2-P2.field                      \
 
261
        dirichlet-my_cube_TP-5-v2-P3.field                      \
 
262
        dirichlet-my_cube_TPH-5-v2-P1.field                     \
 
263
        dirichlet-my_cube_TPH-5-v2-P2.field                     \
 
264
        dirichlet-my_cube_TPH-5-v2-P3.field                     \
 
265
        embankment-carre-dom-v2-P1.field                        \
 
266
        embankment-carre-dom-v2-P2.field                        \
 
267
        embankment-carre-dom-v2-P3.field                        \
 
268
        contraction-bubble-small.field                          \
 
269
        streamf-contraction-small-zr.field
 
270
 
 
271
VALID =                                                         \
 
272
        convect-1d.out.valid                                    \
 
273
        convect-2d.out.valid                                    \
 
274
        convect-3d.out.valid
90
275
 
91
276
EXTRA_DIST =                                                    \
92
277
        Makefile.am                                             \
93
278
        ${EXAMPLES_FILES}                                       \
 
279
        ${TESTS_EXTRA_H}                                        \
94
280
        ${TESTS}                                                \
95
281
        ${GEO_SRC}                                              \
96
 
        ${FIELD_SRC}
 
282
        ${FIELD_SRC}                                            \
 
283
        $(CONCAT_CHECK_PROGS:=.sh)                              \
 
284
        ${VALID}                                                \
 
285
        navier_stokes_solve_exp.icc                             \
 
286
        cvge.sh                                                 \
 
287
        cvge-disto.sh                                           \
 
288
        mkgeo_ugrid_2d.sh                                       \
 
289
        cvge-dirichlet-pente.gdat                               \
 
290
        cvge-dirichlet-nh-pente.gdat                            \
 
291
        cvge-neumann-pente.gdat                                 \
 
292
        cvge-neumann-nh-pente.gdat                              \
 
293
        convect-cvge.sh                                         \
 
294
        transmission-mixed.cc                                   \
 
295
        cahouet-chabart.h                                       \
 
296
        contraction-small.mshcad
97
297
 
98
298
CLEANFILES = *.ii *.ii_pic *.gcov *.[oa1359] KCC_files/*        \
99
299
        *.glog KCC_pic/*
104
304
                $(srcdir)/Makefile.in
105
305
 
106
306
CVSIGNORE =                                                     \
 
307
        $(BUILT_SOURCES)                                        \
107
308
        ${NONLOCAL_IGNORE}
108
309
 
109
310
WCIGNORE =                                                      \
122
323
 
123
324
INCLUDES =                              \
124
325
        -I${top_builddir}/include       \
125
 
        $(INCLUDES_SOLVER)              \
126
 
        $(INCLUDES_PARTITIONNER)        \
127
326
        $(INCLUDES_BOOST_MPI)           \
128
327
        $(INCLUDES_MPI)                 \
129
328
        $(INCLUDES_FLOAT)
130
329
 
131
330
LDADD    =                              \
132
 
        ../../nfem/plib/libfem.la       \
133
 
        ../../nfem/pform_element/libform.la     \
134
 
        ../../nfem/basis/libbasis.la    \
135
 
        ../../skit/plib2/libskit.la     \
136
 
        ../../util/lib/libutil.la       \
 
331
        ../../nfem/pform_element/librheolef.la  \
 
332
        $(LDADD_CGAL)                   \
137
333
        $(LDADD_SOLVER)                 \
138
334
        $(LDADD_PARTITIONNER)           \
139
335
        $(LDADD_BOOST_MPI)              \
147
343
        cd ../../nfem; ${MAKE}
148
344
 
149
345
install-data-local: dvi
150
 
        mkdirhier $(DESTDIR)$(exampledir)
 
346
        $(MKDIRHIER) $(DESTDIR)$(exampledir)
151
347
        rm -f $(DESTDIR)$(exampledir)/*
152
348
        for f in $(EXAMPLES_FILES); do                          \
153
349
            $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(exampledir)/$$f;  \