<div dir="ltr"><div dir="ltr">On Thu, Oct 17, 2019 at 2:29 PM Matthew Agius via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for your help<div>Now I have this error:</div><div><br></div><div><div><span style="font-variant-ligatures:no-common-ligatures"><b><i>Error: Symbol 'petsc_null_character' at (1) has no IMPLICIT type</i></b></span><br><br></div><div>Any idea on this one?</div></div></div></blockquote><div><br></div><div>You need the proper includes and modules. First try building an example</div><div><br></div><div> cd $PETSC_DIR</div><div> cd src/snes/examples/tutorials</div><div> make ex5f</div><div><br></div><div>If that works, mirror the style in that file.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-variant-ligatures:no-common-ligatures">petscinv.F90:147.56:</span><br><span style="font-variant-ligatures:no-common-ligatures"> call PetscOptionsGetInt(PETSC_NULL_CHARACTER,&</span><br><span style="font-variant-ligatures:no-common-ligatures"> 1</span><br><span style="font-variant-ligatures:no-common-ligatures">Error: Symbol 'petsc_null_character' at (1) has no IMPLICIT type</span><br><span style="font-variant-ligatures:no-common-ligatures">petscinv.F90:227.12:</span><br><span style="font-variant-ligatures:no-common-ligatures"> use module_options</span><br><span style="font-variant-ligatures:no-common-ligatures"> 1</span><br><span style="font-variant-ligatures:no-common-ligatures">Fatal Error: Can't open module file 'module_options.mod' for reading at (1): No such file or directory</span><br><span style="font-variant-ligatures:no-common-ligatures">make: [petscinv] Error 1 (ignored)</span></blockquote><div><br></div><div><br></div><div>Many many thanks dear PETSc users !</div><div>Matthew </div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 15 Oct 2019 at 18:42, Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 15 Oct 2019, Matthew Agius via petsc-users wrote:<br>
<br>
> Dear PETSC users,<br>
> <br>
> This is my first attempt at PETSC package.<br>
> <br>
> First step, I think I have installed PETSC, well at least no errors.<br>
> Now I am trying to run a simple makefile as suggested in the manual<br>
> I am confused about undeclared variables in the example makefiles that I am<br>
> coming across; variables such as:<br>
> <br>
> > ${CLINKER} ${PETSC_LIB} ${PETSC_SYS_LIB} ${PETSC_VEC_LI B}<br>
> > ${PETSC_MAT_LIB} ${PETSC_DM_LIB} ${PETSC_KSP_LIB} ${PETSC_SNES_LIB}<br>
> > or ${PETSC_TS_LIB}.<br>
> <br>
> Are these environmental variables?<br>
<br>
nope - they are declared in other makefiles - and picked up with:<br>
<br>
include ${PETSC_DIR}/lib/petsc/conf/variables<br>
include ${PETSC_DIR}/lib/petsc/conf/rules<br>
<br>
<br>
> So far I only have PETSC_DIR declared in my environment.<br>
> Do I have to declare each one? What are they?<br>
> <br>
> The error I am actually getting is<br>
> <br>
> > error #6404: This name does not have a type, and must have an explicit<br>
> > type. [PETSC_NULL_CHARACTER]<br>
> <br>
> This is probably due to a missing Include library file in the compilation.<br>
> Any hint which one it is?<br>
<br>
Presumably this is not a petsc example with petsc makefile.<br>
<br>
Please compare the output of compiling your code/makefile - with a petsc example/makefile and check for differences.<br>
<br>
i.e<br>
cd src/ksp/ksp/examples/tutorials<br>
make ex2<br>
<br>
Satish<br>
<br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>