← Back to team overview

dolfin team mailing list archive

Re: demo/ode/harmonic/cpp

 

On Mon, Aug 16, 2010 at 12:24:11PM +0100, Garth N. Wells wrote:
> On Mon, 2010-08-16 at 13:10 +0200, Anders Logg wrote:
> > On Mon, Aug 16, 2010 at 10:52:12AM +0100, Garth N. Wells wrote:
> > > On Mon, 2010-08-16 at 11:49 +0200, Anders Logg wrote:
> > > > On Mon, Aug 16, 2010 at 11:12:49AM +0200, Anders Logg wrote:
> > > > > On Mon, Aug 16, 2010 at 10:11:08AM +0100, Garth N. Wells wrote:
> > > > > > Could the two files containing a 'main' function in
> > > > > > demo/ode/harmonic/cpp be merged, or one removed? I have written a script
> > > > > > to generate CMakeLists.txt for all demos, but it doesn't like having two
> > > > > > 'main' functions in .cpp files in one directory.
> > > > >
> > > > > Yes, that should be simple to fix. I'll take a look.
> > > >
> > > > Fixed.
> > > >
> > >
> > > Thanks.
> > >
> > > Now, if you run
> > >
> > >   ./scripts/generate_cmake
> > >
> > > after installing DOLFIN, then run
> > >
> > >   cmake .
> > >
> > > in demo/
> > >
> > > and then
> > >
> > >   make
> > >
> > > in demo, all the demos will be built.
> > >
> > > Garth
> >
> > Doesn't work here. Is there a top-level Makefile missing in demo/?
> >
>
> Yes, the CMakeFile.txt was missing. I've just added it.

It looks a bit strange:

# Manual list of C++ demo directories
set(DOLFIN_DEMOS_DIRS
  /home/garth/code/fenics/dolfin/dolfin-cmake/demo/pde/poisson/cpp
  #/home/garth/code/fenics/dolfin/dolfin-cmake/demo/pde/elasticity/cpp
  #/home/garth/code/fenics/dolfin/dolfin-cmake/demo/pde/simple/cpp
  )

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References