Skip to content

Commit b82570f

Browse files
bug fix: UDUNITS error (#101)
2 parents 7e64aa4 + 508edb4 commit b82570f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Fixed
1717

18+
- Fixed error from MAPL's ApplicationSupport.F90 to init UDUNITS
19+
1820
### Removed
1921

2022
### Deprecated

GEOSldas_App/lenkf_j_template.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
6464
source $GEOSBIN/g5_modules
6565
66+
setenv BASEBIN ${{BASEDIR}}/Linux/bin
67+
6668
setenv MPI_STACK {DETECTED_MPI_STACK}
6769
6870
if ( ${{MPI_STACK}} == "openmpi" ) then
@@ -103,8 +105,6 @@
103105
# reversed sequence for LADAS_COUPLING (Sep 2020) (needed when coupling with ADAS using different BASEDIR)
104106
setenv LD_LIBRARY_PATH ${{BASEDIR}}/${{ARCH}}/lib:${{ESMADIR}}/lib:${{LD_LIBRARY_PATH}}
105107
106-
module load nco
107-
108108
setenv RUN_CMD "$GEOSBIN/esma_mpirun -np "
109109
110110
#######################################################################
@@ -602,9 +602,9 @@
602602
603603
sed -i -e "s/NT/$LEN_SUB/g" timestamp.cdl
604604
sed -i -e "s/DATAVALUES/$tstep2/g" timestamp.cdl
605-
ncgen -k4 -o timestamp.nc4 timestamp.cdl
606-
ncrcat -h $EXPID.$ThisCol.${{YYYY}}${{MM}}${{DD}}_* ${{EXPID}}.${{ThisCol}}.$YYYY$MM$DD.nc4
607-
ncks -4 -h -v time_stamp timestamp.nc4 -A ${{EXPID}}.${{ThisCol}}.$YYYY$MM$DD.nc4
605+
$BASEBIN/ncgen -k4 -o timestamp.nc4 timestamp.cdl
606+
$BASEBIN/ncrcat -h $EXPID.$ThisCol.${{YYYY}}${{MM}}${{DD}}_* ${{EXPID}}.${{ThisCol}}.$YYYY$MM$DD.nc4
607+
$BASEBIN/ncks -4 -h -v time_stamp timestamp.nc4 -A ${{EXPID}}.${{ThisCol}}.$YYYY$MM$DD.nc4
608608
/bin/rm timestamp.cdl
609609
/bin/rm timestamp.nc4
610610
# rudimentary check for desired nc4 file; if ok, delete sub-daily files
@@ -745,7 +745,7 @@
745745
set tmp_file = $EXPDIR/output/$EXPDOMAIN/rs/$ENSDIR/Y${{eYEAR}}/M${{eMON}}/${{EXPID}}.${{rstf}}_internal_rst.${{eYEAR}}${{eMON}}${{eDAY}}_${{eHour}}${{eMin}}
746746
# copy generic restart file to final location/name but remove lat/lon variables
747747
# (lat/lon variables are not correct when running in EASE-grid tile space)
748-
ncks -4 -O -C -x -v lat,lon ${{rstf}}${{ENSID}}_internal_checkpoint $tmp_file
748+
$BASEBIN/ncks -4 -O -C -x -v lat,lon ${{rstf}}${{ENSID}}_internal_checkpoint $tmp_file
749749
/bin/rm -f ${{rstf}}${{ENSID}}_internal_checkpoint
750750
set old_rst = `/usr/bin/readlink -f $EXPDIR/input/restart/${{rstf}}${{ENSID}}_internal_rst`
751751
/bin/rm -f $EXPDIR/input/restart/${{rstf}}${{ENSID}}_internal_rst
@@ -777,7 +777,7 @@
777777
set TM = `echo $ThisTime | cut -c5-6`
778778
set THISDIR = $EXPDIR/output/$EXPDOMAIN/rs/$ENSDIR/Y${{TY}}/M${{TM}}/
779779
if (! -e $THISDIR ) mkdir -p $THISDIR
780-
(ncks -4 -O -C -x -v lat,lon $rfile ${{THISDIR}}${{EXPID}}.landpert_internal_rst.${{ThisTime}}.nc4;\\
780+
($BASEBIN/ncks -4 -O -C -x -v lat,lon $rfile ${{THISDIR}}${{EXPID}}.landpert_internal_rst.${{ThisTime}}.nc4;\\
781781
/usr/bin/gzip ${{THISDIR}}${{EXPID}}.landpert_internal_rst.${{ThisTime}}.nc4; \\
782782
/bin/rm -f $rfile) &
783783
end

0 commit comments

Comments
 (0)