1
1
KAWASHIMA Takahiro fc311a6ca5 config: Clean Fortran type check code
If the default value of `ofc_type_size` is `$ac_cv_sizeof_int`,
`OMPI_SIZEOF_FORTRAN_*` of all unavailable types become `sizeof(int)`.
This leads `OMPI_SIZEOF_FORTRAN_REAL2 == OMPI_SIZEOF_FORTRAN_REAL`
to become true unintentionally and `OMPI_DATATYPE_MPI_REAL2` has a
wrong value in `ompi/datatype/ompi_datatype_internal.h`. This is not
an actual bug because datatypes for unavailable types are not used.
However it is confusing. I looked the source tree and the history but
could find any basis of `$ac_cv_sizeof_int`.

If we don't use `implicit none` in `OMPI_FORTRAN_GET_KIND_VALUE`, and
if a Fortran compiler does not support `ISO_C_BINDING` completely,
a random value is set in `value` and the fallback route is not used.
It is not our intention.

Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
2018-12-25 17:17:57 +09:00
..
2014-08-25 04:41:56 +00:00
2015-04-27 06:50:40 -07:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00
2018-04-09 11:45:58 -04:00