[petsc-users] Error: Symbol 'petsc_default_real' at (1) has no IMPLICIT type

Barry Smith bsmith at mcs.anl.gov
Wed Oct 29 21:02:40 CDT 2014


  Hmm, could you send us a (simple) code that reproduces the problem; I don’t think we have a petsc_default_real anywhere.

  Barry

> On Oct 29, 2014, at 8:52 PM, TAY wee-beng <zonexo at gmail.com> wrote:
> 
> Hi,
> 
> When compiling using gnu gfortran, I got the following error msg:
> 
> Error: Symbol 'petsc_default_real' at (1) has no IMPLICIT type
> 
> My code is :
> 
> module PETSc_solvers
> 
> use set_matrix
> 
> use ibm
> 
> implicit none
> 
> contains
> 
> subroutine semi_momentum_simple_xyz(du,dv,dw)
> 
> !discretise momentum eqn using semi-implicit mtd
> 
> !simple except east,west
> 
> #include "finclude/petsc.h90"
> 
> ...
> 
> call KSPSetTolerances(ksp_semi_xyz,tol,PETSC_DEFAULT_REAL,PETSC_DEFAULT_REAL,PETSC_DEFAULT_INTEGER,ierr) -> error
> 
> There's no problem when using ifort though.
> -- 
> Thank you
> 
> Yours sincerely,
> 
> TAY wee-beng
> 



More information about the petsc-users mailing list