OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
int18_law151_omp_accumulation.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine int18_law151_omp_accumulation (multi_fvm)

Function/Subroutine Documentation

◆ int18_law151_omp_accumulation()

subroutine int18_law151_omp_accumulation ( type(multi_fvm_struct), intent(inout) multi_fvm)

Definition at line 32 of file int18_law151_omp_accumulation.F.

33!$COMMENT
34! INT18_LAW151_OMP_ACCUMULATION description
35! accumulation of force for remote nodes on the
36! main OpenMP thread
37! only useful when OMP_NUM_THREADS > 1
38!
39! INT18_LAW151_OMP_ACCUMULATION organization :
40! loop over the NTHREADS OpenMP task + NODFI phantom nodes
41! & accumulation in the 1rst memory cell
42!$ENDCOMMENT
43C-----------------------------------------------
44C M o d u l e s
45C-----------------------------------------------
46 USE tri7box
47 USE message_mod
48 USE multi_fvm_mod
49C-----------------------------------------------
50C I m p l i c i t T y p e s
51C-----------------------------------------------
52#include "implicit_f.inc"
53#include "comlock.inc"
54C-----------------------------------------------
55C C o m m o n B l o c k s
56C-----------------------------------------------
57#include "task_c.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 TYPE(MULTI_FVM_STRUCT), INTENT(INOUT) :: MULTI_FVM
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER :: J,N,NN
66 INTEGER :: NODFI,SHIFT_FORCE_INT
67! -----------------------------------
68 IF(nthread > 1) THEN
69 DO nn=1,multi_fvm%NUMBER_INT18
70 n = multi_fvm%INT18_LIST(nn)
71 nodfi = multi_fvm%R_AFI(n)%NODFI
72 DO j=2,nthread
73 shift_force_int = (j-1)*nodfi
74 multi_fvm%R_AFI(n)%R_FORCE_INT(1:3,1:6,1:nodfi) =
75 . multi_fvm%R_AFI(n)%R_FORCE_INT(1:3,1:6,1:nodfi)
76 . + multi_fvm%R_AFI(n)%R_FORCE_INT(1:3,1:6,1+shift_force_int:nodfi+shift_force_int)
77 multi_fvm%R_AFI(n)%R_FORCE_INT(1:3,1:6,1+shift_force_int:nodfi+shift_force_int) = 0.d+00
78 ENDDO
79 ENDDO
80 ENDIF
81
82 RETURN