[Fortran] 纯文本查看 复制代码 module EmiblockData
use EmHMatrixData
implicit none
type Subblocks
integer*4 :: row
integer*4 :: coL
end type Subblocks
type blocks
type(Subblocks), allocatable :: iSubblocks(:)
end type blocks
type(blocks), allocatable :: iblocks(:)
end EmiblockData
[Fortran] 纯文本查看 复制代码 subroutine Buildhblock(na, nb, fa, fb, Nunadm, Nadmit, sbmax)
!为了将远近区块的信息赋值到远近块中
use EmiblockData, iboxNear => iboxNears; iboxFarg => iboxFargs; iblock => iblocks; isubblock => isubblocks
! use EmiNearsData
implicit none
type(near) :: iboxNear
type(near) :: iSubblock
type(Smatrix) :: iboxFarg
end subroutine
十分感谢您的解答!
但我这么做运行时,它报了错,一是implicit none不可用。二是仍报错Symbol 'iboxnears' at (1) conflicts with symbol from module 'emiblockdata', use-associated |。三是type(near) :: iboxNear; type(near) :: iSubblock;type(Smatrix) :: iboxFarg这样的声明有误。
这样的报错是我哪里不对呢? |