Skip to content

Commit

Permalink
Merge pull request #1434 from GEOS-ESM/hotfix/bmauer/fixes-#1433
Browse files Browse the repository at this point in the history
fixes #1433
  • Loading branch information
mathomp4 authored Mar 15, 2022
2 parents ab72024 + 5f25d2e commit 8ed631a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Deprecated


## [2.18.3] - 2022-03-14
## [2.18.3] - 2022-03-15

### Fixed

- Fixed bug in 2.18.2 release when computing lats in degrees lat-lon grid factory
- Fixed GNU bug when defining file metadata in lat-lon grid factory

## [2.18.2] - 2022-03-11

Expand Down
8 changes: 6 additions & 2 deletions base/MAPL_LatLonGridFactory.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,7 @@ subroutine append_metadata(this, metadata)
type (FileMetadata), intent(inout) :: metadata

type (Variable) :: v
real(kind=REAL64), allocatable :: temp_coords(:)

! Horizontal grid dimensions
call metadata%add_dimension('lon', this%im_world)
Expand All @@ -1834,13 +1835,16 @@ subroutine append_metadata(this, metadata)
v = Variable(type=PFIO_REAL64, dimensions='lon')
call v%add_attribute('long_name', 'longitude')
call v%add_attribute('units', 'degrees_east')
call v%add_const_value(UnlimitedEntity(this%get_longitudes_degrees()))
temp_coords = this%get_longitudes_degrees()
call v%add_const_value(UnlimitedEntity(temp_coords))
call metadata%add_variable('lon', v)
deallocate(temp_coords)

v = Variable(type=PFIO_REAL64, dimensions='lat')
call v%add_attribute('long_name', 'latitude')
call v%add_attribute('units', 'degrees_north')
call v%add_const_value(UnlimitedEntity(this%get_latitudes_degrees()))
temp_coords=this%get_latitudes_degrees()
call v%add_const_value(UnlimitedEntity(temp_coords))
call metadata%add_variable('lat', v)

end subroutine append_metadata
Expand Down

0 comments on commit 8ed631a

Please sign in to comment.