diff options
Diffstat (limited to 'src/qlm_import_surface.F90')
-rw-r--r-- | src/qlm_import_surface.F90 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/qlm_import_surface.F90 b/src/qlm_import_surface.F90 index 18173db..1bb5500 100644 --- a/src/qlm_import_surface.F90 +++ b/src/qlm_import_surface.F90 @@ -14,8 +14,8 @@ subroutine qlm_import_surface (CCTK_ARGUMENTS, hn) DECLARE_CCTK_PARAMETERS integer :: hn - integer :: i, j, sn - character :: msg*1000 + integer :: i, j, sn, sname_length + character :: msg*1000, sname*200 if (veryverbose/=0) then call CCTK_INFO ("Importing surface shape") @@ -29,8 +29,10 @@ subroutine qlm_import_surface (CCTK_ARGUMENTS, hn) sn = sf_IdFromName(surface_index(hn), surface_name(hn)) + 1 if (verbose/=0 .or. veryverbose/=0) then - write (msg, '("Importing from spherical surface ",a," ",i4)') & - surface_name(hn), sn - 1 + call CCTK_FortranString(sname_length, surface_name(hn), sname) + ! no error checking since FortranString's truncation is sufficient + write (msg, '("Importing from spherical surface ",i4," ",a)') & + sn - 1, TRIM(sname) call CCTK_INFO (msg) end if |