[petsc-users] preprocessing problem
Satish Balay
balay at mcs.anl.gov
Tue Jun 30 17:20:56 CDT 2015
Where did you grab this example from? the 'makefile' should be in the
same location.
For eg: if you grabbed src/ksp/ksp/examples/tutorials/ex2f.F - then you would use:
http://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/makefile
The users manual has a section explaining the format.
http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf#subsection.16.2.1
Satish
On Tue, 30 Jun 2015, W. Miah wrote:
> Hi Satish,
>
> I can't find the Makefile that came with it. I'll have a trawl through
> the petsc download again, but if you could give me the compilation
> line that would be appreciated.
>
> Best regards,
> Wadud.
>
> On 30 June 2015 at 23:11, Satish Balay <balay at mcs.anl.gov> wrote:
> > On Tue, 30 Jun 2015, W. Miah wrote:
> >
> >> Hi,
> >>
> >> This is probably a simple mistake, but I am getting the following
> >> error when trying to compile a Fortran PETSc example:
> >>
> >> [host petsc-examples]$ mpiifort -c -I/home/fcwm/petsc-3.6.0/include
> >> -I/home/fcwm/petsc-3.6.0/include/petsc ex2f.F
> >> ex2f.F(82): error #5082: Syntax error, found ',' when expecting one
> >> of: ( % [ : . = =>
> >> Vec x,b,u
> >> ------------------^
> >>
> >> Any help will be greatly appreciated. Thanks in advance.
> >
> > Are you not using the correspoding makefile that came with this example?
> >
> > Satish
> >
>
>
>
>
More information about the petsc-users
mailing list