-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parallel netcdf IO #41
Conversation
rad2dg can be deleted from module_write_netcdf.F90 |
@junwang-noaa Please delete ESMF_ERR_ABORT define (first 3 lines in a file) from module_write_netcdf.F90 and module_write_netcdf_parallel.F90. This macro is not used. |
…,jchunk2d) Default is size of array on each write task.
io/module_write_netcdf_parallel.F90
Outdated
@@ -171,7 +172,7 @@ subroutine write_netcdf_parallel(fieldbundle, wrtfb, filename, mpi_comm, mype, i | |||
ncerr = nf90_def_var(ncid, trim(fldName), NF90_FLOAT, & | |||
(/im_dimid,jm_dimid,pfull_dimid,time_dimid/), varids(i), & | |||
shuffle=.false.,deflate_level=ideflate,& | |||
chunksizes=(/im,jm,1,1/),cache_size=40*im*jm); NC_ERR_STOP(ncerr) | |||
chunksizes=(/im,jm,1,1/)); NC_ERR_STOP(ncerr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must two of the chunksizes be 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but this seems to be the most common access pattern (reading a 2d horizontal slice).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now changed so that chunksize can be specified at run time. Default is to use MPI decompisition size..
Default is now ichunk3d,jchunk3d same as array size on each PE, kchunk3d=nlevs This results in the fastest writes on hera.
…ve, let netcdf library choose defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The netcdf parts look OK.
Are there no tests in this repo? Where do you guys do testing?
We are doing the tests with FV3 parallel code. Currently we are in the
process of updating regression test. Will talk to you in next weeks on
setting up CI.
Jun
…On Tue, Feb 4, 2020 at 1:08 PM Edward Hartnett ***@***.***> wrote:
***@***.**** commented on this pull request.
The netcdf parts look OK.
Are there no tests in this repo? Where do you guys do testing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41?email_source=notifications&email_token=AI7D6TPW5ZBHDJ5MQC6YAH3RBGVKHA5CNFSM4KFKDGJ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUGT5RY#pullrequestreview-353189575>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7D6TM7Y4VKXNYOQGEUS3DRBGVKHANCNFSM4KFKDGJQ>
.
|
I am OK with this PR as is. |
Thanks, Jeff and Ed for reviewing the code.
…On Tue, Feb 4, 2020 at 1:46 PM Jeff Whitaker ***@***.***> wrote:
I am OK with this PR as is.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#41?email_source=notifications&email_token=AI7D6TLV7EG5SMPFKW7RGHDRBGZXRA5CNFSM4KFKDGJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKYXZOI#issuecomment-582057145>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7D6TOOEM4LLVU72637VCDRBGZXRANCNFSM4KFKDGJQ>
.
|
…tc_hwrf-physics dtc/hwrf-physics: merge HWRF saSAS with GFS version, update to a more recent version of fv3atm from EMC develop
…er update for #462 (#634) * add nssl_alphar, nssl_ehw0_in, nssl_ehlw0_in to namelist entries for ensemble perturbationsons * update the standard name for hail/graupel collection efficiency * update the long names for parameters related to NSSL microphysics * update ccpp/physics and ccpp/framework submodule pointers --------- Co-authored-by: Jili Dong <Jili.Dong@noaa.gov>
this enables parallel IO for netcdf output - set 'netcdf_parallel' for output_file in model_configure. Works for compressed writes.
TODO: add ifdef's around parallel code sections so parallel versions of netcdf/hdf5 will not be requiredTo compile without netcdf parallel support, use
-DNO_PARALLEL_NETCDF
#23
Supersedes #19