@@ -66,49 +66,49 @@ module subroutine nc_write_1d(self, dname, value, dims)
6666class(netcdf_file), intent (in ) :: self
6767character (* ), intent (in ) :: dname
6868class(* ), intent (in ) :: value(:)
69- character (* ), intent (in ), optional :: dims(: )
69+ character (* ), intent (in ), optional :: dims(1 )
7070end subroutine nc_write_1d
7171
7272module subroutine nc_write_2d (self , dname , value , dims )
7373class(netcdf_file), intent (in ) :: self
7474character (* ), intent (in ) :: dname
7575class(* ), intent (in ) :: value(:,:)
76- character (* ), intent (in ), optional :: dims(: )
76+ character (* ), intent (in ), optional :: dims(2 )
7777end subroutine nc_write_2d
7878
7979module subroutine nc_write_3d (self , dname , value , dims )
8080class(netcdf_file), intent (in ) :: self
8181character (* ), intent (in ) :: dname
8282class(* ), intent (in ) :: value(:,:,:)
83- character (* ), intent (in ), optional :: dims(: )
83+ character (* ), intent (in ), optional :: dims(3 )
8484end subroutine nc_write_3d
8585
8686module subroutine nc_write_4d (self , dname , value , dims )
8787class(netcdf_file), intent (in ) :: self
8888character (* ), intent (in ) :: dname
8989class(* ), intent (in ) :: value(:,:,:,:)
90- character (* ), intent (in ), optional :: dims(: )
90+ character (* ), intent (in ), optional :: dims(4 )
9191end subroutine nc_write_4d
9292
9393module subroutine nc_write_5d (self , dname , value , dims )
9494class(netcdf_file), intent (in ) :: self
9595character (* ), intent (in ) :: dname
9696class(* ), intent (in ) :: value(:,:,:,:,:)
97- character (* ), intent (in ), optional :: dims(: )
97+ character (* ), intent (in ), optional :: dims(5 )
9898end subroutine nc_write_5d
9999
100100module subroutine nc_write_6d (self , dname , value , dims )
101101class(netcdf_file), intent (in ) :: self
102102character (* ), intent (in ) :: dname
103103class(* ), intent (in ) :: value(:,:,:,:,:,:)
104- character (* ), intent (in ), optional :: dims(: )
104+ character (* ), intent (in ), optional :: dims(6 )
105105end subroutine nc_write_6d
106106
107107module subroutine nc_write_7d (self , dname , value , dims )
108108class(netcdf_file), intent (in ) :: self
109109character (* ), intent (in ) :: dname
110110class(* ), intent (in ) :: value(:,:,:,:,:,:,:)
111- character (* ), intent (in ), optional :: dims(: )
111+ character (* ), intent (in ), optional :: dims(7 )
112112end subroutine nc_write_7d
113113
114114end interface
0 commit comments