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

Go to the source code of this file.

Functions/Subroutines

subroutine upgrade_ixint (inter_cand, nelemint, new_size)

Function/Subroutine Documentation

◆ upgrade_ixint()

subroutine upgrade_ixint ( type(inter_cand_), intent(inout) inter_cand,
integer, intent(in) nelemint,
integer, intent(in) new_size )
Parameters
[in]nelemintnumber of pair of candidate
[in]new_sizenumber of pair of candidate for the current interface
[in,out]inter_candstructure of pair of candidate

Definition at line 32 of file upgrade_ixint.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
37C-------------------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER, INTENT(in) :: NELEMINT !< number of pair of candidate
45 INTEGER, INTENT(in) :: NEW_SIZE !< number of pair of candidate for the current interface
46 TYPE(INTER_CAND_), INTENT(inout) :: INTER_CAND !< structure of pair of candidate
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER, DIMENSION(:,:), ALLOCATABLE :: TEMP
51C-----------------------------------------------
52 ALLOCATE(temp(inter_cand%S_IXINT_1,nelemint))
53 temp(1:inter_cand%S_IXINT_1,1:nelemint) = inter_cand%IXINT(1:inter_cand%S_IXINT_1,1:nelemint)
54 DEALLOCATE(inter_cand%IXINT)
55
56 inter_cand%S_IXINT_2 = nelemint+new_size
57 ALLOCATE(inter_cand%IXINT(inter_cand%S_IXINT_1,inter_cand%S_IXINT_2))
58 inter_cand%IXINT(1:inter_cand%S_IXINT_1,1:nelemint)=temp(1:inter_cand%S_IXINT_1,1:nelemint)
59
60 DEALLOCATE(temp)
61 RETURN
62