mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
threadsafe particle restart writing
This commit is contained in:
parent
34350fa446
commit
5d06aefbec
1 changed files with 2 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ contains
|
|||
filename = trim(filename) // '.binary'
|
||||
#endif
|
||||
|
||||
!$omp critical
|
||||
! Create file
|
||||
call pr % file_create(filename)
|
||||
|
||||
|
|
@ -59,6 +60,7 @@ contains
|
|||
|
||||
! Close file
|
||||
call pr % file_close()
|
||||
!$omp end critical
|
||||
|
||||
end subroutine write_particle_restart
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue