[petsc-users] Makefile problems: environmental variables, includes paths and libraries.
Matthew Knepley
knepley at gmail.com
Thu Oct 17 13:53:38 CDT 2019
On Thu, Oct 17, 2019 at 2:29 PM Matthew Agius via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Thanks for your help
> Now I have this error:
>
> *Error: Symbol 'petsc_null_character' at (1) has no IMPLICIT type*
>
> Any idea on this one?
>
You need the proper includes and modules. First try building an example
cd $PETSC_DIR
cd src/snes/examples/tutorials
make ex5f
If that works, mirror the style in that file.
Thanks,
Matt
> petscinv.F90:147.56:
>> call PetscOptionsGetInt(PETSC_NULL_CHARACTER,&
>> 1
>> Error: Symbol 'petsc_null_character' at (1) has no IMPLICIT type
>> petscinv.F90:227.12:
>> use module_options
>> 1
>> Fatal Error: Can't open module file 'module_options.mod' for reading at
>> (1): No such file or directory
>> make: [petscinv] Error 1 (ignored)
>
>
>
> Many many thanks dear PETSc users !
> Matthew
>
>
> On Tue, 15 Oct 2019 at 18:42, Balay, Satish <balay at mcs.anl.gov> wrote:
>
>> On Tue, 15 Oct 2019, Matthew Agius via petsc-users wrote:
>>
>> > Dear PETSC users,
>> >
>> > This is my first attempt at PETSC package.
>> >
>> > First step, I think I have installed PETSC, well at least no errors.
>> > Now I am trying to run a simple makefile as suggested in the manual
>> > I am confused about undeclared variables in the example makefiles that
>> I am
>> > coming across; variables such as:
>> >
>> > > ${CLINKER} ${PETSC_LIB} ${PETSC_SYS_LIB} ${PETSC_VEC_LI B}
>> > > ${PETSC_MAT_LIB} ${PETSC_DM_LIB} ${PETSC_KSP_LIB}
>> ${PETSC_SNES_LIB}
>> > > or ${PETSC_TS_LIB}.
>> >
>> > Are these environmental variables?
>>
>> nope - they are declared in other makefiles - and picked up with:
>>
>> include ${PETSC_DIR}/lib/petsc/conf/variables
>> include ${PETSC_DIR}/lib/petsc/conf/rules
>>
>>
>> > So far I only have PETSC_DIR declared in my environment.
>> > Do I have to declare each one? What are they?
>> >
>> > The error I am actually getting is
>> >
>> > > error #6404: This name does not have a type, and must have an explicit
>> > > type. [PETSC_NULL_CHARACTER]
>> >
>> > This is probably due to a missing Include library file in the
>> compilation.
>> > Any hint which one it is?
>>
>> Presumably this is not a petsc example with petsc makefile.
>>
>> Please compare the output of compiling your code/makefile - with a petsc
>> example/makefile and check for differences.
>>
>> i.e
>> cd src/ksp/ksp/examples/tutorials
>> make ex2
>>
>> Satish
>>
>>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191017/28298b5a/attachment.html>
More information about the petsc-users
mailing list