Skip to content
Snippets Groups Projects
Commit 1c10e097 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann :seedling:
Browse files

Skip the collision computation for CLOS=1

parent 32b5d860
No related branches found
No related tags found
No related merge requests found
...@@ -30,15 +30,19 @@ CONTAINS ...@@ -30,15 +30,19 @@ CONTAINS
a:DO ia = 1,local_na a:DO ia = 1,local_na
j:DO ij = 1,total_nj j:DO ij = 1,total_nj
p:DO ip = 1,total_np p:DO ip = 1,total_np
!! Take GK or DK limit IF((CLOS .NE. 1) .OR. (p_int+2*j_int .LE. dmax)) THEN !compute for every moments except for closure 1
IF (GK_CO) THEN ! GK operator (k-dependant) !! Take GK or DK limit
ikx_C = ikx; iky_C = iky; iz_C = iz; IF (GK_CO) THEN ! GK operator (k-dependant)
ELSE ! DK operator (only one mat for every k) ikx_C = ikx; iky_C = iky; iz_C = iz;
ikx_C = 1; iky_C = 1; iz_C = 1; ELSE ! DK operator (only one mat for every k)
ikx_C = 1; iky_C = 1; iz_C = 1;
ENDIF
!! Apply the cosolver collision matrix
CALL apply_cosolver_mat(ia,ip,ij,iky,ikx,iz,ikx_C,iky_C,iz_C,Tmp_)
local_coll(ip) = Tmp_
ELSE
local_coll(ip) = 0._xp
ENDIF ENDIF
!! Apply the cosolver collision matrix
CALL apply_cosolver_mat(ia,ip,ij,iky,ikx,iz,ikx_C,iky_C,iz_C,Tmp_)
local_coll(ip) = Tmp_
ENDDO p ENDDO p
IF (num_procs_p .GT. 1) THEN IF (num_procs_p .GT. 1) THEN
! Reduce the local_sums to root = 0 ! Reduce the local_sums to root = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment