hodgesse1 / rfortran

Automatically exported from code.google.com/p/rfortran
0 stars 0 forks source link

SafeArrayGetElement() in Rget_1d, Rget_2d, Rget_3d #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the Rget_1d, Rget_2d, Rget_3d suite of routines (for both allocatable
and fixed arrays) there is an issue if you use the SafeArrayGetElement()
function directly on a Fortran array. Issues occur when you try and
deallocate the array - it doesn't like it. 

Solution/Implication: A workaround is provided in these routines. No effect
to the user, a local dummy variable is used to copy the value into the
array. See: Rget_1d_r4() specifically the use of the 'dummy' variable with
the loc() function instead of loc(a(i+1))

Original issue reported on code.google.com by mleon...@civeng.adelaide.edu.au on 5 Jun 2009 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by mleon...@civeng.adelaide.edu.au on 9 Jun 2009 at 6:53

GoogleCodeExporter commented 8 years ago

Original comment by mleon...@civeng.adelaide.edu.au on 9 Jun 2009 at 7:12

GoogleCodeExporter commented 8 years ago

Original comment by mleon...@civeng.adelaide.edu.au on 9 Jun 2009 at 7:15