Also, you should either be including the MPI header path in your compilation 
command or use mpif90 wrapper when compiling codes that use PETSc as PETSc uses 
MPI. 

Regards,
Wadud.

-----Original Message-----
From: petsc-users-bounces at mcs.anl.gov [mailto:petsc-users-bounces at 
mcs.anl.gov] On Behalf Of [email protected]
Sent: 29 April 2013 13:37
To: sonyablade2010 at hotmail.com; petsc-users at mcs.anl.gov
Subject: EXTERNAL: Re: [petsc-users] EXTERNAL: Re: EXTERNAL: Re: EXTERNAL: How 
to run Petsc in Fortran

Hi Sonya,

>From the command line you wrote, you are not running the pre-processor. 
>Include the flag:

-cpp

In your compilation command. 

Regards,
Wadud.

-----Original Message-----
From: petsc-users-bounces at mcs.anl.gov 
[mailto:[email protected]] On Behalf Of Sonya Blade
Sent: 29 April 2013 13:28
To: petsc-users at mcs.anl.gov
Subject: EXTERNAL: Re: [petsc-users] EXTERNAL: Re: EXTERNAL: How to run Petsc 
in Fortran

> Hi Sonya,
>
> As this is Fortran 90, I think you should be using the double colon to 
> allocate variables:
>
> PetscReal :: norm
>
> Regards,
> Wadud.

Although you are right, compiler doesn't raises error due to the wrong 
declaration type of norm,
it keeps showing where PetscReal is not known.

"Error: Unclassifiable statement at (1)"

Regards,                                          

___________________________________________________
____________________________

The information in this email and in any attachment(s) is
commercial in confidence. If you are not the named addressee(s)
or
if you receive this email in error then any distribution, copying or
use of this communication or the information in it is strictly
prohibited. Please notify us immediately by email at
admin.internet(at)awe.co.uk, and then delete this message from
your computer. While attachments are virus checked, AWE plc
does not accept any liability in respect of any virus which is not
detected.

AWE Plc
Registered in England and Wales
Registration No 02763902
AWE, Aldermaston, Reading, RG7 4PR

___________________________________________________
____________________________

The information in this email and in any attachment(s) is 
commercial in confidence. If you are not the named addressee(s) 
or 
if you receive this email in error then any distribution, copying or 
use of this communication or the information in it is strictly 
prohibited. Please notify us immediately by email at 
admin.internet(at)awe.co.uk, and then delete this message from 
your computer. While attachments are virus checked, AWE plc 
does not accept any liability in respect of any virus which is not 
detected.

AWE Plc
Registered in England and Wales
Registration No 02763902
AWE, Aldermaston, Reading, RG7 4PR

Reply via email to