aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/network.F902
-rw-r--r--common/protocol.f902
-rw-r--r--common/utilities.F902
3 files changed, 2 insertions, 4 deletions
diff --git a/common/network.F90 b/common/network.F90
index 90bf2be..860830b 100644
--- a/common/network.F90
+++ b/common/network.F90
@@ -293,7 +293,7 @@ implicit none
! Extract the name
hnamelen = strlen_c(cres%h_name)
call c_f_pointer(cres%h_name, h_name, [hnamelen])
- allocate(character(len=i) :: res%h_name)
+ allocate(character(len=hnamelen) :: res%h_name)
do i = 1, hnamelen
res%h_name(i:i) = h_name(i)
end do
diff --git a/common/protocol.f90 b/common/protocol.f90
index be6f280..3b4a8a3 100644
--- a/common/protocol.f90
+++ b/common/protocol.f90
@@ -180,7 +180,7 @@ contains
else
- write(unit_number) buffer(i)
+ write(unit_number, '(A1)', advance='no') buffer(i)
end if
diff --git a/common/utilities.F90 b/common/utilities.F90
index 3ce3363..895e604 100644
--- a/common/utilities.F90
+++ b/common/utilities.F90
@@ -122,7 +122,6 @@ contains
function generate_temporary_filename() result(fullpath)
use iso_c_binding
- use logging
implicit none
character(len=:), pointer::fullpath
@@ -182,7 +181,6 @@ contains
! Convert the C Ptr to a Fortran object
clength = c_strlen(tmp_name)
if(clength == 0) then
- call write_log("temp name is zero length")
stop
end if
call c_f_pointer(tmp_name, cfullpath, (/ clength /))