[petsc-users] Intel Internal compiler error: segmentation violation signal raised
TAY wee-beng
zonexo at gmail.com
Mon Apr 7 18:46:56 CDT 2014
On 8/4/2014 12:40 AM, Matthew Knepley wrote:
> How about just including petsc.h90 so you get everything.
>
> Thanks,
>
> Matt
>
Sorry this is my 2nd email. See below for the 1st email. Using petsc.h90
gave the error "... segmentation violation signal raised ...."
>
> On Mon, Apr 7, 2014 at 5:19 AM, TAY wee-beng <zonexo at gmail.com
> <mailto:zonexo at gmail.com>> wrote:
>
> Sorry I realised that
>
> *#include "finclude/petscdmda.h90"*
> *#include "finclude/petscksp.h90"*
>
> also gave errors:
>
> *//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: ( % [
> : . = =>/**/
> /**/ PetscInt, pointer :: array(:)/**/
> /**/------------------^/**/
> /**//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: ) ,/**/
> /**/ PetscInt, pointer :: array(:)/**/
> /**/---------------------------------------^/**/
> /**//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: ( % [ : . = =>/**/
> /**/ PetscInt n/**/
> /**/--------------------^/**/
> /**//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: ( % [ : . = =>/**/
> /**/ PetscErrorCode ierr/**/
> /**/-------------------------^/**/
> /**//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: ( % [ : . = =>/*
>
> Thank you
>
> Yours sincerely,
>
> TAY wee-beng
>
> On 7/4/2014 6:16 PM, TAY wee-beng wrote:
>
Here's the 1st email:
>
>> Hi,
>>
>> I encountered the error below when compiling my code using intel
>> fortran:
>>
>> /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.
>>
>> In the end, I realised that it is due to using *petsc.h90*:
>>
>> module PETSc_solvers
>>
>> use set_matrix
>>
>> ...
>>
>> implicit none
>>
>> contains
>>
>> subroutine semi_momentum_simple_xyz(du,dv,dw)
>>
>> *#include "finclude/petsc.h90"*
>>
>> integer :: i,j,k,ijk,ierr,II !,ro...
>>
>> If I use :
>>
>> *#include "finclude/petsc.h"
>>
>> or
>> *
>> *#include "finclude/petscdmda.h90"*
>> *#include "finclude/petscksp.h90"*
>>
>> Then there is no problem.
>>
>> May I know why this is happening?
>>
>> Although I can now compile and build successfully, is this the
>> right way to go?
>>
>> --
>> Thank you
>>
>> Yours sincerely,
>>
>> TAY wee-beng
>
>
>
>
> --
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140408/a6b111ac/attachment.html>
More information about the petsc-users
mailing list