Skip to content

Commit

Permalink
Merge pull request #139 from GEOS-ESM/bugfix/wjiang/getAerosolSum
Browse files Browse the repository at this point in the history
fix bug in getAerosolSum
  • Loading branch information
amdasilva authored May 26, 2022
2 parents 279bb81 + 2fe4a45 commit bbb6a55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Fix bug in getAerosolSum
- more hard-coded name changes for Issue #93
- Fixed bug in MieQuery.H, shape of not present variable is used
- remove logic dinosaur "goto"
Expand Down
5 changes: 3 additions & 2 deletions ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,8 @@ subroutine getAerosolSum (aeroToken, state, aeroList, aeroOut, rc)
! Begin...

endInd = len_trim(aeroToken)


aeroOut = 0.0
do i = 1, size(aeroList)
if (trim(aeroList(i)(1:endInd)) == trim(aeroToken)) then
call ESMF_StateGet(state, trim(aeroList(i)), child_state, __RC__)
Expand All @@ -2204,8 +2205,8 @@ subroutine getAerosolSum (aeroToken, state, aeroList, aeroOut, rc)
value=fld_name, __RC__)
if (fld_name /= '') then
call MAPL_GetPointer(child_state, ptr3d, trim(fld_name), __RC__)
aeroOut = aeroOut + ptr3d
end if
aeroOut = aeroOut + ptr3d
end if
end do

Expand Down

0 comments on commit bbb6a55

Please sign in to comment.