<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jed,<br>
<br>
For me the fix was to delete & in case there is empty line after
it. But I guess this situation might be fixed in your generator
since anyway such a construction makes no sense:<br>
<br>
subroutine VecGhostUpdateBegin(g, insertmode, scattermode
,ierr)&
<div> &<br>
<br>
and is equal to:<br>
<br>
subroutine VecGhostUpdateBegin(g, insertmode, scattermode ,ierr)<br>
</div>
<br>
Regards,<br>
Alexander<br>
<br>
On 20.09.2011 09:49, Jed Brown wrote:
<blockquote
cite="mid:CAM9tzSn3kWwiTdY8gr+ZexX72w6gcEkowKgKSzd5j4R24aO67g@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Tue, Sep 20, 2011 at 09:36, Alexander
Grayver <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hello Petsc team,<br>
<br>
Since petsc-3.1-p7 I observe insignificant but annoying syntax
error which occurs in petscmat.h90/petscvec.h90 and have to
fix it manually when make petsc.<br>
I use Intel Fortran 11.1 compiler and errors is following:<br>
<br>
/home/lib/petsc-3.2-p2/include/finclude/ftn-auto/petscvec.h90(620):
error #5153: Illegal continuation. No valid non_commentary
source following &.<br>
&<br>
</blockquote>
<div><br>
</div>
<div>It looks like the line length calculation has an off-by-one
error, so it incorrectly puts a continuation when none is
needed. Not sure why the compiler chokes on this (does the
standard actually disallow it?), but the fix is to fix the
line length calculation.</div>
<div><br>
</div>
<div>
<div> subroutine VecGhostUpdateBegin(g, insertmode,
scattermode ,ierr)&</div>
<div> &</div>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
------^<br>
/home/lib/petsc-3.2-p2/include/finclude/ftn-auto/petscvec.h90(621):
error #5082: Syntax error, found '=' when expecting one of: )
,<br>
integer(kind=selected_int_kind(10)) g !
integer(kind=selected_int_kind(10))<br>
-------------------^<br>
<br>
It happens due to this:<br>
<br>
subroutine VecGhostUpdateBegin(g, insertmode,
scattermode ,ierr)&<br>
& ! <<<<<<<<<<<< ERROR<br>
Vec g ! Vec<br>
InsertMode insertmode ! InsertMode<br>
ScatterMode scattermode ! ScatterMode<br>
integer ierr<br>
end subroutine<br>
subroutine VecGhostUpdateEnd(g, insertmode, scattermode
,ierr)<br>
Vec g ! Vec<br>
InsertMode insertmode ! InsertMode<br>
ScatterMode scattermode ! ScatterMode<br>
integer ierr<br>
end subroutine<br>
<br>
If I delete & everything is ok. Moreover, I don's see any
reason to have it there...<br>
Is it my specific compiler options or what?<br>
<br>
Regards,<br>
<font color="#888888">
Alexander<br>
</font></blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>