C++ vs Fortran (Part 2)

Here is some C++ code (from actual NASA software):

  aTilde[ 0] = aTilde[ 1] = aTilde[ 2] =
  aTilde[ 3] = aTilde[ 4] = aTilde[ 5] =
  aTilde[ 6] = aTilde[ 7] = aTilde[ 8] =
  aTilde[ 9] = aTilde[10] = aTilde[11] =
  aTilde[12] = aTilde[13] = aTilde[14] =
  aTilde[15] = aTilde[16] = aTilde[17] =
  aTilde[18] = aTilde[19] = aTilde[20] =
  aTilde[21] = aTilde[22] = aTilde[23] =
  aTilde[24] = aTilde[25] = aTilde[26] =
  aTilde[27] = aTilde[28] = aTilde[29] =
  aTilde[30] = aTilde[31] = aTilde[32] =
  aTilde[33] = aTilde[34] = aTilde[35] = 0.0;

Here is the same code translated to Fortran:

  aTilde = 0.0

😀

References

Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*