ntwin = [0] cause problems
math_expand now works for sum(how) == 0
This commit is contained in:
parent
74956de9bd
commit
235b2fe3c8
|
@ -386,6 +386,9 @@ pure function math_expand(what,how)
|
|||
real(pReal), dimension(sum(how)) :: math_expand
|
||||
integer(pInt) :: i
|
||||
|
||||
if (sum(how) == 0_pInt) &
|
||||
return
|
||||
|
||||
do i = 1_pInt, size(how)
|
||||
math_expand(sum(how(1:i-1))+1:sum(how(1:i))) = what(mod(i-1_pInt,size(what))+1_pInt)
|
||||
enddo
|
||||
|
|
Loading…
Reference in New Issue