|
[Sponsors] |
November 7, 2018, 04:07 |
Advancing output to new page
|
#1 |
New Member
Floyd Pfeffer
Join Date: Nov 2018
Location: Portugal
Posts: 3
Rep Power: 7 |
I am writing code in Fortran 95. I write data to files using the WRITE statement with a format. Most files fit on one page but I just wrote one that is several pages long. I want to insert what would be called a "page break" in WORD. So that the output skips to the top of the next page before writing.
I have read that the descriptor 1 is to be used to advance to next page but I can't seem to get the code right. Anyone familar with this? Floyd |
|
November 9, 2018, 15:04 |
|
#2 |
Member
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14 |
Since you're not familiar with early fortran carriage control (I've used it for 40 years), I would suggest not learning it.
Instead, send a form-feed to the output. Word will correctly interpret this. Example: character*1 FF FF=CHAR(12) write(6,'(A)') 'first line on first page' write(6,'(A)') FF//'first line on second page' stop end compile and execute this, then open output with Word. |
|
November 10, 2018, 03:10 |
|
#3 |
Member
A. S.
Join Date: Apr 2009
Location: Raipur (INDIA)
Posts: 54
Rep Power: 17 |
This discussion in stackoverflow might be helpful.
The method was made obsolete in f2008 if using gfortran you can use -std=g95 and use the old feature https://stackoverflow.com/questions/...-fortran-90-95 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 12:08 |
Polyflow- Parameterize Torque and fowrate output | jy tey | ANSYS | 0 | December 20, 2016 22:57 |
[ANSYS Meshing] ICEM output precision | papis | ANSYS Meshing & Geometry | 4 | July 9, 2013 09:54 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |
[Other] Output Format of MetaMesh | t42 | OpenFOAM Meshing & Mesh Conversion | 0 | August 3, 2007 04:28 |