Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
27303 Discussions

A small bug of Intel Fortran's IDE for automatic code alignment

Zhanghong_T_
Novice
172 Views

Dear all,

As you know, Intel Fortran's IDE is very powerful in code alignment,  by press Ctrl+K+D, we can align the code very beautifully. However, it can't recognize pre-processor definitions in code.  For example, for the following code, the aligned result is as follows:

#ifdef oldcheck2 ! old method, long time
do i=1,nwrs
  do j=1,nrt0
#else
    do j=1,nrt0
      do i=1,nwrs
#endif

However, I wish the result to be the follows:

#ifdef oldcheck2 ! old method, long time
do i=1,nwrs
  do j=1,nrt0
#else
do j=1,nrt0
  do i=1,nwrs
#endif

Thanks,

Tang Laoya

 

0 Kudos
0 Replies
Reply