eplf/src/info.irp.f

40 lines
881 B
FortranFixed
Raw Normal View History

2009-12-09 23:28:19 +01:00
BEGIN_TEMPLATE
2009-09-11 17:35:23 +02:00
2009-12-09 23:28:19 +01:00
subroutine $Xinfo (here,token,value)
implicit none
character*(*), intent(in) :: here
character*(*), intent(in) :: token
$Y, intent(in) :: value
if (mpi_master) then
print *, trim(here)//':'
$Z
endif
end
2009-09-11 17:35:23 +02:00
2009-12-09 23:28:19 +01:00
SUBST [ X, Y, Z ]
r; real;
print *, ' -> ', trim(token), '=', value;;
d; double precision;
print *, ' -> ', trim(token), '=', value;;
i; integer;
print *, ' -> ', trim(token), '=', value;;
c; character*(*);
print *, ' -> ', trim(token), '=', value;;
l; logical;
if (value) then
print *, ' -> ', trim(token), '= True'
else
print *, ' -> ', trim(token), '= False'
endif;;
END_TEMPLATE
2009-09-11 17:35:23 +02:00
subroutine info(here,message)
implicit none
2009-12-09 23:28:19 +01:00
character*(*), intent(in) :: here, message
2009-09-11 17:35:23 +02:00
if (mpi_master) then
2009-12-09 23:28:19 +01:00
print *, trim(here)//':'
print *, ' -> ', trim(message)
2009-09-11 17:35:23 +02:00
endif
end