Skip to content

Commit 077e3e3

Browse files
committed
Change for Matthew Hambley on character string
1 parent eda9eb4 commit 077e3e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/driver/source/mesh/create_mesh_mod.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ subroutine create_mesh_single( local_mesh_name, extrusion, &
161161
logical(l_def), intent(in) :: inner_halo_tiles
162162
integer(i_def), intent(in) :: tile_size(2)
163163

164-
character(str_def), intent(in), optional :: alt_name
164+
character(*), intent(in), optional :: alt_name
165165

166166
type(local_mesh_type), pointer :: local_mesh_ptr
167167

@@ -174,7 +174,7 @@ subroutine create_mesh_single( local_mesh_name, extrusion, &
174174
if ( .not. present(alt_name) ) then
175175
name = local_mesh_name
176176
else
177-
name = alt_name
177+
name = trim(alt_name)
178178
end if
179179

180180

0 commit comments

Comments
 (0)