If you are planning to run your code on supercomputer or any linux devices, then you should need to compile your code in the Linux interface. The windows executable file "*.exe" doesn't run on linux.
However, it is little troublesome to compile the code on the Linux. The best approach is to create a make file which has a series of codes and which runs internally to compile the code. Another option is to compile each subroutine one by one with the following command:
ifort program.for -c -override-limits
Sometimes which compiling you would encounter an error such as maximum limit exceeded or something like this. So, to get rid of that error you can use the command (-override-limits) at the end of the code.
After you have compiled all the subroutines or programs then you can use the following code to make a executable file in LInux.
ifort *.o -o program
With the above command a file named program will be created. This is the file we should need to run in LINUX. To run this compiled file, we need the following code :
ifort ./program
Another most important thing to remember in LINUX is that "LINUX" is case-sensitive. IN windows, it doesn't really matter what type of casing you are using ; either capital case or lower case. In LINUX you need to follow the case strictly.
I hope this would everyone who are trying to compile their code in LINUX.
ifort program.for -c -override-limits
Sometimes which compiling you would encounter an error such as maximum limit exceeded or something like this. So, to get rid of that error you can use the command (-override-limits) at the end of the code.
After you have compiled all the subroutines or programs then you can use the following code to make a executable file in LInux.
ifort *.o -o program
With the above command a file named program will be created. This is the file we should need to run in LINUX. To run this compiled file, we need the following code :
ifort ./program
Another most important thing to remember in LINUX is that "LINUX" is case-sensitive. IN windows, it doesn't really matter what type of casing you are using ; either capital case or lower case. In LINUX you need to follow the case strictly.
I hope this would everyone who are trying to compile their code in LINUX.