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

FORMAT

brunocalado
Beginner
591 Views
[cpp]10 FORMAT(1000(L1))[/cpp]

I need to create a where I can change the 1000 for a Integer variable, which I can modify during the execution. How can I do this?

0 Kudos
1 Reply
TimP
Honored Contributor III
591 Views
Quoting - brunocalado
[cpp]10 FORMAT(1000(L1))[/cpp]

I need to create a where I can change the 1000 for a Integer variable, which I can modify during the execution. How can I do this?

This is a standard FAQ thing.
1) Under standard Fortran 77, you can use internal write to create a format string which does what you want.
2) ifort supports the DEC vms Fortran "VFE" extension
3) Fortran 2008 addresses this topic

You are chronically short on efforts to look up answers to your questions so as to refine them to something which could be discussed usefully.
0 Kudos
Reply