diff --git a/openmc/capi/core.py b/openmc/capi/core.py index 7e4d29afc3..fa6517488d 100644 --- a/openmc/capi/core.py +++ b/openmc/capi/core.py @@ -64,11 +64,13 @@ def calculate_volumes(): def current_batch(): """Return the current batch of the simulation. - Returns + + Returns ------- int Current batch of the simulation - """ + + """ return c_int.in_dll(_dll, 'openmc_current_batch').value @@ -226,11 +228,13 @@ def keff(): def master(): """Return whether processor is master processor or not. - Returns + + Returns ------- bool Whether is master processor or not - """ + + """ return c_bool.in_dll(_dll, 'openmc_master').value diff --git a/src/vector_header.F90 b/src/vector_header.F90 index dadaaa48ca..27d773f888 100644 --- a/src/vector_header.F90 +++ b/src/vector_header.F90 @@ -91,16 +91,23 @@ contains !=============================================================================== ! VECTOR_WRITE writes a vector to file !=============================================================================== - subroutine vector_write(self, filename) - class(Vector), target, intent(inout) :: self ! vector instance + + subroutine vector_write(self, filename) + + class(Vector), target, intent(inout) :: self ! vector instance character(*), intent(in) :: filename ! filename to output to - integer :: unit_ + + integer :: unit_ integer :: i - open(newunit=unit_, file=filename) - do i = 1, self % n + + open(newunit=unit_, file=filename) + + do i = 1, self % n write(unit_,*) i, self % data(i) end do - close(unit_) - end subroutine vector_write + + close(unit_) + + end subroutine vector_write end module vector_header