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 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Did you perhaps mean to write:

TRANSFER(real_num,0_equal_size_int)

? 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

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui