<div dir="ltr"><div><div><div><div>Hi Ansgar<br><br></div>My Makefile.am in /src is:<br><br>SUBDIRS =<br><br>noinst_PROGRAMS = dune_foo<br><br>dune_foo_SOURCES = dune_foo.cc<br><br>dune_foo_CPPFLAGS = $(AM_CPPFLAGS) \<br> $(DUNEMPICPPFLAGS) \<br> $(UG_CPPFLAGS) \<br> $(AMIRAMESH_CPPFLAGS) \<br> $(ALBERTA_CPPFLAGS) \<br> $(ALUGRID_CPPFLAGS)<br># The libraries have to be given in reverse order (most basic libraries<br># last). Also, due to some misunderstanding, a lot of libraries include the<br># -L option in LDFLAGS instead of LIBS -- so we have to include the LDFLAGS<br># here as well.<br>dune_foo_LDADD = \<br> $(DUNE_LDFLAGS) $(DUNE_LIBS) \<br> $(ALUGRID_LDFLAGS) $(ALUGRID_LIBS) \<br> $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS) \<br> $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS) \<br> $(UG_LDFLAGS) $(UG_LIBS) \<br> $(DUNEMPILIBS) \<br> $(LDADD)<br>dune_foo_LDFLAGS = $(AM_LDFLAGS) \<br> $(DUNEMPILDFLAGS) \<br> $(UG_LDFLAGS) \<br> $(AMIRAMESH_LDFLAGS) \<br> $(ALBERTA_LDFLAGS) \<br> $(ALUGRID_LDFLAGS) \<br> $(DUNE_LDFLAGS)<br><br># don't follow the full GNU-standard<br># we need automake 1.5<br>AUTOMAKE_OPTIONS = foreign 1.5<br><br># pass most important options when "make distcheck" is used<br>DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-geometry=$(DUNE_GEOMETRY_ROOT) --with-dune-grid=$(DUNE_GRID_ROOT) --with-dune-istl=$(DUNE_ISTL_ROOT) --with-dune-localfunctions=$(DUNE_LOCALFUNCTIONS_ROOT) --with-dune-fem=$(DUNE_FEM_ROOT) --with-dune-grid-howto=$(DUNE_GRID_HOWTO_ROOT) --with-dune-grid-dev-howto=$(DUNE_GRID_DEV_HOWTO_ROOT) CXX="$(CXX)" CC="$(CC)" ALBERTA_DIM="$(WORLDDIM)"<br><br>EXTRA_DIST = CMakeLists.txt<br><br>include $(top_srcdir)/am/global-rules<br><br></div>Here I have manually added ALBERTA_DIM="$(WORLDDIM)" in the configure flags line but the problem remains. Is this the correct way of defining alberta_dim? A 2013 Grid interface howto document says one needs to give --with-alberta-dim=2, --with-alberta-world-dim=2<br></div>while configuring Dune and only these dimensions can then be used. Do you suggest I rerun ./configure in my dune-common folder with these values set?<br><br></div><div>If Alberta is going to have restrictions on the dimensions, is it possible to consider Gmsh?<br></div><div><br></div>Thanks,<br>Ganesh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 4:29 PM, Ansgar Burchardt <span dir="ltr"><<a href="mailto:"Ansgar Burchardt"@43-1.org" target="_blank">"Ansgar Burchardt"@43-1.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On 02/09/2015 05:08 PM, Ganesh Diwan wrote:<br>
> Is -DENABLE_ALBERTA=1 included in the compiler flags? You have to add<br>
> $(ALBERTA_CPPFLAGS) in the Makefile.am for this, and I think also<br>
> ALBERTA_LIBS and ALBERTA_LDFLAGS to the LIBS (LDFLAGS) variables of your<br>
> program.<br>
><br>
> My Makefile has<br>
><br>
</span>> ALBERTA1D_CPPFLAGS = [...]<br>
> ALBERTA1D_LDFLAGS = [...]<br>
> ALBERTA1D_LIBS = [...]<br>
><br>
> Should this not suffice?<br>
<br>
No, as far as I know that alone is not enough: some optional features<br>
still have to be explicitly added to the compiler flags[1], just having<br>
them detected by the configure script is not enough.<br>
<br>
Please make sure that in Makefile.am<br>
<br>
- yourprogram_CPPFLAGS includes $(ALBERTA_CPPFLAGS)<br>
- yourprogram_LDADD includes $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS)<br>
- yourprogram_LDFLAGS includes $(ALBERTA_LDFLAGS)<br>
<br>
and that ALBERTA_DIM is set to the world dimension (also in Makefile.am).<br>
<br>
Ansgar<br>
<br>
[1] Note that DUNE will default to add all flags by default in the<br>
future, though I guess that might not work with Alberta as the<br>
flags depend on the dimension.<br>
cf.<br>
<<a href="https://dune-project.org/flyspray/index.php?do=details&task_id=1557" target="_blank">https://dune-project.org/flyspray/index.php?do=details&task_id=1557</a>><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
</div></div></blockquote></div><br></div>