00001 subroutine source_MWtemp_WL(sou)
00002 use grid_parameter, only : nrg, ntg, npg
00003 use interface_sourceterm_MWtemp_CF
00004 use interface_sourceterm_MWtemp_current
00005 use interface_sourceterm_MWtemp_WL
00006 use make_array_3d
00007 implicit none
00008 real(8), pointer :: sou(:,:,:), sou1(:,:,:), sou2(:,:,:), sou3(:,:,:)
00009 call alloc_array3d(sou1,0,nrg,0,ntg,0,npg)
00010 call alloc_array3d(sou2,0,nrg,0,ntg,0,npg)
00011 call alloc_array3d(sou3,0,nrg,0,ntg,0,npg)
00012 call sourceterm_MWtemp_CF(sou1)
00013 call sourceterm_MWtemp_current(sou2)
00014 call sourceterm_MWtemp_WL(sou3)
00015 sou(0:nrg,0:ntg,0:npg) = sou1(0:nrg,0:ntg,0:npg) &
00016 & + sou2(0:nrg,0:ntg,0:npg) &
00017 & + sou3(0:nrg,0:ntg,0:npg)
00018 deallocate(sou1)
00019 deallocate(sou2)
00020 deallocate(sou3)
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 end subroutine source_MWtemp_WL