Skip to content

Commit

Permalink
fix multiinstance log filename correction and remove FMS1 io api calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Sep 15, 2023
1 parent d363034 commit de55fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config_src/drivers/nuopc_cap/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,9 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)

if (cesm_coupled) then
! Multiinstance logfile name needs a correction
if(logfile(4:4) == '_') then
logfile = logfile(1:3)//trim(inst_suffix)//logfile(9:)
if(len_trim(inst_suffix) > 0) then
n = index(logfile, '.')
logfile = logfile(1:n-1)//trim(inst_suffix)//logfile(n:)
endif
endif

Expand Down
1 change: 0 additions & 1 deletion config_src/infra/FMS2/MOM_ensemble_manager_infra.F90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ subroutine ensemble_manager_init(ensemble_suffix)

if (present(ensemble_suffix)) then
call fms2_io_set_filename_appendix(trim(ensemble_suffix))
call fms_io_set_filename_appendix(trim(ensemble_suffix))
else
call FMS_ensemble_manager_init()
endif
Expand Down

0 comments on commit de55fd6

Please sign in to comment.