Skip to content

Commit

Permalink
Merge pull request #10 from mark-a-potts/DA-closbuf-fix
Browse files Browse the repository at this point in the history
DA closbuf fix
  • Loading branch information
mark-a-potts authored Jul 16, 2020
2 parents ce9ac36 + 77b1d43 commit c39f6e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/closbf.f → src/closbf.F
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,19 @@ SUBROUTINE CLOSBF(LUNIT)
USE MODA_NULBFR

INCLUDE 'bufrlib.prm'
CHARACTER*128 ERRSTR

C-----------------------------------------------------------------------
C-----------------------------------------------------------------------

#ifdef DYNAMIC_ALLOCATION
IF ( .NOT. ALLOCATED(NULL) ) THEN
CALL ERRWRT('++++++++++++++++++++WARNING++++++++++++++++++++++')
ERRSTR = 'BUFRLIB: CLOSBF CALLED BEFORE OPENBF'
CALL ERRWRT(ERRSTR)
CALL ERRWRT('++++++++++++++++++++WARNING++++++++++++++++++++++')
RETURN
ENDIF
#endif
CALL STATUS(LUNIT,LUN,IL,IM)
IF(IL.GT.0 .AND. IM.NE.0) CALL CLOSMG(LUNIT)
IF(IL.NE.0 .AND. NULL(LUN).EQ.0) CALL CLOSFB(LUN)
Expand Down
2 changes: 1 addition & 1 deletion src/list_of_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ set(fortran_src
chrtrn.f
chrtrna.f
cktaba.f
closbf.f
closmg.f
cmpmsg.f
cmsgini.f
Expand Down Expand Up @@ -298,6 +297,7 @@ set(fortran_src
wtstat.f
arallocf.F
ardllocf.F
closbf.F
ireadmt.F
irev.F
isetprm.F
Expand Down

0 comments on commit c39f6e5

Please sign in to comment.