Loss of precision in SaveScalars.F90 [FIXED]

Clearly defined bug reports and their fixes
Post Reply
Victor
Posts: 4
Joined: 18 Jun 2020, 18:47
Antispam: Yes

Loss of precision in SaveScalars.F90 [FIXED]

Post 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?
raback
Site Admin
Posts: 3889
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Loss of precision in SaveScalars.F90

Post by raback »

Seems unintentional. FIxed in devel. Thanx for reporting. -Peter
Post Reply