diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_lev.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_lev.fd/CMakeLists.txt index 4dd79690..34741860 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_lev.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_lev.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_GRADS_LEV_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) set(CONMON_GRADS_LEV_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/conmon_grads_lev ) diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_mandlev.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_mandlev.fd/CMakeLists.txt index 5184f305..86d8bbe0 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_mandlev.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_mandlev.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_GRADS_MANDLEV_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) set(CONMON_GRADS_MANDLEV_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/conmon_grads_mandlev ) diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfc.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfc.fd/CMakeLists.txt index 40641e35..e1e38afa 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfc.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfc.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_GRADS_SFC_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) set(CONMON_GRADS_SFC_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/conmon_grads_sfc ) diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfctime.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfctime.fd/CMakeLists.txt index 71e13566..74b10dc3 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfctime.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sfctime.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_GRADS_SFCTIME_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sig.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sig.fd/CMakeLists.txt index c989043c..b13e9f35 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sig.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_grads_sig.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_GRADS_SIG_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) set(CONMON_GRADS_SIG_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/conmon_grads_sig ) diff --git a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_time.fd/CMakeLists.txt b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_time.fd/CMakeLists.txt index 627129f2..767fdad0 100644 --- a/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_time.fd/CMakeLists.txt +++ b/util/Conventional_Monitor/nwprod/conmon_shared/sorc/conmon_time.fd/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB CONMON_TIME_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) set(CONMON_TIME_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/conmon_time ) diff --git a/util/Minimization_Monitor/nwprod/gdas/jobs/JGDAS_ATMOS_VMINMON b/util/Minimization_Monitor/nwprod/gdas/jobs/JGDAS_ATMOS_VMINMON index 407ddb58..7e89f33d 100755 --- a/util/Minimization_Monitor/nwprod/gdas/jobs/JGDAS_ATMOS_VMINMON +++ b/util/Minimization_Monitor/nwprod/gdas/jobs/JGDAS_ATMOS_VMINMON @@ -58,7 +58,7 @@ export p_cyc=`echo ${cdate} | cut -c9-10` ############################################# # TANKverf - WHERE OUTPUT DATA WILL RESIDE ############################################# -export COM_IN=${COM_IN:-${COMROOT}/${NET}/${envir}} +export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})} export M_TANKverf=${M_TANKverf:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}/minmon} export M_TANKverfM1=${M_TANKverfM1:-${COM_IN}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/minmon} diff --git a/util/Minimization_Monitor/nwprod/gfs/jobs/JGFS_ATMOS_VMINMON b/util/Minimization_Monitor/nwprod/gfs/jobs/JGFS_ATMOS_VMINMON index df0485b2..420da031 100755 --- a/util/Minimization_Monitor/nwprod/gfs/jobs/JGFS_ATMOS_VMINMON +++ b/util/Minimization_Monitor/nwprod/gfs/jobs/JGFS_ATMOS_VMINMON @@ -57,7 +57,7 @@ export p_cyc=`echo ${cdate} | cut -c9-10` ############################################# # TANKverf - WHERE OUTPUT DATA WILL RESIDE ############################################# -export COM_IN=${COM_IN:-${COMROOT}/${NET}/${envir}} +export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})} M_TANKverf=${M_TANKverf:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}/minmon} export M_TANKverfM1=${M_TANKverfM1:-${COM_IN}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/minmon} diff --git a/util/Ozone_Monitor/CMakeLists.txt b/util/Ozone_Monitor/CMakeLists.txt index 1b4acf7c..97e24d7e 100644 --- a/util/Ozone_Monitor/CMakeLists.txt +++ b/util/Ozone_Monitor/CMakeLists.txt @@ -66,6 +66,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) endif() cmake_policy(SET CMP0009 NEW) + cmake_policy(SET CMP0074 NEW) find_package(OpenMP) message("found openmp with flag ${OPENMP_Fortran_FLAGS}") diff --git a/util/Ozone_Monitor/OznMon_install.pl b/util/Ozone_Monitor/OznMon_install.pl index 0c7906d6..5df40683 100755 --- a/util/Ozone_Monitor/OznMon_install.pl +++ b/util/Ozone_Monitor/OznMon_install.pl @@ -16,7 +16,8 @@ my $machine = `/usr/bin/perl get_hostname.pl`; my $my_machine="export MY_MACHINE=$machine"; - if( $machine ne "wcoss_c" && $machine ne "hera" && $machine ne "wcoss_d" ) { + if( $machine ne "wcoss_c" && $machine ne "hera" && $machine ne "wcoss_d" && + $machine ne "wcoss2" ) { die( "ERROR --- Unrecognized machine hostname, $machine. Exiting now...\n" ); } else { @@ -62,6 +63,9 @@ elsif( $machine eq "wcoss_c" ){ $tankdir = "/gpfs/hps/emc/da/noscrub/$user_name/nbns"; } + elsif( $machine eq "wcoss2" ){ + $tankdir = "/lfs/h2/emc/da/noscrub/$user_name/nbns"; + } else { $tankdir = "/global/save/$user_name/nbns"; } @@ -209,6 +213,10 @@ $my_ptmp="export OZN_PTMP=\${OZN_PTMP:-/gpfs/hps2/ptmp}"; $my_stmp="export OZN_STMP=\${OZN_STMP:-/gpfs/hps2/stmp}"; } + elsif( $machine eq "wcoss2" ){ + $my_ptmp="export MY_PTMP=\${MY_PTMP:-/lfs/h2/emc/ptmp}"; + $my_stmp="export MY_STMP=\${MY_STMP:-/lfs/h2/emc/stmp}"; + } elsif( $machine eq "hera" ){ $ptmp = "/scratch2/NCEPDEV/stmp3"; @@ -325,61 +333,65 @@ print "\n"; print "Updating parm/OznMon_user_settings\n"; - my $account = "export ACCOUNT=\${ACCOUNT:-fv3-cpu}"; - if( $machine ne "theia" && $machine ne "hera" ) { - $account = "export ACCOUNT=\${ACCOUNT:-}"; + my $account = "export ACCOUNT=\${ACCOUNT:-}"; + if( $machine eq "hera" ) { + $account = "export ACCOUNT=\${ACCOUNT:-fv3-cpu}"; + } elsif( $machine eq "wcoss2" ){ + $account = "export ACCOUNT=\${ACCOUNT:-GFS-DEV}"; } - my $project = "export PROJECT=\${PROJECT:-GFS-DEV}"; - if( $machine ne "wcoss_c" && $machine ne "wcoss_d" ) { + my $project = "export PROJECT=\${PROJECT:-GDAS-T2O}"; + if( $machine eq "wcoss2" ){ + $project = "export PROJECT=\${PROJECT:-GDAS-DEV}"; + } elsif( $machine ne "wcoss_c" && $machine ne "wcoss_d" ) { $project="export PROJECT="; - } + } my $job_queue="export JOB_QUEUE="; - if( $machine eq "wcoss_c" ) { + if( $machine eq "wcoss_c" || $machine eq "wcoss2" ) { $job_queue="export JOB_QUEUE=\${JOB_QUEUE:-dev}"; } elsif( $machine eq "wcoss" || $machine eq "wcoss_d" ){ $job_queue = "export JOB_QUEUE=\${JOB_QUEUE:-dev_shared}"; } - my $uname = $ENV{ 'USER' }; - my $hpss_dir = "export HPSS_DIR=\${HPSS_DIR:-/NCEPDEV/hpssuser/g01/$uname/nbns/stats}"; - - my $outfile = "tmp.file"; - open (OUT, ">", $outfile) || die "Cannot open file ".$outfile." for write"; - - my $infile = "./parm/OznMon_user_settings"; - open (IN, "<", $infile) || die "Cannot open file ".$infile." for read"; - - foreach $line () { - chomp( $line ); - if ($line =~ m/export ACCOUNT/) { - $line = $account; - } - elsif( $line =~ m/export PROJECT/ ){ - $line = $project; - } - elsif( $line =~ m/export JOB_QUEUE/ ){ - $line = $job_queue; - } - elsif( $line =~ m/export HPSS_DIR/ ){ - $line = $hpss_dir; - } - elsif( $line =~ m/export DO_DATA_RPT/ ){ - $line = $my_rpt; - } - print OUT "$line\n"; - } - close OUT; - close IN; - - move $outfile, $infile; - - print "\n"; - print "Making all executables\n"; - - `./build_OznMon_cmake.sh`; + my $uname = $ENV{ 'USER' }; + my $hpss_dir = "export HPSS_DIR=\${HPSS_DIR:-/NCEPDEV/hpssuser/g01/$uname/nbns/stats}"; + + my $outfile = "tmp.file"; + open (OUT, ">", $outfile) || die "Cannot open file ".$outfile." for write"; + + my $infile = "./parm/OznMon_user_settings"; + open (IN, "<", $infile) || die "Cannot open file ".$infile." for read"; + + foreach $line () { + chomp( $line ); + if ($line =~ m/export ACCOUNT/) { + $line = $account; + } + elsif( $line =~ m/export PROJECT/ ){ + $line = $project; + } + elsif( $line =~ m/export JOB_QUEUE/ ){ + $line = $job_queue; + } + elsif( $line =~ m/export HPSS_DIR/ ){ + $line = $hpss_dir; + } + elsif( $line =~ m/export DO_DATA_RPT/ ){ + $line = $my_rpt; + } + print OUT "$line\n"; + } + close OUT; + close IN; + + move $outfile, $infile; + + print "\n"; + print "Making all executables\n"; + + `./build_OznMon_cmake.sh`; exit 0; diff --git a/util/Ozone_Monitor/build_OznMon_cmake.sh b/util/Ozone_Monitor/build_OznMon_cmake.sh index b5768f28..94d1d7a5 100755 --- a/util/Ozone_Monitor/build_OznMon_cmake.sh +++ b/util/Ozone_Monitor/build_OznMon_cmake.sh @@ -47,6 +47,9 @@ elif [[ -d /data/prod ]]; then elif [[ -d /jetmon ]]; then . /apps/lmod/lmod/init/sh target=jet +elif [[ -d /lfs && -d /dfs ]]; then + . $MODULESHOME/init/bash + target=wcoss2 else echo "unknown target = $target" exit 9 @@ -69,9 +72,10 @@ fi # Verify this is a supported machine #--------------------------------------------------- -if [[ ${target} = "hera" || ${target} = "wcoss_c" \ - || ${target} = "wcoss_d" || ${target} = "orion" \ - || ${target} = "jet" || ${target} = "s4" ]]; then +if [[ ${target} = "hera" || ${target} = "wcoss_c" \ + || ${target} = "wcoss_d" || ${target} = "orion" \ + || ${target} = "jet" || ${target} = "s4" \ + || ${target} = "wcoss2" ]]; then echo Building nwprod executables on ${target} echo @@ -79,7 +83,7 @@ if [[ ${target} = "hera" || ${target} = "wcoss_c" \ #------------------------------------- # load modules #------------------------------------- - if [ $target = wcoss_d ]; then + if [ $target = wcoss_d -o $target = wcoss2 ]; then module purge module use -a $dir_modules module load modulefile.ProdGSI.$target diff --git a/util/Ozone_Monitor/get_hostname.pl b/util/Ozone_Monitor/get_hostname.pl index 145b3a91..1f583acb 100755 --- a/util/Ozone_Monitor/get_hostname.pl +++ b/util/Ozone_Monitor/get_hostname.pl @@ -28,6 +28,9 @@ if( $host =~ /hfe/ ) { $machine = "hera"; } + elsif( $host =~ /clogin0/ || $host =~ /dlogin0/ ){ + $machine = "wcoss2" + } elsif( $host =~ /login/ ) { $machine = "wcoss_c"; } diff --git a/util/Ozone_Monitor/nwprod/gdas_oznmon/driver/test_jgdas_verfozn_wcoss2.sh b/util/Ozone_Monitor/nwprod/gdas_oznmon/driver/test_jgdas_verfozn_wcoss2.sh new file mode 100755 index 00000000..7587c811 --- /dev/null +++ b/util/Ozone_Monitor/nwprod/gdas_oznmon/driver/test_jgdas_verfozn_wcoss2.sh @@ -0,0 +1,89 @@ +#!/bin/ksh +#PBS -o gdas_voznmon.out +#PBS -e gdas_voznmon.err +#PBS -N gdas_voznmon +#PBS -q dev +#PBS -l select=1:mem=5000M +#PBS -l walltime=5:00 +#PBS -A GFS-DEV + +set -ax + +##------------------------------------------------------------ +## This is the test driver script for the wcoss2 systems +## to run the JGDAS_ATMOS_VERFOZN job. +##------------------------------------------------------------ + +export OZNMON_NEW_HDR=${OZN_NEW_HDR:-0} + +#------------------------------------------------------------- +# PDATE settings for this test driver script correspond to +# available data in the $DATAROOT space (defined below). +# References to netcdf and binary indicate available files in +# the test_data space. +# +export PDATE=${PDATE:-2021082400} +export NET=${NET:-gfs} +export RUN=${RUN:-gdas} + +export PDY=`echo $PDATE | cut -c1-8` +export cyc=`echo $PDATE | cut -c9-10` +export job=gdas_verfozn.${cyc} +export pid=${pid:-$$} +export jobid=${job}.${pid} +export envir=${envir:-test} +export DATAROOT=/lfs/h1/ops/canned/com/gfs/v16.2 +export COMROOT=/lfs/h2/emc/ptmp/${LOGNAME} +export OZN_WORK_DIR=${OZN_WORK_DIR:-/lfs/h2/emc/stmp/${LOGNAME}/oznmon.${pid}} +export DATA=/lfs/h2/emc/stmp/${LOGNAME}/${RADMON_SUFFIX} + +if [[ ! -d ${COMROOT}/logs/jlogfiles ]]; then + mkdir -p ${COMROOT}/logs/jlogfiles +fi + +#------------------------------------------------------------ +# Specify versions +# +export gdas_oznmon_ver=v2.0.0 +export oznmon_shared_ver=v2.0.0 + + +#------------------------------------------------------------ +# Load modules +# +module purge +module load prod_util/2.0.10 +module load util_shared/1.4.0 + +module list + +#------------------------------------------------------------ +# Set user specific variables +# +export OZNMON_SUFFIX=${OZNMON_SUFFIX:-testozn} +export NWTEST=${NWTEST:-/lfs/h2/emc/da/noscrub/Edward.Safford/git/gsi/gfsda.v16.1.5_wcoss2_port/util/Ozone_Monitor/nwprod} +export HOMEgfs=${HOMEgfs:-${NWTEST}/gdas_oznmon.${gdas_oznmon_ver}} +export HOMEgdas_ozn=${HOMEgdas_ozn:-${HOMEgfs}} +export PARMgdas_ozn=${HOMEgdas_ozn}/parm +export FIXgdas_ozn=${FIXgdas_ozn:-${HOMEgdas_ozn}/fix} + + +export HOMEgfs_ozn=${HOMEgfs_ozn:-${HOMEgdas_ozn}} +export PARMgfs_ozn=${PARMgfs_ozn:-${PARMgdas_ozn}} +export FIXgfs_ozn=${FIXgfs_ozn:-${FIXgdas_ozn}} + +export JOBGLOBAL=${JOBGLOBAL:-${HOMEgdas_ozn}/jobs} +export HOMEoznmon=${HOMEoznmon:-${NWTEST}/oznmon_shared.${shared_oznmon_ver}} + +export HOMEoznmon=${NWTEST}/oznmon_shared.${oznmon_shared_ver} +export COM_IN=${COM_IN:-$DATAROOT} +export OZN_TANKDIR=${OZN_TANKDIR:-${COMROOT}/${OZNMON_SUFFIX}} + + +#------------------------------------------------------------ +# Execute job +# +${JOBGLOBAL}/JGDAS_ATMOS_VERFOZN + +exit + diff --git a/util/Ozone_Monitor/nwprod/gdas_oznmon/jobs/JGDAS_ATMOS_VERFOZN b/util/Ozone_Monitor/nwprod/gdas_oznmon/jobs/JGDAS_ATMOS_VERFOZN index 13b8b304..1acd7432 100755 --- a/util/Ozone_Monitor/nwprod/gdas_oznmon/jobs/JGDAS_ATMOS_VERFOZN +++ b/util/Ozone_Monitor/nwprod/gdas_oznmon/jobs/JGDAS_ATMOS_VERFOZN @@ -68,10 +68,10 @@ export p_cyc=`echo ${cdate} | cut -c9-10` #--------------------------------------------- # OZN_TANKDIR - WHERE OUTPUT DATA WILL RESIDE # -export OZN_TANKDIR=${OZN_TANKDIR:-${COMROOTp3}/$NET/$envir} +export OZN_TANKDIR=${OZN_TANKDIR:-$(compath.py ${envir}/${NET}/${gfs_ver})} export TANKverf_ozn=${TANKverf_ozn:-${OZN_TANKDIR}/${RUN}.${PDY}/${cyc}/${COMPONENT}/oznmon} export TANKverf_oznM1=${TANKverf_oznM1:-${OZN_TANKDIR}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/oznmon} -export COM_IN=${COM_IN:-${COMROOTp3}/${NET}/${envir}} +export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})} export COMIN=${COMIN:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}} if [[ ! -d ${TANKverf_ozn} ]]; then diff --git a/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_horiz.fd/CMakeLists.txt b/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_horiz.fd/CMakeLists.txt index fa8c7e45..e53b9fe0 100644 --- a/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_horiz.fd/CMakeLists.txt +++ b/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_horiz.fd/CMakeLists.txt @@ -1,13 +1,13 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB OZNMON_HORIZ_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(OZNMON_HORIZ_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 ") + set(OZNMON_HORIZ_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback ") set_source_files_properties( ${OZNMON_HORIZ_SRC} PROPERTIES COMPILE_FLAGS ${OZNMON_HORIZ_Fortran_FLAGS} ) set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/oznmon_horiz ) add_executable(oznmon_horiz.x ${OZNMON_HORIZ_SRC} ) set_target_properties( oznmon_horiz.x PROPERTIES COMPILE_FLAGS ${OZNMON_HORIZ_Fortran_FLAGS} ) set_target_properties( oznmon_horiz.x PROPERTIES Fortran_MODULE_DIRECTORY ${Util_MODULE_DIR} ) include_directories( ${CORE_INCS} ${NCDIAG_INCS} ) - target_link_libraries( oznmon_horiz.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES}) + target_link_libraries( oznmon_horiz.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} ) if(BUILD_W3NCO) add_dependencies( oznmon_horiz.x ${W3NCO_4_LIBRARY} ) endif() diff --git a/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_time.fd/CMakeLists.txt b/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_time.fd/CMakeLists.txt index c957a0a2..ea8b907a 100644 --- a/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_time.fd/CMakeLists.txt +++ b/util/Ozone_Monitor/nwprod/oznmon_shared/sorc/oznmon_time.fd/CMakeLists.txt @@ -1,13 +1,13 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.16.1) file(GLOB OZNMON_TIME_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(OZNMON_TIME_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 ") + set(OZNMON_TIME_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/oznmon_time ) set_source_files_properties( ${OZNMON_TIME_SRC} PROPERTIES COMPILE_FLAGS ${OZNMON_TIME_Fortran_FLAGS} ) add_executable(oznmon_time.x ${OZNMON_TIME_SRC} ) set_target_properties( oznmon_time.x PROPERTIES COMPILE_FLAGS ${OZNMON_TIME_Fortran_FLAGS} ) set_target_properties( oznmon_time.x PROPERTIES Fortran_MODULE_DIRECTORY ${Util_MODULE_DIR} ) include_directories( ${CORE_INCS} ${NCDIAG_INCS} ) - target_link_libraries( oznmon_time.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES}) + target_link_libraries( oznmon_time.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} ) if(BUILD_W3NCO) add_dependencies( oznmon_time.x ${W3NCO_4_LIBRARY} ) endif() diff --git a/util/Ozone_Monitor/parm/OznMon_config b/util/Ozone_Monitor/parm/OznMon_config index bc00092c..d69c44d9 100644 --- a/util/Ozone_Monitor/parm/OznMon_config +++ b/util/Ozone_Monitor/parm/OznMon_config @@ -18,7 +18,7 @@ if [[ $OZNMON_CONFIG -ne 1 ]]; then export OZNMON_CONFIG=1 - export MY_MACHINE=wcoss_d + export MY_MACHINE=wcoss2 #------------------------------------------------------------------- # Note: The file header in the oznstat file has slightly changed. @@ -38,7 +38,7 @@ if [[ $OZNMON_CONFIG -ne 1 ]]; then # you checked out only the Ozone_Monitor portion of the branch then # MY_RADMON should point to that. # - export MY_OZNMON=${MY_OZNMON:-/gpfs/dell2/emc/modeling/noscrub/Edward.Safford/GSI/util/Ozone_Monitor} + export MY_OZNMON=${MY_OZNMON:-/lfs/h2/emc/da/noscrub/Edward.Safford/git/gsi/gfsda.v16.1.5_wcoss2_port/util/Ozone_Monitor} export OZN_SCRIPTS=${OZN_SCRIPTS:-${MY_OZNMON}/scripts} export OZN_DE_SCRIPTS=${OZN_DE_SCRIPTS:-${MY_OZNMON}/data_xtrct/ush} @@ -66,7 +66,7 @@ if [[ $OZNMON_CONFIG -ne 1 ]]; then # and the succedding scripts will construct and use subdirectories under # this location. # - export OZN_TANKDIR=${OZN_TANKDIR:-/u/Edward.Safford/nbns} + export OZN_TANKDIR=${OZN_TANKDIR:-/lfs/h2/emc/da/noscrub/Edward.Safford/nbns} if [[ $GLB_AREA -eq 1 ]]; then OZN_IMGN_TANKDIR=${OZN_TANKDIR}/imgn/${OZNMON_SUFFIX} @@ -93,9 +93,9 @@ if [[ $OZNMON_CONFIG -ne 1 ]]; then # # Log and work space definitions # - export OZN_PTMP=${OZN_PTMP:-/gpfs/dell2/ptmp} + export MY_PTMP=${MY_PTMP:-/lfs/h2/emc/ptmp} export PTMP_USER=${PTMP_USER:-${OZN_PTMP}/${LOGNAME}} - export OZN_STMP=${OZN_STMP:-/gpfs/dell2/stmp} + export MY_STMP=${MY_STMP:-/lfs/h2/emc/stmp} export STMP_USER=${STMP_USER:-${OZN_STMP}/${LOGNAME}} @@ -213,6 +213,9 @@ if [[ $OZNMON_CONFIG -ne 1 ]]; then export PARTITION_OZNMON=${PARTITION_OZNMON:-vjet} + elif [[ $MY_MACHINE = "wcoss2" ]]; then + export COMPRESS=${COMPRESS:-gzip} + export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} fi else diff --git a/util/Ozone_Monitor/parm/OznMon_user_settings b/util/Ozone_Monitor/parm/OznMon_user_settings index 864ed81c..9c75a863 100644 --- a/util/Ozone_Monitor/parm/OznMon_user_settings +++ b/util/Ozone_Monitor/parm/OznMon_user_settings @@ -10,19 +10,19 @@ # ACCOUNT is used on zeus only for use with the qsub -a flag. It is # empty on other platforms. # -export ACCOUNT=${ACCOUNT:-} +export ACCOUNT=${ACCOUNT:-GFS-DEV} # # PROJECT is used on wcoss only with the bjob -P flag. It is # empty on other platforms. # -export PROJECT=${PROJECT:-GFS-DEV} +export PROJECT=${PROJECT:-GDAS-DEV} # # JOB_QUEUE is used on wcoss only with the bjob -q flag. It is # empty on other platforms. # -export JOB_QUEUE=${JOB_QUEUE:-dev_shared} +export JOB_QUEUE=${JOB_QUEUE:-dev} # # GLB_AREA is either 1 (global) or 0 (regional) diff --git a/util/Radiance_Monitor/build_RadMon_cmake.sh b/util/Radiance_Monitor/build_RadMon_cmake.sh index a11f1049..38770322 100755 --- a/util/Radiance_Monitor/build_RadMon_cmake.sh +++ b/util/Radiance_Monitor/build_RadMon_cmake.sh @@ -34,6 +34,9 @@ elif [[ $target = "hera" ]] ; then . /apps/lmod/lmod/init/sh elif [[ $target = "jet" ]] ; then . /apps/lmod/lmod/init/sh +elif [[ -d /lfs && -d /dfs ]]; then + . $MODULESHOME/init/bash + target=wcoss2 else echo "unknown target = $target" exit 9 @@ -72,7 +75,7 @@ if [[ ${target} = "hera" || ${target} = "wcoss" \ #------------------------------------- # load modules #------------------------------------- - if [ $target = wcoss_d ]; then + if [ $target = wcoss_d -o $target = "wcoss2" ]; then module purge module use -a $dir_modules module load modulefile.ProdGSI.$target diff --git a/util/Radiance_Monitor/nwprod/gdas_radmon/jobs/JGDAS_ATMOS_VERFRAD b/util/Radiance_Monitor/nwprod/gdas_radmon/jobs/JGDAS_ATMOS_VERFRAD index 44649df1..39c7b666 100755 --- a/util/Radiance_Monitor/nwprod/gdas_radmon/jobs/JGDAS_ATMOS_VERFRAD +++ b/util/Radiance_Monitor/nwprod/gdas_radmon/jobs/JGDAS_ATMOS_VERFRAD @@ -77,10 +77,10 @@ export p_cyc=`echo ${cdate} | cut -c9-10` # COMOUT - WHERE GSI OUTPUT RESIDES # TANKverf - WHERE OUTPUT DATA WILL RESIDE ############################################# -export TANKverf=${TANKverf:-${COMROOT}/${NET}/${envir}} +export TANKverf=${TANKverf:-$(compath.py ${envir}/${NET}/${gfs_ver})} export TANKverf_rad=${TANKverf_rad:-${TANKverf}/${RUN}.${PDY}/${cyc}/$COMPONENT/radmon} export TANKverf_radM1=${TANKverf_radM1:-${TANKverf}/${RUN}.${P_PDY}/${p_cyc}/$COMPONENT/radmon} -export COM_IN=${COM_IN:-${COMROOT}/${NET}/${envir}} +export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})} export COMIN=${COMIN:-${COM_IN}/${RUN}.${PDY}/${cyc}/$COMPONENT} ################################ diff --git a/util/Radiance_Monitor/nwprod/gdas_radmon/scripts/exgdas_atmos_verfrad.sh b/util/Radiance_Monitor/nwprod/gdas_radmon/scripts/exgdas_atmos_verfrad.sh index 58caae22..7aec2543 100755 --- a/util/Radiance_Monitor/nwprod/gdas_radmon/scripts/exgdas_atmos_verfrad.sh +++ b/util/Radiance_Monitor/nwprod/gdas_radmon/scripts/exgdas_atmos_verfrad.sh @@ -36,7 +36,7 @@ export PDY=${1:-${PDY:?}} export cyc=${2:-${cyc:?}} # Directories -export COM_IN=${COMROOT}/${NET}/${envir} +export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})} export COMIN=${COMIN:-$COM_IN/${RUN}.${PDY}/${cyc}/$COMPONENT} diff --git a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radang.fd/CMakeLists.txt b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radang.fd/CMakeLists.txt index a881d158..aba90e6d 100644 --- a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radang.fd/CMakeLists.txt +++ b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radang.fd/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.16.1) file(GLOB RADMON_ANGLE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(RADMON_ANGLE_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") + set(RADMON_ANGLE_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/radmon_angle ) set_source_files_properties( ${RADMON_ANGLE_SRC} PROPERTIES COMPILE_FLAGS ${RADMON_ANGLE_Fortran_FLAGS} ) add_executable(radmon_angle.x ${RADMON_ANGLE_SRC} ) diff --git a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcoef.fd/CMakeLists.txt b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcoef.fd/CMakeLists.txt index 116bcfe3..f6c13cde 100644 --- a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcoef.fd/CMakeLists.txt +++ b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcoef.fd/CMakeLists.txt @@ -1,13 +1,13 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.16.1) file(GLOB RADMON_BCOEF_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(RADMON_BCOEF_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") + set(RADMON_BCOEF_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/radmon_bcoef ) set_source_files_properties( ${RADMON_BCOEF_SRC} PROPERTIES COMPILE_FLAGS ${RADMON_BCOEF_Fortran_FLAGS} ) add_executable(radmon_bcoef.x ${RADMON_BCOEF_SRC} ) set_target_properties( radmon_bcoef.x PROPERTIES COMPILE_FLAGS ${RADMON_BCOEF_Fortran_FLAGS} ) set_target_properties( radmon_bcoef.x PROPERTIES Fortran_MODULE_DIRECTORY ${Util_MODULE_DIR} ) include_directories( ${CORE_INCS} ${NCDIAG_INCS} ) - target_link_libraries( radmon_bcoef.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES}) + target_link_libraries( radmon_bcoef.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} ) if(BUILD_W3NCO) add_dependencies( radmon_bcoef.x ${W3NCO_4_LIBRARY} ) endif() diff --git a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcor.fd/CMakeLists.txt b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcor.fd/CMakeLists.txt index 7b2bfe03..96f5a583 100644 --- a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcor.fd/CMakeLists.txt +++ b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radbcor.fd/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.16.1) file(GLOB RADMON_BCOR_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(RADMON_BCOR_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") + set(RADMON_BCOR_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/radmon_bcor ) set_source_files_properties( ${RADMON_BCOR_SRC} PROPERTIES COMPILE_FLAGS ${RADMON_BCOR_Fortran_FLAGS} ) add_executable(radmon_bcor.x ${RADMON_BCOR_SRC} ) diff --git a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radtime.fd/CMakeLists.txt b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radtime.fd/CMakeLists.txt index 27cac802..9b24fd46 100644 --- a/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radtime.fd/CMakeLists.txt +++ b/util/Radiance_Monitor/nwprod/radmon_shared/sorc/verf_radtime.fd/CMakeLists.txt @@ -1,13 +1,13 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.16.1) file(GLOB RADMON_TIME_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*90 ) - set(RADMON_TIME_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -traceback -D_REAL8_ ") + set(RADMON_TIME_Fortran_FLAGS "-fp-model strict -assume byterecl -convert big_endian -O3 -g -traceback -D_REAL8_ ") set(Util_MODULE_DIR ${PROJECT_BINARY_DIR}/include/radmon_time ) set_source_files_properties( ${RADMON_TIME_SRC} PROPERTIES COMPILE_FLAGS ${RADMON_TIME_Fortran_FLAGS} ) add_executable(radmon_time.x ${RADMON_TIME_SRC} ) set_target_properties( radmon_time.x PROPERTIES COMPILE_FLAGS ${RADMON_TIME_Fortran_FLAGS} ) set_target_properties( radmon_time.x PROPERTIES Fortran_MODULE_DIRECTORY ${Util_MODULE_DIR} ) include_directories( ${CORE_INCS} ${NCDIAG_INCS} ) - target_link_libraries( radmon_time.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES}) + target_link_libraries( radmon_time.x ${W3NCO_4_LIBRARY} ${NCDIAG_LIBRARIES} ${NETCDF_Fortran_LIBRARIES} ${NETCDF_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} ) if(BUILD_W3NCO) add_dependencies( radmon_time.x ${W3NCO_4_LIBRARY} ) endif() diff --git a/util/Radiance_Monitor/nwprod/radmon_shared/ush/radmon_verf_time.sh b/util/Radiance_Monitor/nwprod/radmon_shared/ush/radmon_verf_time.sh index 97f53307..af2f4d38 100755 --- a/util/Radiance_Monitor/nwprod/radmon_shared/ush/radmon_verf_time.sh +++ b/util/Radiance_Monitor/nwprod/radmon_shared/ush/radmon_verf_time.sh @@ -541,15 +541,15 @@ EOF # copy new bad_pen, bad_chan, and low_count files to $TANKverf_rad # if [[ -s ${bad_chan} ]]; then - $NCP ${bad_chan} ${TANKverf_rad}/. + mv ${bad_chan} ${TANKverf_rad}/. fi if [[ -s ${bad_pen} ]]; then - $NCP ${bad_pen} ${TANKverf_rad}/. + mv ${bad_pen} ${TANKverf_rad}/. fi if [[ -s ${low_count} ]]; then - $NCP ${low_count} ${TANKverf_rad}/. + mv ${low_count} ${TANKverf_rad}/. fi diff --git a/util/Radiance_Monitor/parm/RadMon_user_settings b/util/Radiance_Monitor/parm/RadMon_user_settings index 39031370..b6f31ed5 100644 --- a/util/Radiance_Monitor/parm/RadMon_user_settings +++ b/util/Radiance_Monitor/parm/RadMon_user_settings @@ -10,13 +10,13 @@ # ACCOUNT is used on zeus only for use with the qsub -a flag. It is # empty on other platforms. # -export ACCOUNT=${ACCOUNT:-} +export ACCOUNT=${ACCOUNT:-GFS-DEV} # # PROJECT is used on wcoss only with the bjob -P flag. It is # empty on other platforms. # -export PROJECT=${PROJECT:-GFS-DEV} +export PROJECT=${PROJECT:-GDAS-DEV} # # JOB_QUEUE is used on wcoss only with the bjob -q flag. It is