⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node37.html

📁 htmdoc for html coding
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>4.3 Selecting the graphic peripherals</TITLE><LINK REL=STYLESHEET TYPE="text/css"	HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="4.3 Selecting the graphic peripherals"><meta name="keywords" value="Guide1"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html633 HREF="node36.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html639 HREF="node34.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html641 HREF="node38.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html643 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide1-18/node37.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide1-14/node37.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide1-10/node37.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html642 HREF="node38.html">4.4 Compiling and linking</A><B>Up: </B> <A NAME=tex2html640 HREF="node34.html">4 Generalities</A><B> Prev: </B> <A NAME=tex2html634 HREF="node36.html">4.2 The non-portable subroutines</A><B><A HREF="node2.html"	>Contents</A></B><HR SIZE=3 WIDTH="75&#37;"><H1><A NAME=SECTION05530000000000000000>4.3 Selecting the graphic peripherals</A></H1>  <A NAME=secsel_graph>&#160;</A><P><P><P><H2><A NAME=SECTION05531000000000000000>4.3.1 Generalities:  Fortran 3D   MODULEF interface</A></H2><P><P><P>The MODULEF graphical output is performed with the help of the FORTRAN 3D graphics software.<P>The link between FORTRAN 3D and the input and output terminals is realized  bythe FORTRAN subroutines <b> itrctg</b> and <b> perfgn</b>. These two subroutinesthus serve as the interface between FORTRAN 3D and your basic graphics software.<P>Subroutines <b> itrctg</b> and <b> perfgn</b>  contain the list of graphic peripherals available,i.e. those you may select for your graphical output.The choice of peripherals is left to the installer. In fact, it is strongly linkedto the installation site: host machine(Sun, HP/Apollo, VAX-VMS ...), graphics terminals(tektronix, laser printer ...), ...<P>As some graphic peripherals can use system functions, it is necessary to select the system libraries to be included when linking, as a function of the graphic peripherals chosen. Similarly, a bad choice of graphic peripherals could result in incorrect linking (unsatisfied references).<P>We will now see how the source files of subroutines <b> itrctg</b>  and <b> perfgn</b> are created.<P><P><P><H2><A NAME=SECTION05532000000000000000>4.3.2 Creating FORTRAN subroutines itrctg and perfgn</A></H2><P><P><P>If you dispose of a machine equipped with a C compiler, these two sub-programs can be generated automatically; this process is explained in this section.<P>On the other hand, if your machine is not equipped with a C compiler, you would have tocreate these files manually; in this case you can consult files <b> itrctg</b> and <b> perfgn</b>  contained in directory <b> p_l<i> machine name</i></b>, as well as brochure <BR>[4][<A HREF="node65.html#mod_96"><A NAME=tex2html41 HREF="../Guide6/welcome.html">MODULEF User Guide - 6</A></A>] (chapter 9 and 10).<P>In the rest of this section all the file names corresponding to FORTRAN programs will have <b> .for</b> as suffix.<P>The files used to create  <b> itrctg</b> and <b> perfgn</b> are called:<b> periphin.in</b> and <b> periph.c</b>.The first contains the list of all the graphic peripherals available in MODULEF. The second  is a C programwhich is used to generate the FORTRAN subroutines  <b> itrctg</b> and <b> perfgn</b>.<P>The steps to follow to generate these two FORTRAN subroutines are the following:<P><OL><LI> Select the graphic peripherals:<P>We need to edit file <b> periphin.in</b> and give the list of peripherals  which we wish to use in the appropriate line.<P>The list and role of all the graphic peripheralsavailable in MODULEF is given at the top of file <b> periphin.in</b>. It suffices to choose between the peripherals cited.<P><LI> Compile and link <b> periph.c</b> (assume hereafter that the name of the corresponding executable program is <b> periph</b>).<P><LI> Create  subroutines <b> itrctg</b> and <b> perfgn</b>:<P>File <b> periphin.in</b> must be input via the  standard input device of <b> periph</b>, the options allowing usto choose the subroutines FORTRAN we wish to create.The executable, <b> periph</b>, redirects the output to the standard output device(the screen).It can therefore be interesting to redirect the standard output to a file during execution.<P>An example of use:<UL><LI> To create file <b> itrctg.for</b>:<P>input(<b> periphin.in</b>) <b> periph -itrctg</b> output(<b> itrctg.for</b>) <LI> To  create file <b> perfgn.for</b>:<P>input(<b> periphin.in</b>) <b> periph -perfgn</b> output(<b> perfgn.for</b>) </UL><P><b> Remark:</b> input and output indicate respectively the input and output files.<P><LI> Store the resulting files:<P>The FORTRAN subroutines can be stored in directory<b> p_l<i> machine name</i></b>. It is also necessary torecopy the include file <b> data_f3d.ins</b> into this directory.<P>It remains  to compile this library (<b> p_l<i> machine name</i></b>).<P></OL><P>For  multi-machine tapes,  files<b> periphin.in</b> and <b> periph.c</b> are stored in library<b> COMMANDE</b>.<P>If you received  a  VAX/VMS tape, these  two file are stored in directory C.<P>If  more details regarding the FORTRAN 3D softwareand interface programs are desired, consult brochure[<A HREF="node65.html#mod_96"><A NAME=tex2html41 HREF="../Guide6/welcome.html">MODULEF User Guide - 6</A></A>].<P>The manner in which PostScript printouts and hard-copies are generated is described below.<P><P><P><H2><A NAME=SECTION05533000000000000000> Command file prf_f3d</A></H2>  <A NAME=prf_f3d>&#160;</A><P><P><P>This command file is executed using FORTRAN 3D, and is  used to generate a plot.<P>Command <b> prf_f3d</b> needs to be adapted on site once the graphic peripherals, such asthe plotter or postscript printers or X11,  have been selected  and a hard-copy is desired.This command is called with five arguments:<OL><LI> Print or file type.<P>This argument can have the following values:<UL><LI> <b> ps</b>: black and white laser<LI> <b> ps_color</b>: color laser (paper output)<LI> <b> ps_colors</b>: color laser (slide output)<LI> <b> hardcopyX11</b>: black and white laser;<P>The values which follow are never used except if the Apollo graphic peripheralsare chosen.<LI> <b> bmf_bw</b>: black and white laser<LI> <b> bmf_color</b>: tektronix 4693 (color hard-copy only)<LI> g<b> mf</b>: black and white laser  (plot)  (hard-copy only)</UL><P><LI> copy option <b> -nc</b> or <b> -c</b><LI> delete option <b> -d</b> or <b> -nd</b><LI> file name or identifier of X_window if <b> hardcopyX11</b><LI> not used</OL><P>The command generating the output on the plotter or printer must be specified following the argument values indicated above.<P>This command file is given in the shell script form, and depending on the type of tape received (multi-machine or backup VAX/VMS) is found in directory<b> COMMANDE</b> or <b> C</b>, respectively. For further details, please consult Appendix <A HREF="node63.html#annprf_f3d">G</A>.<P><P><P><HR SIZE=3 WIDTH="75&#37;"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html633 HREF="node36.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html639 HREF="node34.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html641 HREF="node38.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html643 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide1-18/node37.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide1-14/node37.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide1-10/node37.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html642 HREF="node38.html">4.4 Compiling and linking</A><B>Up: </B> <A NAME=tex2html640 HREF="node34.html">4 Generalities</A><B> Prev: </B> <A NAME=tex2html634 HREF="node36.html">4.2 The non-portable subroutines</A><B><A HREF="node2.html"	>Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -