[Mesa-users] About the warning issue during installing MESA15140
Rob Farmer
r.j.farmer at uva.nl
Mon Feb 1 09:23:54 UTC 2021
Hi
Yes they can be ignored:
find . -name pre_conditioners.f90
./mtx/private/pre_conditioners.f90
Lines 80-82
if (j > 1) then
pre_conditioner(k,j) = pre_conditioner(k,j) +
abs(ublk(k2,k,j-1) / right_pre_conditioner(k2,j-1))
end if
Note the if block that means j must be at least 2 and thus j-1 >=1 keeping
the index in bounds.
Rob
On Mon, 1 Feb 2021 at 10:13, Hongwei Ge via Mesa-users <
mesa-users at lists.mesastar.org> wrote:
> Hi MESA developers and users:
>
> As a beginner, I am recently reading through MESA15140.
> I just found some warning message in my basic.log file, such as:
>
> ../private/pre_conditioners.f90:81:81:
>
> 71 | do j=1,nblocks
> | 2
>
> ......
> 81 | pre_conditioner(k,j) = pre_conditioner(k,j) +
> abs(ublk(k2,k,j-1) / right_pre_conditioner(k2,j-1))
> |
> 1
> Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at
> (2) [-Wdo-subscript]--
>
> There are about 6 places for such kind of warning about the Array bounds.
>
> The code can run smoothly actually, but should we just neglect these
> warnings or should we modify the array?
>
> With best regards,
>
> Hongwei
>
>
>
> Yunnan Observatories, Chinese Academy of Sciences,
> NO. 396, YangFangWang, Guandu District,
> Kunming, 650216, China
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20210201/443665bd/attachment.htm>
More information about the Mesa-users
mailing list