[Dart-dev] DART/branches Revision: 12283
dart at ucar.edu
dart at ucar.edu
Thu Jan 4 13:03:31 MST 2018
nancy at ucar.edu
2018-01-04 13:03:30 -0700 (Thu, 04 Jan 2018)
258
update the script trying to build the NCEP bufr libs
so it tries the right compiler on NAG but fails and
reports failure. someday we might try to make this
work - but NAG is fussy and the bufr libs are old
with lots of questionable code. not our problem.
Modified: DART/branches/recam/observations/obs_converters/NCEP/prep_bufr/install.sh
===================================================================
--- DART/branches/recam/observations/obs_converters/NCEP/prep_bufr/install.sh 2018-01-04 19:05:40 UTC (rev 12282)
+++ DART/branches/recam/observations/obs_converters/NCEP/prep_bufr/install.sh 2018-01-04 20:03:30 UTC (rev 12283)
@@ -43,6 +43,7 @@
#FCOMP=intel
#FCOMP=pgi
#FCOMP=f77
+ #FCOMP=nag # NOT SUPPORTED
fi
# ------------------------------------------------------------------------
@@ -75,6 +76,8 @@
ff=pgf90
elif [ $FCOMP = f77 ] ; then
ff=f77
+elif [ $FCOMP = nag ] ; then
+ ff=nagfor ;
else
echo error: unrecognized FCOMP name
exit 1
@@ -84,6 +87,17 @@
cc="$cc -DUNDERSCORE"
fi
+# so far this doesn't compile with NAG - too many errors
+# we might be able to coerce it to work - but for now punt.
+if [ $ff = nagfor ]; then
+ echo
+ echo WARNING WARNING WARNING:
+ echo The prepbufr libraries do not successfully compile with NAG fortran.
+ echo Skipping the NCEP prepbufr library builds.
+ echo
+ exit -1
+fi
+
# in any case, add -O for optimized code
cc="$cc -O"
ff="$ff -O"
Modified: DART/branches/recam/observations/obs_converters/buildall.csh
===================================================================
--- DART/branches/recam/observations/obs_converters/buildall.csh 2018-01-04 19:05:40 UTC (rev 12282)
+++ DART/branches/recam/observations/obs_converters/buildall.csh 2018-01-04 20:03:30 UTC (rev 12283)
@@ -46,6 +46,11 @@
setenv FCOMP pgi
setenv UNDERSCORE add
echo setting the BUFR lib to build using the pgi compilers
+ else if ( "$fcomp" == "nagfor" ) then
+ setenv CCOMP nag
+ setenv FCOMP nag
+ setenv UNDERSCORE add
+ echo setting the BUFR lib to build using the nag compilers
else
echo unrecognized compiler in ../../build_templates/mkmf.template
echo set NCEP BUFR library compiler choice in NCEP/prep_bufr/install.sh
@@ -55,13 +60,20 @@
cd NCEP/prep_bufr
-./install.sh
+set FAILURE = 0
+./install.sh || set FAILURE = 1
+
echo
echo
echo "=================================================================="
echo "=================================================================="
echo "Build of NCEP BUFR libs ended at "`date`
+if ( $FAILURE ) then
+ echo
+ echo "ERROR - build was unsuccessful"
+ echo
+endif
echo "=================================================================="
echo "=================================================================="
echo
More information about the Dart-dev
mailing list