-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from NCAR/fortran_standards
Fortran standards bug-fixes
- Loading branch information
Showing
19 changed files
with
189 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Template for AIRS observation converter with GNU gfortran on Linux or OSX | ||
# | ||
# DART software - Copyright UCAR. This open source software is provided | ||
# by UCAR, "as is", without charge, subject to all terms of use at | ||
# http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
||
|
||
MPIFC = mpif90 | ||
MPILD = mpif90 | ||
FC = gfortran | ||
LD = h4fc | ||
|
||
# MODIFY THE FOLLOWING VARIABLES FOR YOUR SYSTEM: | ||
# If your NETCDF, HDFEOS, or RTTOV environment variables are not set, | ||
# uncomment the following line and set value to where lib and include | ||
# are found for the netcdf files that match this compiler. | ||
# | ||
# NETCDF = /opt/local | ||
HDFEOS = /glade/campaign/cisl/dares/libraries/hdf-eos_gfortran | ||
RTTOV = /glade/campaign/cisl/dares/libraries/rttov123_gfortran | ||
|
||
RTTOV_VERSION = 12 | ||
|
||
RTLIBS = -lrttov$(RTTOV_VERSION)_wrapper -lrttov$(RTTOV_VERSION)_mw_scatt -lrttov$(RTTOV_VERSION)_brdf_atlas \ | ||
-lrttov$(RTTOV_VERSION)_emis_atlas -lrttov$(RTTOV_VERSION)_other -lrttov$(RTTOV_VERSION)_parallel \ | ||
-lrttov$(RTTOV_VERSION)_coef_io -lrttov$(RTTOV_VERSION)_hdf -lrttov$(RTTOV_VERSION)_main | ||
|
||
INCS = -I$(NETCDF)/include -I$(HDFEOS)/include -I$(RTTOV)/include -I$(RTTOV)/mod | ||
|
||
LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf \ | ||
-L$(HDFEOS)/lib -lhdfeos -lmfhdf -ldf -ljpeg -lz -lm -lsz \ | ||
-L$(RTTOV)/lib -lhdf5_hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 $(RTLIBS) | ||
|
||
FFLAGS = -O2 -ffree-line-length-none -fallow-argument-mismatch $(INCS) | ||
LDFLAGS = $(FFLAGS) $(LIBS) | ||
|
||
# Debug settings (preferably also use a RTTOV compiled with debug settings): | ||
# | ||
# FFLAGS = -g -Wuninitialized -Wunused -ffree-line-length-none -fbounds-check \ | ||
# -fbacktrace -ffpe-trap=invalid,zero,overflow -fallow-argument-mismatch $(INCS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Template for AIRS observation converter with Intel Fortran Compiler on Linux or OSX | ||
# | ||
# DART software - Copyright UCAR. This open source software is provided | ||
# by UCAR, "as is", without charge, subject to all terms of use at | ||
# http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
||
MPIFC = mpif90 | ||
MPILD = mpif90 | ||
FC = h4fc | ||
LD = h4fc | ||
|
||
# MODIFY THE FOLLOWING VARIABLES FOR YOUR SYSTEM: | ||
# If your NETCDF, HDFEOS, or RTTOV environment variables are not set, | ||
# uncomment the following line and set value to where lib and include | ||
# are found for the netcdf files that match this compiler. | ||
# | ||
# NETCDF = /opt/local | ||
HDFEOS = /glade/campaign/cisl/dares/libraries/hdf-eos_intel/ | ||
RTTOV = /glade/campaign/cisl/dares/libraries/rttov123_intel/ | ||
|
||
RTTOV_VERSION = 12 | ||
|
||
RTLIBS = -lrttov$(RTTOV_VERSION)_wrapper -lrttov$(RTTOV_VERSION)_mw_scatt -lrttov$(RTTOV_VERSION)_brdf_atlas \ | ||
-lrttov$(RTTOV_VERSION)_emis_atlas -lrttov$(RTTOV_VERSION)_other -lrttov$(RTTOV_VERSION)_parallel \ | ||
-lrttov$(RTTOV_VERSION)_coef_io -lrttov$(RTTOV_VERSION)_hdf -lrttov$(RTTOV_VERSION)_main | ||
|
||
INCS = -I$(NETCDF)/include -I$(HDFEOS)/include -I$(RTTOV)/include -I$(RTTOV)/mod | ||
|
||
LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf \ | ||
-L$(HDFEOS)/lib -lhdfeos -lmfhdf -ldf -ljpeg -lz -lm -lsz -lGctp \ | ||
-L$(RTTOV)/lib -lhdf5_hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 $(RTLIBS) | ||
|
||
FFLAGS = -O2 -assume buffered_io $(INCS) | ||
LDFLAGS = $(FFLAGS) $(LIBS) | ||
|
||
# for development or debugging, use this instead: | ||
# FFLAGS = -g -C -check noarg_temp_created -fpe0 \ | ||
# -fp-model precise -ftrapuv -traceback \ | ||
# -warn declarations,uncalled,unused $(INCS) | ||
|
||
# Optimized (BLAS, LAPACK) libraries are available from the Intel Math Kernel Libraries: | ||
# -lmkl -lmkl_lapack -lguide -lpthread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Template for quikscat converter with GNU gfortran on Linux or Mac OSX | ||
# | ||
# DART software - Copyright UCAR. This open source software is provided | ||
# by UCAR, "as is", without charge, subject to all terms of use at | ||
# http://www.image.ucar.edu/DAReS/DART/DART_download | ||
# | ||
|
||
|
||
MPIFC = mpif90 | ||
MPILD = mpif90 | ||
FC = gfortran | ||
LD = h4fc | ||
|
||
# If you get an error "ld: library not found for -lnetcdff" (note 2 f's), | ||
# remove it from the LIBS line. The same is true for any library. If 'ld' | ||
# does not complain - it worked. | ||
|
||
# If your NETCDF environment variable is not set correctly, | ||
# uncomment the following line and set value to where lib and include | ||
# are found for the netcdf files that match this compiler. | ||
# | ||
# NETCDF = /opt/local | ||
|
||
INCS = -I$(NETCDF)/include | ||
LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf | ||
FFLAGS = -O2 -ffree-line-length-none -fallow-argument-mismatch $(INCS) | ||
LDFLAGS = $(FFLAGS) $(LIBS) | ||
|
||
# for development or debugging, use this instead: | ||
# FFLAGS = -g -Wuninitialized -Wunused -ffree-line-length-none -fbounds-check \ | ||
# -fbacktrace -ffpe-trap=invalid,zero,overflow -fallow-argument-mismatch $(INCS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Template for quikscat converter with Intel Fortran Compiler on Linux or OSX | ||
# | ||
# DART software - Copyright UCAR. This open source software is provided | ||
# by UCAR, "as is", without charge, subject to all terms of use at | ||
# http://www.image.ucar.edu/DAReS/DART/DART_download | ||
# | ||
|
||
MPIFC = mpif90 | ||
MPILD = mpif90 | ||
FC = h4fc | ||
LD = h4fc | ||
|
||
# If you get an error "ld: library not found for -lnetcdff" (note 2 f's), | ||
# remove it from the LIBS line. The same is true for any library. If 'ld' | ||
# does not complain - it worked. | ||
|
||
# If your NETCDF environment variable is not set correctly, | ||
# uncomment the following line and set value to where lib and include | ||
# are found for the netcdf files that match this compiler. | ||
# | ||
# NETCDF = /opt/local | ||
|
||
INCS = -I$(NETCDF)/include | ||
LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf | ||
FFLAGS = -O -assume buffered_io $(INCS) | ||
LDFLAGS = $(FFLAGS) $(LIBS) | ||
|
||
# for development or debugging, use this instead: | ||
# FFLAGS = -g -C -check noarg_temp_created -fpe0 \ | ||
# -fp-model precise -ftrapuv -traceback \ | ||
# -warn declarations,uncalled,unused $(INCS) | ||
|
||
# Some optimized (BLAS, LAPACK) libraries may be available with: | ||
# LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf -lmkl -lmkl_lapack -lguide -lpthread | ||
# | ||
# If you get this error: libimf.so: warning: warning: feupdateenv is not implemented | ||
# try adding: -limf -lm to your LIBS line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.