Skip to content

Commit

Permalink
fixes #1565
Browse files Browse the repository at this point in the history
  • Loading branch information
bena-nasa committed Jun 13, 2022
1 parent 3ef81a0 commit 7ce5207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Update CI to work with latest GEOSadas `develop` (Uses a special branch of GEOSadas)
- Fix bundleio tests
- HistoryGridComp now checks if a file exists already before writing and errors out if so

### Added

Expand Down
6 changes: 5 additions & 1 deletion gridcomps/History/MAPL_HistoryGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3365,7 +3365,7 @@ subroutine Run ( gc, import, export, clock, rc )
integer :: sec

! variables for "backwards" mode
logical :: fwd
logical :: fwd, file_exists
logical, allocatable :: Ignore(:)

! ErrLog vars
Expand Down Expand Up @@ -3605,6 +3605,10 @@ subroutine Run ( gc, import, export, clock, rc )
list(n)%currentFile = filename(n)
else
if( list(n)%unit.eq.0 ) then
inquire (file=trim(filename(n)),exist=file_exists)
if (file_exists) then
_FAIL(trim(filename(n))//" being created for History output already exists")
end if
if (list(n)%format == 'CFIO') then
call list(n)%mGriddedIO%modifyTime(oClients=o_Clients,rc=status)
_VERIFY(status)
Expand Down

0 comments on commit 7ce5207

Please sign in to comment.