Type KIND of PARAMETER lost when used as TRANSFER MOLD

Type KIND of PARAMETER lost when used as TRANSFER MOLD

The following two statements does *not* produce the same result:

PRINT *, KIND( TRANSFER(real_num,equal_size_int) )
PRINT *, KIND( equal_size_int )

where equal_size_int is a PARAMETER accessed through a MODULE.

This must be an error...

4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Did you perhaps mean to write:


? What you have is just an integer whose value is equal_size_int with default kind.

Steve - Intel Developer Support

equal_size_int is the name of the integer parameter, it can have any value and is not intended as a kind parameter (which would have to have the values 1, 2, 4 or 8 in IFORT)

But regardless of that, shouldn't the two statements produce the same result?

Please show me a complete source that demonstrates the problem. I can't see it from those two lines.

Steve - Intel Developer Support

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi