Page 1 of 1

Loss of precision in SaveScalars.F90 [FIXED]

Posted: 26 Sep 2020, 12:16
by Victor
On elmerfem 8.4, running test case mgdyn2D_compute_complex_power at SaveScalars.F90:1565

TmpValues(1:n) = Values(1:n)

TmpValues is REAL while Values is DOUBLE PRECISION.
This may cause a loss of precision.
Shouldn't be TmpValues declared DOUBLE PRECISION as well?

Re: Loss of precision in SaveScalars.F90

Posted: 26 Sep 2020, 13:11
by raback
Seems unintentional. FIxed in devel. Thanx for reporting. -Peter