Page 1 of 1

zero**zero in ElementDescription.F90 [FIXED]

Posted: 28 Sep 2020, 08:50
by Victor
Running several test cases, one of them is AdvDiffFluxes, at ElementDescription.F90 lines 789 and 826

s = s + Coeff(i) * u**p(i)

both u and p(i) are zero, thus trying to compute zero**zero.

Easy to check by putting

if(u==0.and.p(i)==0) call Fatal('ElementDescription','Attempted computation of 0**0')

just before.

Can anybody reproduce the bug?
What is the fix?

Re: zero**zero in ElementDescription.F90

Posted: 28 Sep 2020, 13:07
by mika
The devel version has now been updated to fix this.

Thanks for reporting,
Mika

Re: zero**zero in ElementDescription.F90 [FIXED]

Posted: 09 Oct 2020, 17:32
by Victor
There is at least another place in ElementDescription.F90 computing 0**0 at line 1008.
But by now I know how to fix it.
However running AdvDiffFluxes I run into another bug, that I am describing in another issue
concerning referencing a pointer not allocated.