My Personalized Software Toolbox
Shell Scripts:-
1. gfortran-netcdf
(Compilation of a Fortran90 Code with the NetCDF Libraries using gfortran compiler )
#!/bin/bash
# Usage Syntax of this Script:
# gfortran-netcdf program_name(without any extension)
# e.g., gfortran-netcdf read-netcdf-data
# It would compile read-netcdf-data.f90 and make an executable read-netcdf-data.x
gfortran -I/usr/include -L/usr/lib64 -lnetcdf -lnetcdff /usr/lib64/libnetcdf.a -o $1.x $1.f90
(Compilation of a Fortran90 Code with the NetCDF Libraries using gfortran compiler )
#!/bin/bash
# Usage Syntax of this Script:
# gfortran-netcdf program_name(without any extension)
# e.g., gfortran-netcdf read-netcdf-data
# It would compile read-netcdf-data.f90 and make an executable read-netcdf-data.x
gfortran -I/usr/include -L/usr/lib64 -lnetcdf -lnetcdff /usr/lib64/libnetcdf.a -o $1.x $1.f90
DISCLAIMER
Almost all the codes available in this page are written by me and are tested for errors. These codes are functioning well without any problem in the OpenSuse LINUX platform with the Intel FORTRAN compilers. However, I will strongly advise you to cross-check the applicability of these codes by testing them for any possible type of errors. My purpose of sharing these codes in the internet domain is only for research purpose usage, and hence I do not take any responsibilities for malfunctioning of these codes in your PCs. I expect the codes to function well in other operating systems with other FORTRAN compilers as well. In case, you face some problems while compiling these codes, you may bring it to my notice, and I will try to attend to your problem and update the code (if required).
--- D. Bala Subrahamanyam