- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
I am getting this error in my fortran code and I am not able to figure it out.
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]
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Any way, you use implicit typing here, hence iblade is of (default) integer type, which usually has very limited range compared to double.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page