jasonlarkin / p3dfft

Automatically exported from code.google.com/p/p3dfft
GNU General Public License v3.0
0 stars 0 forks source link

using 'mytype' in the code not always reliable #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had this problem when testing an application with nagfor compiler. Using 
'mytype' to compute memory addresses / displacements (as done is Setup.F90) is 
not reliable as the numerical value of 'mytype' can be compiler dependent (for 
NAG compiler double precision is not kind 8). More portable alternatives are 
MPI_SIZEOF routine or Fortran inquire function.

Original issue reported on code.google.com by mace...@gmail.com on 7 Jul 2011 at 2:37

GoogleCodeExporter commented 9 years ago
In principle you are right. We may work on this in future versions. However to 
date this has worked with all of the compilers we have tested the package with. 

Original comment by dmitry...@gmail.com on 16 Mar 2015 at 11:58

GoogleCodeExporter commented 9 years ago

Original comment by dmitry...@gmail.com on 17 Mar 2015 at 12:03