CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Advancing output to new page

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2018, 04:07
Default Advancing output to new page
  #1
New Member
 
Floyd Pfeffer
Join Date: Nov 2018
Location: Portugal
Posts: 3
Rep Power: 7
Floyd_Pfeffer is on a distinguished road
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
Floyd_Pfeffer is offline   Reply With Quote

Old   November 9, 2018, 15:04
Default
  #2
Member
 
james nathman
Join Date: May 2011
Posts: 62
Rep Power: 14
blackjack is on a distinguished road
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.
blackjack is offline   Reply With Quote

Old   November 10, 2018, 03:10
Default
  #3
Member
 
A. S.
Join Date: Apr 2009
Location: Raipur (INDIA)
Posts: 54
Rep Power: 17
apoorv is on a distinguished road
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
apoorv is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:59.