| View previous topic :: View next topic |
| Author |
Message |
LeviBarnes
Joined: 03 Oct 2012 Posts: 9
|
Posted: Thu Apr 11, 2013 1:13 pm Post subject: Fortran - disallow implicit declaration |
|
|
Hi forums,
Is there a way to disallow implicit variable declaration in pgfortan? Something like -fimplicit-none in gfortran.
-Levi |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Apr 11, 2013 1:20 pm Post subject: |
|
|
Hi Levi,
There's no compiler flag since implicit typing can have more specifications than just none. You will need to explicitly set this in your code using the "IMPLICIT NONE" statement.
- Mat |
|
| Back to top |
|
 |
LeviBarnes
Joined: 03 Oct 2012 Posts: 9
|
Posted: Thu Apr 11, 2013 1:57 pm Post subject: |
|
|
Thanks, Mat.
I find that -Mdclchk does what I need from the command line as well. |
|
| Back to top |
|
 |
|