Skip to content

Commit a5236bc

Browse files
committed
fix gfortran bug with character arrays
1 parent f369484 commit a5236bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interp_restarts.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,19 +597,19 @@ program interp_restarts
597597
if (rst_files(ifile)%has_edge .eqv. .false. &
598598
.and. rst_files(ifile)%has_center .eqv. .false. &
599599
.and. rst_files(ifile)%ungrid_size == -1) then
600-
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),(/'lon','lat'/),(/imc,jmc/),rc=status)
600+
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),['lon','lat'],[imc,jmc],rc=status)
601601
else if (rst_files(ifile)%has_edge .eqv. .false. &
602602
.and. rst_files(ifile)%has_center .eqv. .true. &
603603
.and. rst_files(ifile)%ungrid_size == -1) then
604-
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),(/'lon','lat','lev'/),(/imc,jmc,npz/),rc=status)
604+
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),['lon','lat','lev'],[imc,jmc,npz],rc=status)
605605
else if (rst_files(ifile)%has_edge .eqv. .true. &
606606
.and. rst_files(ifile)%has_center .eqv. .true. &
607607
.and. rst_files(ifile)%ungrid_size == -1) then
608-
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),(/'lon ','lat ','lev ','edge'/),(/imc,jmc,npz,npz+1/),rc=status)
608+
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),['lon ','lat ','lev ','edge'],[imc,jmc,npz,npz+1],rc=status)
609609
else if (rst_files(ifile)%has_edge .eqv. .false. &
610610
.and. rst_files(ifile)%has_center .eqv. .true. &
611611
.and. rst_files(ifile)%ungrid_size > 0) then
612-
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),(/'lon ','lat ','lev ','unknown_dim1'/),(/imc,jmc,npz,rst_files(ifile)%ungrid_size/),rc=status)
612+
call MAPL_IOChangeRes(InCfg(1),OutCfg(1),[character(len=12):: 'lon ','lat ','lev ','unknown_dim1'],[imc,jmc,npz,rst_files(ifile)%ungrid_size],rc=status)
613613
end if
614614

615615

0 commit comments

Comments
 (0)