mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Update spacing
This commit is contained in:
parent
349c2a804b
commit
c818b5a50b
2 changed files with 22 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue