42
43
44
50 USE mat_elem_mod
51
52
53
54#include "implicit_f.inc"
55
56
57
58#include "com04_c.inc"
59#include "scr17_c.inc"
60#include "param_c.inc"
61#include "sphcom.inc"
62
63
64
65 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
67 . rnoise(nperturb,numelc+numeltg+numels+numsph),
68 . qp_rperturb(nperturb,4)
69
70 INTEGER IPART(LIPART1,*),IPARTC(*),IPARTSP(*),IPARTG(*),IPARTS(*),
71 . IPM(NPROPMI,*),PERTURB(NPERTURB),QP_IPERTURB(NPERTURB,6)
72 TYPE(SUBMODEL_DATA) LSUBMODEL(*)
73 TYPE (MATPARAM_STRUCT_) ,DIMENSION(NUMMAT) ,INTENT(INOUT) :: MAT_PARAM
74
75 TYPE (GROUP_) , DIMENSION(NGRPART) :: IGRPART
76
77
78
79 INTEGER ITYP,IDPERTURB(NPERTURB),
80 . NPART_SHELL,NPART_SOLID,OFFS
81 INTEGER, DIMENSION(:), ALLOCATABLE :: INDEX,INDEX_ITYP
83 CHARACTER MESS*40
84
85
86
87 DATA mess/'PERTURBATION DEFINITION '/
88
89
90 ityp = 0
91 offs = 0
92 bid = zero
93 idperturb(1:nperturb) = 0
94
95 ALLOCATE(index(numelc+numeltg+numels+numsph))
96 ALLOCATE(index_ityp(numelc+numeltg+numels+numsph))
97 index(:) = 0
98 index_ityp(:) = 0
99
100
103
104
105
106 IF (npart_shell > 0) THEN
107
109 . ipart ,rnoise ,ipartc ,ipartg ,igrpart ,
110 . ipm ,perturb ,lsubmodel,unitab ,idperturb ,
111 . index ,index_ityp,npart_shell,offs,qp_iperturb,
112 . qp_rperturb)
113
114 offs = offs + npart_shell
115 ENDIF
116
117
118
119 IF (npart_solid > 0) THEN
120
122 . ipart ,rnoise ,igrpart ,ipm ,iparts ,
123 . perturb,lsubmodel ,unitab ,idperturb,index ,
124 . index_ityp,npart_solid ,offs ,qp_iperturb,
125 . qp_rperturb)
126
127 offs = offs + npart_solid
128 ENDIF
129
130
131
133 . ipart ,rnoise ,ipartc ,ipartg ,ipartsp ,
134 . igrpart ,iparts ,perturb ,idperturb,
135 . index ,index_ityp,npart_shell,offs ,qp_iperturb,
136 . qp_rperturb,lsubmodel,unitab)
137
138
139
140 CALL udouble(idperturb,1,nperturb,mess,0,bid)
141
142 IF (ALLOCATED(index)) DEALLOCATE(index)
143 IF (ALLOCATED(index_ityp)) DEALLOCATE(index_ityp)
144
145 RETURN
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_read_perturb_fail(mat_param, ipart, rnoise, ipartc, ipartg, ipartsp, igrpart, iparts, perturb, idperturb, index, index_ityp, npart_shell, offs, qp_iperturb, qp_rperturb, lsubmodel, unitab)
subroutine hm_read_perturb_part_shell(ipart, rnoise, ipartc, ipartg, igrpart, ipm, perturb, lsubmodel, unitab, idperturb, index, index_ityp, npart_shell, offs, qp_iperturb, qp_rperturb)
subroutine hm_read_perturb_part_solid(ipart, rnoise, igrpart, ipm, iparts, perturb, lsubmodel, unitab, idperturb, index, index_ityp, npart_solid, offs, qp_iperturb, qp_rperturb)
subroutine udouble(list, ilist, nlist, mess, ir, rlist)