Dear Prof. Govindjee
Thank you for your response. I believe I have successfully implemented the user macro and compliance calculation.
Would you mind advising if my approach is reading the hr array for F and U correctly, and is somewhat computationally efficient?
logical pcomp
character lct*15
real*8 ctl(3)
save
real*8 c
real*8 F(ndf*numnp),U(ndf*numnp)
! Set command word
if(pcomp(uct,'mac1',4)) then ! Default form: DO NOT CHANGE
uct = 'UMAC' ! Specify new name
else ! Perform user operation
! Calculation and output of response(s)
! Read F & U
F(:) = hr(np(27):np(27)+(ndf*numnp))
U(:) = hr(np(40):np(40)+(ndf*numnp))
! Dot Product F & U
c = dot_product(F,U)
write(*,*) 'comp=', c
endif
Thanks again for your input,
Elliot