Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile in gfortran in case Sensitive mode?

Is it possible to compile a fortran 90/95 code in gfortran with Case Sensitive? I searched the manuals, but couldn't find any flag or option I can give to gfortran to make it case sensitive. I want to have variables in upper case and lower case to be different.

So, is it possible?

like image 968
indiajoe Avatar asked Mar 25 '11 18:03

indiajoe


People also ask

Is Fortran 95 case sensitive?

Fortran is case-insensitive.

Is Fortran 90 case sensitive?

Except for strings, Fortran 90 is not case sensitive.

Is Fortran language case sensitive?

C and Fortran take opposite perspectives on case sensitivity: C is case sensitive--case matters. Fortran ignores case.

Is Fortran 77 case sensitive?

You may wish to mix case, but Fortran is not case-sensitive, so "X" and "x" are the same variable.


1 Answers

There is no such flag or option. Of course, gfortran being free software, you're welcome to download the source code and create your own version with that particular feature.

In reality, I'd recommend to just follow the Fortran standard and forget the idea of case sensitivity when programming Fortran.

like image 152
janneb Avatar answered Oct 08 '22 06:10

janneb