Skip to content

Update code to use 'constantsR4_mod' module#59

Merged
junwang-noaa merged 4 commits into
NOAA-EMC:fms_mixedmodefrom
binli2337:fms_mixedmode
Oct 21, 2021
Merged

Update code to use 'constantsR4_mod' module#59
junwang-noaa merged 4 commits into
NOAA-EMC:fms_mixedmodefrom
binli2337:fms_mixedmode

Conversation

@binli2337
Copy link
Copy Markdown

Update code to use 'constantsR4_mod' module.

driver/fvGFS/atmosphere.F90
driver/fvGFS/fv_nggps_diag.F90
model/fv_dynamics.F90
model/fv_nesting.F90
model/fv_update_phys.F90
model/nh_core.F90
model/nh_utils.F90
tools/coarse_grained_diagnostics.F90
tools/external_ic.F90
tools/fv_diagnostics.F90
tools/fv_nudge.F90
tools/fv_restart.F90
tools/test_cases.F90
Comment thread tools/external_ic.F90
real(r4_kind) qmin(jm), qmax(jm)
real(r4_kind) pmax, pmin
class(*) fac ! multiplication factor
real(r8_kind) qmin8(jm), qmax8(jm)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make these local arrays allocatable? (I am not sure how large jm is).

Comment thread tools/external_ic.F90
qmax(j) = pmax
qmin(j) = pmin
enddo
qmax(j) = pmax
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor details: the statements under the select type constructs and do loops do not seem be indented consistently.

Copy link
Copy Markdown
Collaborator

@junwang-noaa junwang-noaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look good. Please correct the indentation in external_ic.F90 and fv_nudge.F90, Thanks

@junwang-noaa junwang-noaa merged commit 164097c into NOAA-EMC:fms_mixedmode Oct 21, 2021
@binli2337 binli2337 deleted the fms_mixedmode branch December 4, 2022 20:18
BinLiu-NOAA pushed a commit to hafs-community/GFDL_atmos_cubed_sphere that referenced this pull request Dec 13, 2022
* Update code to use 'constantsR4_mod' module (NOAA-EMC#59)

* update tools/fv_nudge.F90
* modify the following files to use 'constantsR4_mod' module:
driver/fvGFS/atmosphere.F90
driver/fvGFS/fv_nggps_diag.F90
model/fv_dynamics.F90
model/fv_nesting.F90
model/fv_update_phys.F90
model/nh_core.F90
model/nh_utils.F90
tools/coarse_grained_diagnostics.F90
tools/external_ic.F90
tools/fv_diagnostics.F90
tools/fv_nudge.F90
tools/fv_restart.F90
tools/test_cases.F90

* revise external_ic.F90 and fv_nudge.F90 to use allocatable arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants