From 8863351bc9906db9ed06e4a58e99593b4e63e9d1 Mon Sep 17 00:00:00 2001 From: rhaas Date: Wed, 22 Feb 2012 22:40:09 +0000 Subject: properly construct Fotran string from Cactus string for write() statement git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/QuasiLocalMeasures/trunk@37 ef6f4158-a8ee-47d1-ba14-cb73256398e0 --- src/qlm_import_surface.F90 | 10 ++++++---- 1 file 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 -- cgit v1.2.3