如何用fortran给N*N的二维数组赋值

2024-12-03 17:09:48
推荐回答(2个)
回答1:

real(kind=long_real),dimension(5,3),parameter :: Fg_consume_half_food = &
& (/0.1,0.1,0.1,0.1,0.1, &
& 0.1,0.1,0.1,0.1,0.1, &
& 0.1,0.1,0.1,0.1,0.1 /)

当成一维数组初始化

回答2:

侧谔谔