Skip to content

Adds routine init_mask_3d() to diag_util_mod#1201

Merged
thomas-robinson merged 5 commits into
NOAA-GFDL:dmUpdatefrom
ganganoaa:init_mask_dmUpdate
May 10, 2023
Merged

Adds routine init_mask_3d() to diag_util_mod#1201
thomas-robinson merged 5 commits into
NOAA-GFDL:dmUpdatefrom
ganganoaa:init_mask_dmUpdate

Conversation

@ganganoaa
Copy link
Copy Markdown
Contributor

@ganganoaa ganganoaa commented Apr 25, 2023

Description
Adds a generic public routine, init_mask_3d(), to the diag_util_mod which will be used to initialize a local logical mask variable.

Fixes # (issue)
CI

How Has This Been Tested?
N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

Comment thread diag_manager/fms_diag_object.F90 Outdated
!> @brief Allocates outmask(second argument) with sizes of first three dimensions of field(first argument).
!! Initializes the outmask depending on presence/absence of inmask and rmask.
!! Uses and sets rmask_threshold.
subroutine fms_diag_init_mask_3d(field, outmask, rmask_threshold, inmask, rmask)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not a fmsDiagObject_type procedure and does not used the type at all. It should be somewhere else. Do you want to start a new file (fms_diag_util.F90) for these small procedures, or put them in diag_util, or make this a type bound procedure?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will put them in diag_util_mod.

@ganganoaa ganganoaa changed the title Adds routine fms_diag_init_mask_3d() to fms_diag_object_mod Adds routine init_mask_3d() to diag_util_mod Apr 27, 2023
@thomas-robinson thomas-robinson merged commit de83a75 into NOAA-GFDL:dmUpdate May 10, 2023
rem1776 pushed a commit to rem1776/FMS that referenced this pull request May 1, 2024
* Adds routine fms_diag_init_mask_3d()  to diag_util_mod
rem1776 pushed a commit to rem1776/FMS that referenced this pull request May 1, 2024
* Adds routine fms_diag_init_mask_3d()  to diag_util_mod
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.

2 participants