mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
added in cmfd execute information for testing flux extraction from tally object
This commit is contained in:
parent
ff95500553
commit
5e825ffdf4
3 changed files with 22 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ interpolation.o: search.o
|
|||
logging.o: constants.o
|
||||
logging.o: global.o
|
||||
|
||||
main.o: cmfd_execute.o
|
||||
main.o: constants.o
|
||||
main.o: global.o
|
||||
main.o: initialize.o
|
||||
|
|
|
|||
|
|
@ -9,6 +9,23 @@ module cmfd_execute
|
|||
|
||||
contains
|
||||
|
||||
!===============================================================================
|
||||
! EXECUTE_CMFD is the highest level routine that controls CMFD calculation
|
||||
!===============================================================================
|
||||
|
||||
subroutine execute_cmfd()
|
||||
|
||||
! allocate cmfd object
|
||||
call allocate_cmfd()
|
||||
|
||||
! calculate all cross sections based on reaction rates from last batch
|
||||
call compute_xs()
|
||||
|
||||
! print out flux for debugginb
|
||||
write(11,*) cmfd % flux
|
||||
|
||||
end subroutine
|
||||
|
||||
!===============================================================================
|
||||
! ALLOCATE_CMFD allocates all of the space for the cmfd object based on tallies
|
||||
!===============================================================================
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
program main
|
||||
|
||||
use cmfd_execute, only: execute_cmfd
|
||||
use constants
|
||||
use global
|
||||
use initialize, only: initialize_run
|
||||
|
|
@ -132,6 +133,9 @@ contains
|
|||
! Calculate statistics for tallies
|
||||
call tally_statistics()
|
||||
|
||||
! call cmfd calculation
|
||||
call execute_cmfd()
|
||||
|
||||
if (master) call header("SIMULATION FINISHED", 1)
|
||||
|
||||
end subroutine run_problem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue