Routine that performs output of the self-force.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(self_force), | intent(inout) | :: | this | The routine is called on this self_force object. |
subroutine output ( this )
!! Routine that performs output of the self-force.
use output_base
use time_info, only : get_current_time
implicit none
class(self_force), intent(inout) :: this
!! The routine is called on this [[self_force]] object.
integer(ip) :: ioo_id, tmp_id
character(len=14) :: filename = 'self_force.asc'
ioo_id = this%ioo_id
if (ioo_id<0) then
ioo_id = next_available_io_id ()
this%ioo_id = ioo_id
print*,'Opening ', filename, ' with id ', ioo_id
open(ioo_id, file=filename, status='replace', action='write')
end if
write(ioo_id, '(*(es23.15e3,1x))') get_current_time ( ), this%f
end subroutine output