[petsc-dev] openmp
Svetlana Tkachenko
svetlana.tkachenko at fastmail.fm
Wed Nov 6 17:47:37 CST 2013
On Thu, 7 Nov 2013, at 9:22, Jed Brown wrote:
> Svetlana Tkachenko <svetlana.tkachenko at fastmail.fm> writes:
>
> > Thanks. Could you please send an example makefile for this small
> > example as src/ts/examples/tutorials/makefile is huge and I don't know
> > which part of it manages the -I -L stuff.
>
> There are examples in the user's manual. I would start with this:
>
> ALL: ex2
>
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
> ex2: ex2.o chkopts
> ${CLINKER} -o $@ $< ${PETSC_LIB}
> Email had 1 attachment:
> + Attachment2
> 1k (application/pgp-signature)
On Thu, 7 Nov 2013, at 9:21, Matthew Knepley wrote:
> prog: prog.o
> ${CLINKER} -o prog prog.o ${PETSC_LIB}
>
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
>
> Matt
Right. I have spent half of an hour now trying to imagine what to do to link trying everything like a headless chicken and it did not work. I would appreciate if you could come up with something that links, not just runs a single program.
More information about the petsc-dev
mailing list