Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29242 Discussions

Error: The attributes of this name conflict with those made accessible by a USE statement.[PRECISION]

smanoj
Beginner
1,487 Views
Hi ,

I am getting this error in my fortran code and I am not able to figure it out.

"Error: The attributes of this name conflict with those made accessible by a USE statement.[PRECISION]"

This is how PRECISION module is defined.

Any help will be greatly helpful.

Regards,
Manoj

[bash]MODULE Precision


   ! This module stores constants to specify the KIND of variables.


INTEGER(4), PARAMETER        :: DbKi     =  8                                   ! Default kind for double-precision numbers.
INTEGER(4), PARAMETER        :: ReKi     =  4                                   ! Default kind for real numbers.

END MODULE Precision


SUBROUTINE GFOSUB( ID, ATIME, PAR, NPAR, DFLAG, IFLAG, ElemAeroF)
USE Precision
INTEGER(4) :: NPAR
INTEGER(4) :: IBlade
REAL(DbKi) :: PAR (NPAR)
IBlade = NINT( PAR(1) )   ! Error at this line I had tried using IDNINT but still the same error.[/bash]
0 Kudos
1 Reply
eliosh
Beginner
1,487 Views
The above code compiles without any warning by the latest ifort and gfortran.

Any way, you use implicit typing here, hence iblade is of (default) integer type, which usually has very limited range compared to double.
0 Kudos
Reply