Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 19

Passing strings, C and Fortran 11.x vs 12.x differences?

$
0
0
English

  Behaviour of passing strings between C and Fortran is changing?
  Following code gives different results between 11.x and
  12.x versions if icc/ifort.  C main calling Fortran sub passing in strings/ints.

  Maybe 11.x was letting something slide that wasn't legit.
  I know there are C bindings now in Fortran but this is
  old code that I've stripped down to basics
  Would character(len=1)  array(N) be the answer?

  ifort/icc 11.1 20100806  has no problem with this.
  ifort/icc 12.1.5 20120612 gives in mainfort:


Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>