MFIX  2016-1
cfupdateold.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
2 !
3 ! Subroutine: CFUPDATEOLD
4 ! Purpose: Update old arrays to store current time step information
5 ! before the new arrays are updated
6 !
7 ! Author: Jay Boyalakuntla Date: 12-Jun-04
8 ! Reviewer: Date:
9 !
10 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 
12  SUBROUTINE cfupdateold
13 
14 !-----------------------------------------------
15 ! Modules
16 !-----------------------------------------------
17  USE discretelement, only: max_pip, des_pos_old, des_pos_new, des_vel_old, des_vel_new, omega_old, omega_new
18  USE functions, ONLY: is_nonexistent, is_ghost
19  USE run
20  IMPLICIT NONE
21 !-----------------------------------------------
22 ! Local variables
23 !-----------------------------------------------
24 ! Loop counters (no. particles)
25  INTEGER LL
26 !-----------------------------------------------
27 
28 !!$omp parallel do if(max_pip .ge. 10000) default(shared) &
29 !!$omp private(ll) &
30 !!$omp schedule (guided,50)
31  DO ll = 1, max_pip
32  IF(is_nonexistent(ll) .or. is_ghost(ll)) cycle
33 
34  des_pos_old(ll,:) = des_pos_new(ll,:)
35  des_vel_old(ll,:) = des_vel_new(ll,:)
36  omega_old(ll,:) = omega_new(ll,:)
37 
38  ENDDO
39 !!$omp end parallel do
40 
41  RETURN
42  END SUBROUTINE cfupdateold
subroutine cfupdateold
Definition: cfupdateold.f:13
Definition: run_mod.f:13