<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Sorry I realised that <br>
<br>
<b>#include "finclude/petscdmda.h90"</b><br>
<b>#include "finclude/petscksp.h90"</b><br>
<br>
also gave errors:<br>
<br>
<b><i>/home/wtay/Lib/petsc-3.4.4_shared_rel/include/finclude/ftn-custom/petscdmda.h90(10):
error #5082: Syntax error, found ',' when expecting one of: (
% [ : . = =></i></b><b><i><br>
</i></b><b><i> PetscInt, pointer :: array(:)</i></b><b><i><br>
</i></b><b><i>------------------^</i></b><b><i><br>
</i></b><b><i>/home/wtay/Lib/petsc-3.4.4_shared_rel/include/finclude/ftn-custom/petscdmda.h90(10):
error #5082: Syntax error, found END-OF-STATEMENT when
expecting one of: ) ,</i></b><b><i><br>
</i></b><b><i> PetscInt, pointer :: array(:)</i></b><b><i><br>
</i></b><b><i>---------------------------------------^</i></b><b><i><br>
</i></b><b><i>/home/wtay/Lib/petsc-3.4.4_shared_rel/include/finclude/ftn-custom/petscdmda.h90(11):
error #5082: Syntax error, found IDENTIFIER 'N' when expecting
one of: ( % [ : . = =></i></b><b><i><br>
</i></b><b><i> PetscInt n</i></b><b><i><br>
</i></b><b><i>--------------------^</i></b><b><i><br>
</i></b><b><i>/home/wtay/Lib/petsc-3.4.4_shared_rel/include/finclude/ftn-custom/petscdmda.h90(12):
error #5082: Syntax error, found IDENTIFIER 'IERR' when
expecting one of: ( % [ : . = =></i></b><b><i><br>
</i></b><b><i> PetscErrorCode ierr</i></b><b><i><br>
</i></b><b><i>-------------------------^</i></b><b><i><br>
</i></b><b><i>/home/wtay/Lib/petsc-3.4.4_shared_rel/include/finclude/ftn-custom/petscdmda.h90(13):
error #5082: Syntax error, found IDENTIFIER 'V' when expecting
one of: ( % [ : . = =></i></b><br>
<pre class="moz-signature" cols="72">Thank you
Yours sincerely,
TAY wee-beng</pre>
On 7/4/2014 6:16 PM, TAY wee-beng wrote:<br>
</div>
<blockquote cite="mid:53427B12.7030307@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
I encountered the error below when compiling my code using intel
fortran:<br>
<br>
/tmp/ifortlPEDlK.i90: catastrophic error: **Internal compiler
error: segmentation violation signal raised** Please report this
error along with the circumstances in which it occurred in a
Software Problem Report. Note: File and line given may not be
explicit cause of this error.<br>
<br>
In the end, I realised that it is due to using <b>petsc.h90</b>:<br>
<br>
module PETSc_solvers<br>
<br>
use set_matrix<br>
<br>
...<br>
<br>
implicit none<br>
<br>
contains<br>
<br>
subroutine semi_momentum_simple_xyz(du,dv,dw)<br>
<br>
<b>#include "finclude/petsc.h90"</b><br>
<br>
integer :: i,j,k,ijk,ierr,II !,ro...<br>
<br>
If I use :<br>
<br>
<b>#include "finclude/petsc.h"<br>
<br>
or<br>
</b><br>
<b>#include "finclude/petscdmda.h90"</b><br>
<b>#include "finclude/petscksp.h90"</b><br>
<br>
Then there is no problem.<br>
<br>
May I know why this is happening?<br>
<br>
Although I can now compile and build successfully, is this the
right way to go?<br>
<br>
<pre class="moz-signature" cols="72">--
Thank you
Yours sincerely,
TAY wee-beng</pre>
</blockquote>
<br>
</body>
</html>