[petsc-dev] openmp
Jed Brown
jedbrown at mcs.anl.gov
Wed Nov 6 21:45:58 CST 2013
Svetlana Tkachenko <svetlana.tkachenko at fastmail.fm> writes:
> On Thu, 7 Nov 2013, at 13:59, Jed Brown wrote:
>> Svetlana Tkachenko <svetlana.tkachenko at fastmail.fm> writes:
>> > What do you mean? (I don't think the program name has to be 'main'.).
>>
>> No, it doesn't. The name is meaningless in Fortran, but you need to use
>> the keyword "program".
>>
>> > ~/dev/test/petsc $ cat myexample.F90
>> > program myexample
>> >
>> > call solver
>> > end
>> > ~/dev/test/petsc $
>>
>> Add myexample.o to the makefile so it gets compiled.
>
> Already did, please, see:
>
> ~/dev/test/petsc $ cat makefile
> myexample: myexample.o solver.o
> ${CLINKER} -o $@ $^ ${PETSC_LIB}
>
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
> ~/dev/test/petsc $
Run make clean; make. If you get the same error, check
$ nm myexample.o
U _gfortran_set_args
U _gfortran_set_options
U _GLOBAL_OFFSET_TABLE_
0000000000000000 T main
0000000000000000 r options.0.1881
U solver_
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131106/8e6a3aad/attachment.sig>
More information about the petsc-dev
mailing list