[Fortran] 纯文本查看 复制代码
module hiden_para
implicit none
real*8 h_c1(10000)
real*8 h_c2(10000)
real*8 h_s1(10000)
real*8 h_s2(10000)
real*8 h_m(10000)
!h为应该使用的网络隐藏层参数
real*8 h1_c1(10000)
real*8 h1_c2(10000)
real*8 h1_s1(10000)
real*8 h1_s2(10000)
real*8 h1_m(10000)
!h1为下一步使用的网络隐藏层参数
real*8 hy_c1(10000)
real*8 hy_c2(10000)
real*8 hy_s1(10000)
real*8 hy_s2(10000)
real*8 hy_m(10000)
common h_c1,h_c2,h_s1,h_s2,h_m
common h1_c1,h1_c2,h1_s1,h1_s2,h1_m
common hy_c1,hy_c2,hy_s1,hy_s2,hy_m
!hy为保存更新前网络隐藏层参数
end
[Fortran] 纯文本查看 复制代码
SUBROUTINE UEL(RHS,AMATRX,SVARS,ENERGY,NDOFEL,NRHS,NSVARS,
1 PROPS,NPROPS,COORDS,MCRD,NNODE,U,DU,V,A,JTYPE,TIME,
1 DTIME,KSTEP,KINC,JELEM,PARAMS,NDLOAD,JDLTYP,ADLMAG,
1 PREDEF,NPREDF,LFLAGS,MLVARX,DDLMAG,MDLOAD,PNEWDT,
1 JPROPS,NJPROP,PERIOD)
use hiden_para
INCLUDE 'ABA_PARAM.INC'
h_s1=SVARS(49:10048)
h_s2=SVARS(10049:20048)
h_c1=SVARS(20049:30048)
h_c2=SVARS(30049:40048)
h_m=SVARS(40049:50048)
write(*,*) h_m(1:10)
h1_s1=h_s1
!h1_s2=h_s2
!h1_c1=h_c1
!h1_c2=h_c2
!h1_m=h_m
!hy_s1=h_s1
!hy_s2=h_s2
!hy_c1=h_c1
!hy_c2=h_c2
!hy_m=h_m