← Back to team overview

dolfin team mailing list archive

Re: [HG] Updated elasticity:

 

I just took a look, and everuthing looks OK.

Garth

Garth N. Wells wrote:
> Sorry, I think I had it wrong. I assumed that you were adding
> PETSC_EXTERNAL_CFLAGS. You will of course need the PETSc includes. Just
> make sure that header files for external PETSc libraries (Hypre, BLAS,
> etc) are not being included. The PETSc flags should be returned by running
> 
>   make -f petsc.conf get_petsc_include
> 
> from the top directory.
> 
> Garth
> 
>> Ok, I didn't know that. Maybe I've misunderstood something, but the
>> demos didn't compile for me. For example, in the Poisson demo
>> src/demo/pde/poisson/Makefile:
>>
>> CFLAGS  = `dolfin-config --cflags`
>> ...
>> $(DEST): $(OBJECTS)
>>          $(LINK) -o $@ $(OBJECTS) $(CFLAGS) $(LIBS)
>>
>> If CFLAGS doesn't include any include paths (to PETSc for instance),
>> then it won't be able to find the headers for library dependencies.
>>
>> Did this work for you before I changed it? It seems it was changed in
>> this changeset:
>>
>> http://www.fenics.org/hg/dolfin?cs=866f7f5da06f
>>
>> I assumed this was an oversight since uBlas is standard now instead of
>> PETSc.
>>
>>   Johan
>>
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
> 




Follow ups

References