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

How to save preprossing results to .f files

cu238
Novice
428 Views

Simple question.

I have a IFX or IFORT project with 50 .f source files. These source files includes a lot of preprossing derivatives such as

#IF DEFINED LBCEL_RAD || DEFINED LBCUV_RAD
      INTEGER NTEMP
      REAL(KIND=8), PARAMETER :: EPS = 1.0E-20
      REAL(KIND=8) :: CE, CX, CFF, DUDE, DUDT, DUDX
#ENDIF

I want to prepross these .f files and save them to anther dirctory.

Is it easy to achieve? I have ifort compiler under both windows and linux system.

Thanks!

0 Kudos
1 Solution
jimdempseyatthecove
Honored Contributor III
400 Views

Try:

fpp /P /noC infile.f \somewhere\outfile.f

 

You can do this from a script file (e.g. batch on windows, bash on Linux)

 

Jim Dempsey

View solution in original post

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
401 Views

Try:

fpp /P /noC infile.f \somewhere\outfile.f

 

You can do this from a script file (e.g. batch on windows, bash on Linux)

 

Jim Dempsey

0 Kudos
cu238
Novice
345 Views
0 Kudos
Reply