Skip to content
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

Use fileset rather than threading for decompositon #378

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/framework/MOM_io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,14 @@ subroutine create_MOM_file(IO_handle, filename, vars, novars, fields, &
if (one_file) then
if (domain_set) then
call IO_handle%open(filename, action=OVERWRITE_FILE, &
MOM_domain=domain, threading=thread)
MOM_domain=domain, threading=thread, fileset=SINGLE_FILE)
else
call IO_handle%open(filename, action=OVERWRITE_FILE, threading=thread)
call IO_handle%open(filename, action=OVERWRITE_FILE, threading=thread, &
fileset=SINGLE_FILE)
endif
else
call IO_handle%open(filename, action=OVERWRITE_FILE, MOM_domain=Domain)
call IO_handle%open(filename, action=OVERWRITE_FILE, MOM_domain=Domain, &
threading=thread, fileset=thread)
endif

! Define the coordinates.
Expand Down
4 changes: 2 additions & 2 deletions src/framework/MOM_io_file.F90
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ subroutine open_file_infra(handle, filename, action, MOM_domain, threading, file
! True if the domain is replaced with a single-file IO layout.

use_single_file_domain = .false.
if (present(MOM_domain) .and. present(threading)) then
if (threading == SINGLE_FILE) &
if (present(MOM_domain) .and. present(fileset)) then
if (fileset == SINGLE_FILE) &
use_single_file_domain = .true.
endif

Expand Down