📄 node45.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>5.2 Guidelines for software development</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="5.2 Guidelines for software development"><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=tex2html722 HREF="node44.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html728 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html730 HREF="node46.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html732 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide1-18/node45.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide1-14/node45.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide1-10/node45.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html731 HREF="node46.html">5.3 Description of commands</A><B>Up: </B> <A NAME=tex2html729 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html723 HREF="node44.html">5.1 Installation of the commands</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05630000000000000000>5.2 Guidelines for software development</A></H1><P><P><P>Two situations are presented below along with some examples:<UL><LI> development of subroutines in a personal directory;<LI> up-dating the MODULEF source libraries (the objects or executables).</UL><P><P><P><H2><A NAME=SECTION05631000000000000000>5.2.1 Development in a personal directory</A></H2><P><P><P>The following example illustrates the manner in which a MODULEF program is modified to conform to the needs of the user.<P>First, we need to enter the following command to copy file <b> imagxx.f</b> into the current directory to edit it:<P><blockquote> <b> B$ bb e imagxx</b> </blockquote><P>To test the compilation and linking commands, we add a Fortran WRITE statement at the beginning of the program,for example:<blockquote> WRITE(<b>*</b>,<b>*</b>)'HELLO THERE!' </blockquote>and exit from the editor.<P>The edited file is compiled by entering the command:<blockquote> <b> B$ co1 imagxx</b> </blockquote><P>To link this program with the rest of the MODULEF library, we enter the command:<blockquote> <b> B$ elm imagxx</b> <BR><P>Or, if we would like all the object files in the current directory to be linked as well, the following command is used: <BR><P><b> B$ elm <b>*</b>.o -o imagxx</b></blockquote><P>Program <b> imagxx</b>, is executed by typing the name of the executable file:<blockquote> <b> B$ imagxx</b> </blockquote><P>If the edited version of program <b> imagxx</b> was compiled and linked correctly, it should start by printing: HELLO THERE!.<P><P><P><H2><A NAME=SECTION05632000000000000000>5.2.2 Up-dating the MODULEF library</A></H2><P><P><P>Let us suppose that we would like to integrate program <b> imagxx</b>, residing inits own directory, intothe stable version of MODULEF.If it is the first time a program is integrated, we must specify the following arguments<P><UL><LI> the library name: in this example <b> ppal</b> <LI> the member name: in this example <b> imagxx</b> </UL><P>The first argument is not obligatory, and is specified only if a member with the same name is not already present in the library.<P>In practice, the compilation is performed by typing:<blockquote> <b> B$ bb so ppal imagxx</b><P>or, if a version of <b> imagxx</b> is already present in library <b> ppal</b>, type:<P><b> B$ bb so imagxx</b></blockquote><P>To create the new executable <b> imagxx</b> in MODULEF, we enter:<blockquote> <b> B$ bb elm imagxx</b></blockquote><P>In general, the few basic commands which we have just encountered usually suffice.It is however useful to know all the commands available. These commands are described in thenext section.<P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html722 HREF="node44.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html728 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html730 HREF="node46.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html732 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide1-18/node45.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide1-14/node45.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide1-10/node45.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html731 HREF="node46.html">5.3 Description of commands</A><B>Up: </B> <A NAME=tex2html729 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html723 HREF="node44.html">5.1 Installation of the commands</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 + -