Changeset 40 for palm/trunk/DOC/app
- Timestamp:
- Mar 2, 2007 6:32:25 AM (18 years ago)
- Location:
- palm/trunk/DOC/app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/DOC/app/chapter_3.5.5.html
r5 r40 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 4 <meta http-equiv="CONTENT-TYPE" 5 content="text/html; charset=windows-1252"> 6 <title>PALM chapter 3.5.5</title> 7 <meta name="GENERATOR" content="StarOffice 7 (Win32)"> 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"> 4 5 <title>PALM chapter 3.5.5</title><meta name="GENERATOR" content="StarOffice 7 (Win32)"> 8 6 <meta name="AUTHOR" content="Siegfried Raasch"> 9 7 <meta name="CREATED" content="20040802;14050943"> … … 14 12 @page { size: 21cm 29.7cm } 15 13 --> 16 </style> 17 </head> 14 </style></head> 15 18 16 <body dir="ltr" lang="en-US"> 19 17 <h3 style="line-height: 100%;"><font size="4">3.5.5 Compiling and 20 18 linking user-defined code<br> 21 19 </font></h3> 22 <p style="line-height: 100%;">The compiling and linking of 23 user-defined code into a model run is done via the shellscript 24 <a 25 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html">mrun</a>. 26 The simplest (however not the most comfortable) way is by giving the 27 filenames of the files containing the user-defined code as an argument 28 of the shellscript option <a 29 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#Opt-s">-s</a>. 30 If the user-defined subroutines are located e.g. on the two files <span 31 style="font-family: monospace;">user1.f90</span> and <span 32 style="font-family: monospace;">user2.f90</span>, then 33 the <b>mrun</b> call has to be:<br> 34 </p> 35 <p style="line-height: 100%; margin-left: 40px;"><span 36 style="font-family: monospace;">mrun... -s "user1.f90 user2.f90" ... .</span><br> 37 </p> 38 <p style="line-height: 100%;">For this call the user has to be in the 39 working directory <tt><tt><font style="font-size: 10pt;" size="2">~/palm/current_version/SOURCE</font></tt></tt>, 40 because the file with the source code of the main program is located 41 here. The main program is compiled with 42 each model run (without the appropriate filename given as argument for 43 the 44 option -s). </p> 45 <p style="line-height: 100%;">The call </p> 46 <ul> 47 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 48 style="font-size: 10pt;" size="2">mrun 49 -s TEST 50 ,</font></pre> 51 </ul> 52 <p style="line-height: 100%;">is simpler and causes the compilation 53 of all files with suffix <tt><font style="font-size: 10pt;" size="2">.f90</font></tt> 54 located in the working 55 directory <font face="Thorndale, serif">a</font>nd having 56 user write permissions. Unchanged sources of the default model 57 have read permission only and therefore are not compiled with that 58 call. </p> 59 <p style="line-height: 100%;">Typically, users may have different 60 versions 61 of user-defined code which are to be used for different model runs. 62 According to the method just described for starting a certain model 63 run, 64 the associated user-defined code would have to be copied into the 65 working directory and code for other runs may have to be 66 removed (otherwise theses files would be compiled as well and the 67 routines like <tt><font style="font-size: 10pt;" size="2">user_actions</font></tt> 68 would occur twice or several times which would lead to compiling 69 errors). This procedure is quite tedious and can lead to errors if 70 different 71 model runs with restarts are to be carried out at the same time. It is 72 better 73 to store the different versions of user-defined code in different 74 subdirectories 75 using the base file name of the respective model run as subdirectory 76 name. In this case a line like </p> 77 <ul> 78 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 79 style="font-size: 10pt;" size="2">% </font><a 80 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#add_source_path"><font 81 style="font-size: 10pt;" size="2">add_source_path</font></a><font 82 style="font-size: 10pt;" size="2"> $HOME/palm/current_version/SOURCE/USER_CODE/$fname</font></pre> 83 </ul> 84 <p style="line-height: 100%;">has to be added to the <b>mrun</b> 85 configuration file. If you call <b>mrun</b> now with </p> 86 <ul> 87 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 88 style="font-size: 10pt;" size="2">mrun -d run1 -s user1.f90 user2.f90 89 ,</font></pre> 90 </ul> 91 <p style="line-height: 100%;">the additional entry in the configuration 92 file 93 causes that the files given as argument of the option -s are also 94 looked 95 for in the directory <tt><font style="font-size: 10pt;" size="2">$HOME/palm/current_version/SOURCE/USER_CODE/run1</font></tt><font 96 style="font-size: 10pt;" size="2">,</font> 97 in case they are not found in the current working directory. The 98 specification of <tt><font style="font-size: 10pt;" size="2">-s</font><font 99 size="2"> 100 TEST</font></tt> in the <b>mrun</b> call now causes compilation of all 101 files with suffix <tt><font style="font-size: 10pt;" size="2">.f90</font></tt> 102 and user write permissions which are located in the working 103 directory or in the directory indicated by <span 104 style="font-family: monospace;">add_source_path</span>. In 105 this case no files with the same name are allowed to be in these two 106 directories. </p> 107 <p style="line-height: 100%;">Further detailed information for linking 108 user-defined code with <b>mrun</b> can be found in <a 109 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#chapter7">chapter 110 7</a> of the <b>mrun </b>documentation (only in German). </p> 111 <p style="line-height: 100%;">While programming user-defined code, 20 <p style="line-height: 100%;">Users can add their own (modified) user-interface to a PALM-run by carrying out the following steps:</p><ol><li>Copy the default (empty) user-interface (file<span style="font-family: Courier New,Courier,monospace;"> user_interface.f90</span>) to a directory of your choice, e.g.:<br><br><span style="font-family: Courier New,Courier,monospace;"> cd ~/palm/current_version</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> mkdir -p USER_CODE/example</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> cp trunk/SOURCE/user_interface.f90 USER_CODE/example/user_example.f90</span><br></li><li>Set an additional path in the configuration file<span style="font-family: Courier New,Courier,monospace;"> .mrun.config </span>to allow <span style="font-weight: bold;">mrun </span>to find and include this file:<br><br><span style="font-family: Courier New,Courier,monospace;"> %add_source_path $base_directory/USER_CODE/$fname</span><br><br>The default configuration file (<span style="font-family: Courier New,Courier,monospace;">trunk/SCRIPTS/.mrun.config.default</span>) already includes this setting.</li><li>Modify the interface routines according to your needs.</li><li>Start a PALM run by executing<br><br><span style="font-family: Courier New,Courier,monospace;"> mrun -d example ...</span><br><br>The file<span style="font-family: Courier New,Courier,monospace;"> user_example.f90 </span>will be automatically compiled within the job and will replace PALM‘s default user-interface.<br></li></ol>The above method with including<span style="font-family: Courier New,Courier,monospace;"> $fname </span>in 21 the additional source path allows to use different user-interfaces for 22 different runs at the same time. Just store the respective 23 interface-files in subdirectories<span style="font-family: Courier New,Courier,monospace;"> USER_CODE/abcd</span>,<span style="font-family: Courier New,Courier,monospace;"> USER_CODE/cdef</span>, etc. and start <span style="font-weight: bold;">mrun</span> with option “<span style="font-family: Courier New,Courier,monospace;">-d abcd</span>“, “<span style="font-family: Courier New,Courier,monospace;">-d cdef</span>“, etc.<br><br><span style="font-weight: bold;">The modified user-interface file cannot be pre-compiled by using mbuild!</span><br><br>While programming user-defined code, 112 24 errors are frequently made. Possible ways of error 113 tracing are described in the next chapter. <br> 25 tracing are described in the next chapter. <br><p style="line-height: 100%;"> 114 26 </p> 115 27 <hr> 116 28 <p style="line-height: 100%;"><br> 117 <font color="#000080"><font color="#000080"><a href="chapter_3.5.3.html"><font 118 color="#000080"><img src="left.gif" name="Grafik1" align="bottom" 119 border="2" height="32" width="32"></font></a><a href="index.html"><font 120 color="#000080"><img src="up.gif" name="Grafik2" align="bottom" 121 border="2" height="32" width="32"></font></a><a href="chapter_3.6.html"><font 122 color="#000080"><img src="right.gif" name="Grafik3" align="bottom" 123 border="2" height="32" width="32"></font></a></font></font></p> 29 <font color="#000080"><font color="#000080"><a href="chapter_3.5.3.html"><font color="#000080"><img src="left.gif" name="Grafik1" align="bottom" border="2" height="32" width="32"></font></a><a href="index.html"><font color="#000080"><img src="up.gif" name="Grafik2" align="bottom" border="2" height="32" width="32"></font></a><a href="chapter_3.6.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> 124 30 <p style="line-height: 100%;"><i>Last change: </i> 15/04/05 (SR)</p> 125 </body> 126 </html> 31 </body></html> -
palm/trunk/DOC/app/chapter_3.6.html
r5 r40 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 4 <meta http-equiv="CONTENT-TYPE" 5 content="text/html; charset=windows-1252"> 6 <title>PALM chapter 3.6</title> 7 <meta name="GENERATOR" content="StarOffice 7 (Win32)"> 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"> 4 5 <title>PALM chapter 3.6</title><meta name="GENERATOR" content="StarOffice 7 (Win32)"> 8 6 <meta name="AUTHOR" content="Siegfried Raasch"> 9 7 <meta name="CREATED" content="20040809;10583400"> … … 14 12 @page { size: 21cm 29.7cm } 15 13 --> 16 </style> 17 </head> 14 </style></head> 15 18 16 <body dir="ltr" lang="en-US"> 19 17 <h3 style="line-height: 100%;">3.6 Interactive mode and debugging</h3> … … 23 21 this computer the subroutines of the model must have 24 22 been precompiled (see <a href="chapter_5.0.html">chapter 25 5.0</a>). Furthermore, the working directory 26 (<tt><font style="font-size: 10pt;" size="2">~/palm/current_version/SOURCE</font></tt>) 27 must contain all default source code files of the model (<span 28 style="font-family: monospace;">*.f90</span>), the <b>mrun</b> 29 configuration file (<span style="font-family: monospace;">.mrun.config</span>) 30 the Makefile (<span style="font-family: monospace;">Makefile</span>) 31 and the files which contain the user-defined code (the default 32 user-interface file <span style="font-family: monospace;">user_interface.f90</span> 33 have to be removed from the directory). All output-files possibly 23 5.0</a>). Files containing user-defined code must be stored in the directory given by the variable<span style="font-family: Courier New,Courier,monospace;"> %add_source_path </span>in the mrun-configuration file<span style="font-family: Courier New,Courier,monospace;"> .mrun.config</span>.<span style="font-family: monospace;"></span> All output-files possibly 34 24 created by the model and requested by the user to be kept after the run 35 25 are copied to 36 26 directories on the local host corresponding to the specifications 37 in the configuration file (in this case the file attribute <a 38 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#tr">tr</a> 27 in the configuration file (in this case the file attribute <a href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#tr">tr</a> 39 28 does not cause transfer to another computer). </p> 40 29 <p style="line-height: 100%;">Since model runs usually require large 41 amounts of CPU time, interactive runs are usually notfeasible, since30 amounts of CPU time, interactive runs may not be feasible, since 42 31 in interactive mode CPU time 43 32 is strongly limited on many hosts and runs will be aborted … … 54 43 the model, including the user-defined code, must be compiled 55 44 with special debug compiler options. For this purpose, at least the 56 following three lines must be included in the <span 57 style="font-weight: bold;">mrun </span>configuration file:<br> 45 following three lines must be included in the <span style="font-weight: bold;">mrun </span>configuration file:<br> 58 46 </p> 59 <p style="line-height: 100%;"><span style="font-family: monospace;">%compiler_name 47 <p style="line-height: 100%;"><span style="font-family: Courier New,Courier,monospace;">%compiler_name 60 48 mpxlf95_r 61 ibmh parallel debug</span><br style="font-family: monospace;">62 <span style="font-family: monospace;">%fopts 63 -g:-C:-qinitauto=FF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:< br>49 ibmh parallel debug</span><br style="font-family: Courier New,Courier,monospace;"> 50 <span style="font-family: Courier New,Courier,monospace;">%fopts 51 -g:-C:-qinitauto=FF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 64 52 65 -qarch=pwr4:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide:< br>53 -qarch=pwr4:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide:</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 66 54 67 55 :invalid::enable:-qsigtrap 68 ibmh parallel debug</span><br style="font-family: monospace;">69 <span style="font-family: monospace;">%lopts 70 -g:-C:-qinitauto=FF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:< br>56 ibmh parallel debug</span><br style="font-family: Courier New,Courier,monospace;"> 57 <span style="font-family: Courier New,Courier,monospace;">%lopts 58 -g:-C:-qinitauto=FF:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 71 59 72 -qarch=pwr4:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide:< br>60 -qarch=pwr4:-qnosave:-qnoescape:-qflttrap=overflow::zerodivide:</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> 73 61 74 62 :invalid::enable:-qsigtrap:-lesslsmp … … 77 65 </p> 78 66 <p style="line-height: 100%;">(Attention: in the configuration file, 79 the compiler and linker options (<span style="font-family: monospace;">fopts</span>80 and <span style="font-family: monospace;">lopts</span>) must be67 the compiler and linker options (<span style="font-family: Courier New,Courier,monospace;">fopts 68 </span>and<span style="font-family: Courier New,Courier,monospace;"> lopts</span>) must be 81 69 written in one line without any blank space before and after the 82 70 colons!)<br> 83 71 </p> 84 <p style="line-height: 100%;">Using the compiler options "<span 85 style="font-family: monospace;">-g</span>" and "<span 86 style="font-family: monospace;">-C</span>", debugable code is created 72 <p style="line-height: 100%;">Using the compiler options "<span style="font-family: Courier New,Courier,monospace;">-g</span>" and "<span style="font-family: Courier New,Courier,monospace;">-C</span>", debugable code is created 87 73 and check of array bounds is 88 switched on during run time. Option " -qinitauto=FF" initializes all74 switched on during run time. Option "<span style="font-family: Courier New,Courier,monospace;">-qinitauto=FF</span>" initializes all 89 75 automatic variables (unfortunately not the global values of modules) to 90 NaN.The "<span style="font-family: monospace;">-qflttrap</span>" and "<span 91 style="font-family: monospace;">-qsigtrap</span>" options are needed 76 NaN.The "<span style="font-family: Courier New,Courier,monospace;">-qflttrap</span>" and "<span style="font-family: Courier New,Courier,monospace;">-qsigtrap</span>" options are needed 92 77 in order to terminate the run in case of any floating point errors 93 78 (otherwise the run will not terminate and errors can hardly be … … 96 81 <p style="line-height: 100%;">The <b>mrun </b>call for debugging 97 82 needs 98 an extended argument for the option <tt><font style="font-size: 10pt;" 99 size="2">-K</font></tt><font style="font-size: 10pt;" size="2">:</font> 100 </p> 101 <ul> 102 <p style="line-height: 100%;"><tt><font style="font-size: 10pt;" 103 size="2">mrun ... -K parallel debug -s *.f90" ... .<br> 104 </font></tt></p> 105 </ul> 106 <p style="line-height: 100%;">The argument of option <tt><font 107 style="font-size: 10pt;" size="2">-s</font></tt> 108 must list all source code files of the model. </p> 83 an extended argument for the option<span style="font-family: Courier New,Courier,monospace;"> </span><font style="font-size: 10pt; font-family: Courier New,Courier,monospace;" size="2">-K</font>:</p><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">mrun ... -K “parallel debug” -s ”*.f90" ... .</div><p style="line-height: 100%;">The argument of option<span style="font-family: Courier New,Courier,monospace;"> -s </span><span style="font-family: Courier New,Courier,monospace;"></span>must list all source code files of the default PALM code. </p> 109 84 <p style="line-height: 100%;">After compiling, the debugger 110 <b>TotalView</b> is automatically called by <span 111 style="font-weight: bold;">mrun</span>. With its assistance the user 85 <b>TotalView</b> is automatically called by <span style="font-weight: bold;">mrun</span>. With its assistance the user 112 86 has to start 113 87 the program execution manually, to set breakpoints, etc.. User manuals 114 of <b>TotalView</b> are available <a 115 href="http://www.hlrn.de/doc/totalview/index.html">online</a>. </p> 88 of <b>TotalView</b> are available <a href="http://www.hlrn.de/doc/totalview/index.html">online</a>. </p> 116 89 <p style="line-height: 100%;">Program crashes caused by errors in the 117 90 user-defined code should usually be found 118 91 unassisted. If the termination point lies outside the user code (in the 119 default model code), the PALM developer group had possiblybe asked for120 assistance . It is emphasized again that error tracing and programming92 default model code), the PALM group can be asked for 93 assistance, but please do not expect any quick response. It is emphasized again that error tracing and programming 121 94 of 122 95 user-defined code requires more or less precise knowledge of the … … 126 99 <hr> 127 100 <p style="line-height: 100%;"><br> 128 <font color="#000080"><font color="#000080"><a href="chapter_3.5.5.html"><font 129 color="#000080"><img src="left.gif" name="Grafik1" align="bottom" 130 border="2" height="32" width="32"></font></a><a href="index.html"><font 131 color="#000080"><img src="up.gif" name="Grafik2" align="bottom" 132 border="2" height="32" width="32"></font></a><a href="chapter_3.7.html"><font 133 color="#000080"><img src="right.gif" name="Grafik3" align="bottom" 134 border="2" height="32" width="32"></font></a></font></font></p> 135 <p style="line-height: 100%;"><i>Last change: </i> 15/04/05 (SR)</p> 136 </body> 137 </html> 101 <font color="#000080"><font color="#000080"><a href="chapter_3.5.5.html"><font color="#000080"><img src="left.gif" name="Grafik1" align="bottom" border="2" height="32" width="32"></font></a><a href="index.html"><font color="#000080"><img src="up.gif" name="Grafik2" align="bottom" border="2" height="32" width="32"></font></a><a href="chapter_3.7.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> 102 <p style="line-height: 100%;"><i>Last change: </i> 02/03/07 (SR)</p> 103 </body></html> -
palm/trunk/DOC/app/chapter_4.1.html
r5 r40 1786 1786 1787 1787 1788 <td style="vertical-align: top;"><span style="font-style: italic;">' neumann'</span></td>1788 <td style="vertical-align: top;"><span style="font-style: italic;">'initial gradient'</span></td> 1789 1789 1790 1790 … … 1831 1831 1832 1832 <p>Allowed are the values <span style="font-style: italic;">'dirichlet' 1833 </span>(pt(k=nz) and pt(k=nz+1) 1834 do not change during the run) and <span style="font-style: italic;">'neumann'</span>. 1835 With the Neumann boundary 1836 condition the value of the temperature gradient at the top is 1833 </span>(pt(k=nz+1) 1834 does not change during the run), <span style="font-style: italic;">'neumann'</span> (pt(k=nz+1)=pt(k=nz)), and <span style="font-style: italic;">'initial_gradient'</span>. 1835 With the 'initial_gradient'-condition the value of the temperature gradient at the top is 1837 1836 calculated from the initial 1838 1837 temperature profile (see <a href="#pt_surface">pt_surface</a>, <a href="#pt_vertical_gradient">pt_vertical_gradient</a>) 1839 by bc_pt_t_val = (pt_init(k=nz ) -1840 pt_init(k=nz -1)) / dzu(nz).<br>1838 by bc_pt_t_val = (pt_init(k=nz+1) - 1839 pt_init(k=nz)) / dzu(nz+1).<br> 1841 1840 1842 1841 … … 1871 1870 1872 1871 1873 <ul> 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 <p style="font-style: normal;">pt(k=nz) = pt(k=nz-1) + 1895 bc_pt_t_val * dzu(nz)</p> 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 </ul> 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 <p style="font-style: normal;">and </p> 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1938 1894 1939 1895 … … 2020 1976 2021 1977 2022 <p style="font-style: normal;">(up to k=nz-1 the prognostic 2023 equation for the temperature is solved).</p> 1978 <p style="font-style: normal;">(up to k=nz the prognostic 1979 equation for the temperature is solved).<br> 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 When a constant sensible heat flux is used at the top boundary (<a href="chapter_4.1.html#top_heatflux">top_heatflux</a>), <b>bc_pt_t</b> = <span style="font-style: italic;">'neumann'</span> 1991 must be used, because otherwise the resolved scale may contribute to 1992 the top flux so that a constant value cannot be guaranteed.</p> 2024 1993 2025 1994 … … 2345 2314 2346 2315 2347 <ul> 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 <p style="font-style: normal;">q(k=nz) = q(k=nz-1) + 2369 bc_q_t_val * dzu(nz)</p> 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 </ul> 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 <p style="font-style: normal;">and </p> 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2412 2338 2413 2339 … … 2494 2420 2495 2421 2496 <p style="font-style: normal;">(up tp k=nz -1the prognostic2422 <p style="font-style: normal;">(up tp k=nz the prognostic 2497 2423 equation for q is solved). </p> 2498 2424 … … 2819 2745 2820 2746 2821 <ul> 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 <p style="font-style: normal;">s(k=nz) = s(k=nz-1) + 2843 bc_s_t_val * dzu(nz)</p> 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 </ul> 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 <p style="font-style: normal;">and </p> 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2886 2769 2887 2770 … … 2968 2851 2969 2852 2970 <p style="font-style: normal;">(up to k=nz -1the prognostic2853 <p style="font-style: normal;">(up to k=nz the prognostic 2971 2854 equation for the scalar concentration is 2972 2855 solved).</p> … … 14687 14570 logarithmic wind and temperature 14688 14571 profiles between k=0 and k=1. In this case a Dirichlet condition (see <a href="#bc_pt_b">bc_pt_b</a>) 14689 must be used as bottom boundary condition for the potential temperature.</p> 14572 must be used as bottom boundary condition for the potential temperature.</p><p>See also <a href="#top_heatflux">top_heatflux</a>.</p> 14690 14573 14691 14574 … … 16807 16690 16808 16691 16809 <tr> 16692 <tr><td style="vertical-align: top;"><a name="top_heatflux"></a><span style="font-weight: bold;">top_heatflux</span></td><td style="vertical-align: top;">R</td><td style="vertical-align: top;"><span style="font-style: italic;">no prescribed<br> 16693 heatflux</span></td><td style="vertical-align: top;"><p>Kinematic sensible heat flux at the top boundary (in K m/s). </p> 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 <p>If a value is assigned to this parameter, the internal two-dimensional surface heat flux field <span style="font-family: monospace;">tswst</span> is initialized with the value of <span style="font-weight: bold;">top_heatflux</span> as top (horizontally homogeneous) boundary condition for the 16715 temperature equation. This additionally requires that a Neumann 16716 condition must be used for the potential temperature (see <a href="chapter_4.1.html#bc_pt_t">bc_pt_t</a>), 16717 because otherwise the resolved scale may contribute to 16718 the top flux so that a constant value cannot be guaranteed.<span style="font-style: italic;"></span> </p> 16719 16720 16721 16722 16723 16724 16725 <p><span style="font-weight: bold;">Note:</span><br>The application of a top heat flux additionally requires the setting of initial parameter <a href="#use_top_fluxes">use_top_fluxes</a> = .T..<span style="font-style: italic;"></span><span style="font-weight: bold;"></span> </p><p>No Prandtl-layer is available at the top boundary so far.</p><p>See also <a href="#surface_heatflux">surface_heatflux</a>.</p> 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 </td></tr><tr> 16810 16747 16811 16748 … … 18336 18273 18337 18274 18338 <tr> 18275 <tr><td style="vertical-align: top;"><a name="use_top_fluxes"></a><span style="font-weight: bold;">use_top_fluxes</span></td><td style="vertical-align: top;">L</td><td style="vertical-align: top;"><span style="font-style: italic;">.F.</span></td><td style="vertical-align: top;"> 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 <p>Parameter to steer the treatment of the subgrid-scale vertical 18339 fluxes within the diffusion terms at k=nz (top boundary).</p><p>By default, the fluxes at nz are calculated using the gradient approach. If <b>use_top_fluxes</b> 18340 = <i>.TRUE.</i>, the user-assigned top fluxes are used instead 18341 (see <a href="chapter_4.1.html#top_heatflux">top_heatflux</a>).</p><p>Currently, only a value for the sensible heatflux can be assigned. In case of <span style="font-weight: bold;">use_top_fluxes</span> = <span style="font-style: italic;">.TRUE.</span>, the latent heat flux at the top will be automatically set to zero.</p></td></tr><tr> 18339 18342 18340 18343 -
palm/trunk/DOC/app/chapter_4.6.html
r5 r40 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 2 <html><head> 4 3 5 4 … … 16 15 17 16 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"> 18 <title>PALM chapter 4.6</title>17 19 18 20 19 … … 37 36 38 37 39 < meta name="GENERATOR" content="StarOffice 7 (Win32)">38 <title>PALM chapter 4.6</title><meta name="GENERATOR" content="StarOffice 7 (Win32)"> 40 39 41 40 … … 111 110 @page { size: 21cm 29.7cm } 112 111 --> 113 </style> 114 </head> 112 </style></head> 115 113 116 114 <body style="direction: ltr;" lang="en-US"> … … 22046 22044 22047 22045 22048 <tr> 22046 <tr><td><a style="font-weight: bold;" href="chapter_4.1.html#top_heatflux">top_heatflux</a></td><td>I</td><td>R</td><td><span style="font-style: italic;">no prescribed heatflux</span></td><td>Kinematic sensible heat flux at the top surface (in K m/s).</td></tr><tr> 22049 22047 22050 22048 … … 23204 23202 23205 23203 23206 <tr valign="top"> 23204 <tr><td><a style="font-weight: bold;" href="chapter_4.1.html#use_top_fluxes">use_top_fluxes</a></td><td>I</td><td>L</td><td><span style="font-style: italic;">.F.</span></td><td>Parameter to steer the treatment of the subgrid-scale 23205 vertical 23206 fluxes within the diffusion terms at k=nz (top boundary).</td></tr><tr valign="top"> 23207 23207 23208 23208 … … 24373 24373 24374 24374 24375 </body> 24376 </html> 24375 </body></html> -
palm/trunk/DOC/app/chapter_5.0.html
r5 r40 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 4 <meta http-equiv="CONTENT-TYPE" 5 content="text/html; charset=windows-1252"> 6 <title>PALM chapter 5.0</title> 7 <meta name="GENERATOR" content="StarOffice 7 (Win32)"> 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"> 4 5 <title>PALM chapter 5.0</title><meta name="GENERATOR" content="StarOffice 7 (Win32)"> 8 6 <meta name="AUTHOR" content="Siegfried Raasch"> 9 7 <meta name="CREATED" content="20041103;12380720"> … … 14 12 @page { size: 21cm 29.7cm } 15 13 --> 16 </style> 17 </head> 14 </style></head> 15 18 16 <body dir="ltr" lang="en-US"> 19 17 <h2 style="line-height: 100%;"><font size="4">5.0 Installation of the 20 18 model</font></h2> 21 19 <p style="line-height: 100%;"><font color="#000000">This chapter 22 describes the installation of PALM on the Linux workstation 23 cluster of IMUK and a suitable remote computer (host), on which the 24 model runs are actually carried out. The local cluster is used to 25 start the batch job with <b>mrun</b> and to analyze the results 26 produced by the model. In batch mode, runs can be carried on the 27 IBM-Regatta 28 system of the HLRN, on an IBM-Regatta at KISTI, Korea </font><font 29 color="#000000">(via a local 30 DEC-Alpha-workstation at the Department of Atmospheric Sciences of the 31 Yonsei University, Seoul)</font><font color="#000000">, and on an 32 NEC-SX6 at DKRZ. The examples given in this chapter refer to an 33 installation of PALM on the IMUK cluster, considering the IBM-Regatta 20 describes the installation of PALM on a Linux workstation (local host) and a suitable remote computer, on which the 21 model runs are to be carried out. The local host is used to 22 start batch jobs with <b>mrun</b> and to analyze the results 23 which are produced by the model on the remote host and send back to the local host. Alternatively, <span style="font-weight: bold;">mrun</span> can also be used to start PALM on the local host in interactive mode or as a batch job.</font></p><p style="line-height: 100%;"><font color="#000000"></font></p><p style="line-height: 100%;"><font color="#000000"><span style="font-weight: bold; text-decoration: underline;">Requirements</span></font></p><p style="line-height: 100%;"><font color="#000000">The installation and operation of PALM requires at mimimum (on both, the local and the remote host, unless stated otherwise):</font></p><ol><li><font color="#000000">The AT&T Korn-shell (ksh) must be available under<span style="font-family: Courier New,Courier,monospace;"> </span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">/bin/ksh</font><font color="#000000">. Most of the current Linux distributions are using the public domain Korn-shell (pdksh). The PALM scripts <span style="font-weight: bold;">mrun</span> and <span style="font-weight: bold;">mbuild</span> do not work with the pdksh! Please replace it by the AT&T ksh. If the AT&T ksh path is different from<span style="font-family: Courier New,Courier,monospace;"> </span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">/bin/ksh</font><font color="#000000">, please modify the first lines in <span style="font-weight: bold;">mrun</span> and <span style="font-weight: bold;">mbuild</span>, respectively.</font></li><li><font color="#000000">The NetCDF-library with version number not earlier than 3.6.0-p1 (for NetCDF, see under <a href="http://www.unidata.ucar.edu/software/netcdf/">www.unidata.ucar.edu</a>).</font></li><li><font color="#000000">A FORTRAN90/95 compiler.</font></li><li><font color="#000000">The Message Passing Interface (MPI), at least on the remote host, if the parallel version of PALM shall be used.</font></li><li><font color="#000000">On the local host, the revision control system <span style="font-weight: bold;">subversion</span> (see <a href="http://subversion.tigris.org/">subversion.tigris.org</a>). 24 This is already included in many Linux distributions (e.g. SuSe). The 25 user needs a permit to access the PALM repository. For getting a permit 26 please contact the PALM group (<a href="mailto:raasch@muk.uni-hannover.de">raasch@muk.uni-hannover.de</a>) 27 and define a username under which you like to access the repository. 28 You will then receive a password which allows the access under this 29 name.</font></li><li><font color="#000000">A job queueing system must be available on the remote host. Currently, <span style="font-weight: bold;">mrun</span> can handle LoadLeveler (IBM-AIX) and NQS/PBS (Linux-Clusters, NEC-SX).</font></li><li><font color="#000000">ssh/scp-connections to and from the remote host must not be blocked by a firewall.<br></font></li></ol><font color="#000000"><span style="font-weight: bold;"></span></font><font color="#000000"> Currently, <span style="font-weight: bold;">mrun</span> is configured to be used on a limited number of selected machines. These are IBM-Regatta at computing center HLRN in Hannover (<span style="font-style: italic;">ibmh</span>), Berlin (<span style="font-style: italic;">ibmb</span>), at KISTI, Korea (<span style="font-style: italic;">ibms</span>), at Yonsei University, Seoul (<span style="font-style: italic;">ibms</span>), on NEC-SX6/8 systems at DKRZ, Hamburg (<span style="font-style: italic;">nech</span>) and RIAM, Kyushu University, Fukuoka (<span style="font-style: italic;">neck</span>), as well as on the Linux cluster of IMUK (<span style="font-style: italic;">lcmuk</span>) and Tokyo Institute of Technology (<span style="font-style: italic;">lctit</span>). The strings given in brackets are the systems names under which <span style="font-weight: bold;">mrun</span> indentifies the different hosts. mrun should also work on other systems, but this requires some modifications in the scripts <span style="font-weight: bold;">mrun</span>, <span style="font-weight: bold;">mbuild</span>, and <span style="font-weight: bold;">subjob</span>. Future PALM versions will allow to configure the scripts for different kinds of systems by just using a configuration file.</font><p style="line-height: 100%;"><font color="#000000">The examples given in this chapter refer to an 30 installation of PALM on an IMUK Linux workstation and the IBM-Regatta 34 31 system of 35 the HLRN as the remote computer. </font>32 the HLRN used as remote host. They are just called local and remote host from now on. </font> 36 33 </p> 37 34 <p style="line-height: 100%;">The installation process requires a valid 38 account on the IMUK cluster and on the remote host as well. In the 39 following the IMUK workstation is called the local host. <br> 35 account on the local and on the remote host as well.<br> 40 36 </p> 41 37 <ul> … … 49 45 out e.g. on the local host:</p> 50 46 <p style="line-height: 100%;"><span style="font-family: monospace;"> 51 ssh <username on remote host>@<remote IP-address></span><br>47 </span><span style="font-family: Courier New,Courier,monospace;">ssh <username on remote host>@<remote IP-address></span><br> 52 48 </p> 53 49 <p style="line-height: 100%;">and on the remote host:<br> 54 50 </p> 55 51 <p style="line-height: 100%;"><span style="font-family: monospace;"> 56 ssh <username on local host>@<local IP-adddress></span><br>52 </span><span style="font-family: Courier New,Courier,monospace;">ssh <username on local host>@<local IP-adddress></span><br> 57 53 </p> 58 <p style="line-height: 100%;">In both cases you should nnot be54 <p style="line-height: 100%;">In both cases you should not be 59 55 prompted for a password. <b>Before continuing the further installation 60 56 process, this must be absolutely guaranteed!</b> This must also be 61 57 guaranteed for <b>all</b> other remote hosts, on which PALM shall run.</p> 62 58 </ul> 63 <p style="line-height: 100%;"> In the <b>first installation step</b> a59 <p style="line-height: 100%;"></p><p style="line-height: 100%;"><span style="font-weight: bold; text-decoration: underline;">Package Installation</span></p><p style="line-height: 100%;">In the <b>first installation step</b> a 64 60 set of directories must be created both on the local and on the 65 remote host. These directories are: </p> 66 <ul> 67 <pre style="line-height: 100%;"><font size="2">~/job_queue</font><br><font 68 size="2">~/palm</font><br><font size="2">~/palm/current_version</font><br><font 69 size="2">~/palm/current_version/SOURCE</font><br><font size="2">~/palm/current_version/JOBS</font></pre> 70 </ul> 71 <p style="line-height: 100%;">The names of these directories are 61 remote host. These directories are:</p><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">~/job_queue<br></div><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">~/palm<br></div><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">~/palm/current_version<br></div><div style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">~/palm/current_version/JOBS</span><br></div><p style="line-height: 100%;">The names of these directories are 72 62 freely selectable (except <tt><font size="2">~/job_queue</font></tt>), 73 63 however new users should use them as suggested, since many 74 64 examples in this documentation as well as all example files are 75 assuming these settings. </p>65 assuming these settings. The directory <span style="font-family: monospace;">~/palm/current_version</span> on the local host will be called the working directory from now on. </p> 76 66 <p style="line-height: 100%;"><font color="#000000">In the <b>second 77 step</b> the PALM source code must be copied into directory </font><tt><font 78 size="2"><font color="#000000">~/palm/current_version/SOURCE</font></font></tt><font 79 color="#000000"> on the local host by carrying out the following 80 commands: </font> 81 </p> 82 <ul> 83 <pre style="line-height: 100%;"><font color="#000000">cd ~/palm/current_version/SOURCE</font><br><font 84 color="#000000">ln -s /home/raasch/public_html/PALM_group/INSTALL/RCS .</font><br><font 85 color="#000000">cp RCS/*,v .</font><br><font color="#000000">co *,v</font><br><font 86 color="#000000">rm -rf *,v</font></pre> 87 </ul> 88 <p style="line-height: 100%;"><font color="#000000">Afterwards, the 89 directory</font><font color="#000000"> </font><tt><font size="2"><font 90 color="#000000">~/palm/current_version/SOURCE</font></font></tt><font 91 color="#000000"> 92 should contain</font><font color="#000000"> all PALM routines as well 93 as a file with the name </font><tt><font size="2"><font color="#000000">Makefile</font></font></tt><font 94 color="#000000">. </font><font color="#000000">All files are 95 write-protected, the source code files end on </font><tt><font 96 style="font-size: 11pt;" size="2"><font color="#000000">.f90</font></font></tt><font 97 color="#000000">. 98 The user should never modify these files without further knowledge of 99 the PALM code. </font> 100 </p> 67 step</b> 68 a working copy of the recent version of the PALM software package, 69 including the source code, scripts, documentation, etc. must be 70 copied to the working directory (</font><font color="#000000">local host!) by executing the following 71 commands. Replace <your username> by the name that you choosed to access the repository.</font></p><div style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">cd ~/palm/current_version</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">svn checkout --username <your username> svn://130.75.105.45/palm/trunk</span><br></div><p style="line-height: 100%;"><font color="#000000">You will then be prompted for your password. After finishing, the subdirectory</font><font style="font-family: Courier New,Courier,monospace;" color="#000000"> trunk </font><font color="#000000">should 72 appear in your working directory. It contains a number of further 73 subdirectories which contain e.g. the PALM source code (</font><font style="font-family: Courier New,Courier,monospace;" color="#000000">SOURCE</font><font color="#000000">) and the scripts for running PALM (</font><font style="font-family: Courier New,Courier,monospace;" color="#000000">SCRIPTS</font><font color="#000000">).</font></p><p style="line-height: 100%;">Alternatively, executing</p><pre style="line-height: 100%; margin-left: 40px; font-family: Courier New,Courier,monospace;">svn checkout --username <your username> svn://130.75.105.45/palm/trunk abcde</pre><p style="line-height: 100%;">will place your working copy in a directory named<span style="font-family: Courier New,Courier,monospace;"> abcde </span>instead of a directory named<span style="font-family: Courier New,Courier,monospace;"> trunk</span>. But keep in mind that you will have to adjust several paths given below, if you do not use the default directory<span style="font-family: Courier New,Courier,monospace;"> trunk</span>.</p><p style="line-height: 100%;">Please never touch any file in your working copy of PALM, unless you know exactly what you are doing.</p><p style="line-height: 100%; font-weight: bold;">In future PALM releases, repository access to the most recent PALM version will 74 probably be restricted because this is a test version. However, access 75 to the last (and earlier) stable version(s) will still be possible with 76 (e.g.)</p><pre style="line-height: 100%; margin-left: 40px; font-family: Courier New,Courier,monospace;">svn checkout --username <your username> svn://130.75.105.45/palm/tags/release-3.1c trunk</pre><p style="line-height: 100%;"><font color="#000000"></font></p><p style="line-height: 100%;"><font color="#000000"><span style="font-weight: bold; text-decoration: underline;">Package Configuration</span></font></p><p style="line-height: 100%;"><font color="#000000">To 77 use the PALM scripts, the PATH variable has to be extended and the 78 environment variable PALM_BIN has to be set (on local and remote host) 79 in the respective profile of the users default shell (e.g. in<span style="font-family: Courier New,Courier,monospace;"> .profile</span>, if<span style="font-family: Courier New,Courier,monospace;"> ksh </span>is used):</font></p><p style="line-height: 100%; margin-left: 40px;"><font style="font-family: Courier New,Courier,monospace;" color="#000000">export PATH=$HOME/palm/current_version/trunk/SCRIPTS:$PATH</font><font color="#000000"><br><span style="font-family: Courier New,Courier,monospace;">export PALM_BIN=</span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">$HOME/palm/current_version/trunk/SCRIPTS</font></p><p style="line-height: 100%;"><font color="#000000">You may habe to login again in order to activate these settings.</font></p><p style="line-height: 100%;"><font color="#000000">On the local and on the remote host, some small helper/utility programs have to be installed, which are e.g. later used by <span style="font-weight: bold;">mrun</span> or for PALM data postprocessing. The installation is done by <span style="font-weight: bold;">mbuild</span>. This script requires a configuration file<span style="font-family: Courier New,Courier,monospace;"> .mrun.config</span>, which will be also used by <span style="font-weight: bold;">mrun</span> in the following. A copy has to be put into the working directory under the name<span style="font-family: Courier New,Courier,monospace;"> .mrun.config </span>by</font></p><p style="line-height: 100%; margin-left: 40px;"><font color="#000000"><span style="font-family: Courier New,Courier,monospace;">cp trunk/SCRIPTS/.mrun.config.default .mrun.config</span></font></p><p style="line-height: 100%;"><font color="#000000">Beside many other things, this file contains typical installation parameters 80 like compiler name, compiler options, etc. 81 for a set of different remote hosts. Please edit this file, uncomment lines like</font></p><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">#%remote_username <replace by your ... username> <remote-computer-shortcut></div><p style="line-height: 100%;"><font color="#000000">by removing the first hash (<span style="font-family: Courier New,Courier,monospace;">#</span>) character and replace the string "<span style="font-family: Courier New,Courier,monospace;"><replace by ...></span>" by your username on the respective host given in the <span style="font-family: Courier New,Courier,monospace;"><remote-computer-shortcut></span>. You only have to uncomment lines for those hosts on which you intend to use PALM.</font></p><p style="line-height: 100%;"><font color="#000000">After modifying the configuration file, the respective executables are generated by executing</font></p><p style="line-height: 100%; margin-left: 40px; font-family: Courier New,Courier,monospace;"><font color="#000000">mbuild -u -h lcmuk<br>mbuild -u -h ibmh</font></p><p style="line-height: 100%;"><font color="#000000">The second call also copies the PALM scripts like <span style="font-weight: bold;">mrun</span> and <span style="font-weight: bold;">mbuild</span> to the remote host.</font></p><p style="line-height: 100%;"><font color="#000000"></font></p><p style="line-height: 100%;"><font color="#000000"><span style="font-weight: bold; text-decoration: underline;">Pre-Compilation of PALM Code</span></font></p><font color="#000000"> 82 </font> 101 83 <p style="line-height: 100%;"><font color="#000000">To avoid the 102 84 re-compilation of the complete source code for each model run, PALM 103 willl be pre-compiled once on the remote host . Due to the use of85 willl be pre-compiled once on the remote host by again using the script <span style="font-weight: bold;">mbuild</span>. Due to the use of 104 86 FORTRAN modules in the source code, the subroutines must be compiled 105 in a certain sequence. Therefore the so-called <i>make</i> mechanism87 in a certain order. Therefore the so-called <i>make</i> mechanism 106 88 is used (see the respective man-page of the Unix operating system), 107 requiring the file </font><tt><font color="#000000">Makefile</font></tt><font 108 color="#000000">, 109 in which the dependencies are described. The compiled sources (object 89 requiring a<span style="font-family: Courier New,Courier,monospace;"> </span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">Makefile</font><font color="#000000">, 90 in which the dependencies are described. This file is found in subdirectory <span style="font-family: Courier New,Courier,monospace;">trunk/SOURCE<span style="font-family: Times New Roman,Times,serif;">, where also the PALM code is stored</span></span>. The compiled sources (object 110 91 files) are 111 stored on the remote computer in the directory 112 </font><tt><font color="#000000">~/palm/current_version/SOURCE/MAKE_DEPOSITORY</font></tt><font 113 color="#000000">.<br> 114 <br> 115 For pre-compilation the user has to</font> call <font color="#000000">the 116 command <b>mbuild</b>, which requires some pre-settings. The path 117 variable must be extended on <b>both</b> computers, so that the 118 commands <b>mbuild</b> and <b>mrun</b> as well as further routines 119 needed by <span style="font-weight: bold;">mrun</span> can be found. 120 This is achieved on the local computer via:: </font> 121 </p> 122 <ul> 123 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 124 color="#000000">PATH=$PATH:/home/raasch/pub,</font></pre> 125 </ul> 126 <p style="line-height: 100%;"><font color="#000000">and on the IBM 127 Regatta 128 system of the HLRN via</font></p> 129 <ul> 130 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 131 color="#000000">PATH=$PATH:/home/h/niksiraa/pub.</font></pre> 132 </ul> 133 <p style="line-height: 100%;"><font color="#000000">These path 134 extensions must be automatically set in the profiles of the local and 135 remote host (file "~/.myprofile" at IMUK, file "~/.profile" at HLRN)</font><font 136 color="#000000">. 137 </font></p> 138 <p style="line-height: 100%;"><font color="#000000">It is now assumed 139 that the working directory is 140 </font><tt><font color="#000000">~/palm/current_version/SOURCE</font></tt><font 141 color="#000000"> 142 on the local host. Compilation of the PALM code via <b>mbuild </b>needs 143 a </font><a 144 href="http://www.muk.uni-hannover.de/%7Eraasch/PALM_group/INSTALL/.mrun.config"><font 145 color="#000080">configuration 146 file</font></a><font color="#000080">,</font><font color="#000000"> 147 which must be copied to the working directory under name 148 </font><tt><font color="#000000">.mrun.config</font></tt><font 149 color="#000000"> 150 (please click on the link with <SHIFT> + left mouse button)</font><font 151 color="#000000">. This file contains typical installation parameters 152 like compiler name, compiler options, etc. 153 for a set of different remote hosts. This file is also needed later on 154 for starting the model runs. </font> 155 </p> 156 <p style="line-height: 100%;"><font color="#000000">In the 157 configuration file </font><tt><font color="#000000">.mrun.config</font></tt><font 158 color="#000000"> 159 the user name on the respective remote host must be entered. In lines 160 like</font> 161 </p> 162 <ul> 163 <p style="line-height: 100%;"><tt><font color="#000000">% 164 remote_username <username> <remote-computer-shortcut></font></tt></p> 165 </ul> 166 the string "<span style="font-family: monospace;"><username></span>" 167 has to be replaced by the actual name of the user on the respective 168 remote host (e.g. "nik....." on HLRN).<font color="#000000"> 169 </font> 170 <p style="line-height: 100%;"><font color="#000000">After this, the 171 pre-compilation for the IBM-Regatta of HLRN can be started by entering</font><font 172 color="#000000"> </font> 173 </p> 174 <ul> 175 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 176 color="#000000">mbuild - h ibmh .</font></pre> 177 </ul> 178 <p style="line-height: 100%;"><span style="font-family: monospace;">mbuild</span> 179 will prompt some queries<font color="#000000">, which must all be 180 answered "y" by the user. The compiling process </font><font 181 color="#000000">will take some time. </font><font color="#000000"><span 182 style="font-family: monospace;">mbuild</span></font><font 183 color="#000000"> transfers the respective compiler calls to the remote 92 stored on the remote computer in the default directory 93 </font><font style="font-family: Courier New,Courier,monospace;" color="#000000">~/palm/current_version/MAKE_DEPOSITORY</font>.<font color="#000000"><span style="font-weight: bold;"></span></font></p><p style="line-height: 100%;"><font color="#000000">The 94 pre-compilation for the remote host (here the IBM-Regatta of HLRN) is done by</font><span style="font-family: monospace;"></span></p><div style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">mbuild -h ibmh </span></div><p style="line-height: 100%;"><span style="font-family: Courier New,Courier,monospace;">mbuild 95 </span>will prompt some queries<font color="#000000">, which must all be 96 answered "y" by the user. The compiling process </font><font color="#000000">will take some time.<span style="font-family: Courier New,Courier,monospace;"> </span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">mbuild</font><font color="#000000"><span style="font-family: Courier New,Courier,monospace;"> </span>transfers the respective compiler calls to the remote 184 97 host where they are carried out interactively. You can follow the 185 98 progress at the terminal window, where also error messages … … 187 100 entering </font> 188 101 </p> 189 <blockquote style="line-height: 100%; "><tt><font color="#000000">mbuild</font></tt></blockquote>102 <blockquote style="line-height: 100%; font-family: Courier New,Courier,monospace;"><font color="#000000">mbuild</font></blockquote> 190 103 <p style="line-height: 100%;"><font color="#000000">PALM will 191 104 be (consecutively) pre-compiled for all remote hosts listed in 192 the configuration file. </font>105 the configuration file. If you want to compile for the local host only, please enter</font></p><p style="line-height: 100%; margin-left: 40px;"><font color="#000000"><span style="font-family: Courier New,Courier,monospace;">mbuild -h lcmuk</span> </font> 193 106 </p> 194 <p style="line-height: 100%;"><font color="#000000"> As a last step,107 <p style="line-height: 100%;"><font color="#000000"></font></p><p style="line-height: 100%; font-weight: bold; text-decoration: underline;"><font color="#000000">Installation Verification</font></p><p style="line-height: 100%;"><font color="#000000">As a last step, 195 108 after the compilation has been finished, the PALM installation has to 196 109 be verified. For this 197 110 purpose a simple test run is carried out. This once again requires the <b>mrun 198 </b>configuration file (described in </font><a href="chapter_3.2.html"><font 199 color="#000080">chapter 200 3.2</font></a><font color="#000000">), as well as the </font><a 201 href="http://www.muk.uni-hannover.de/%7Eraasch/PALM_group/INSTALL/example_p3d"><font 202 color="#000080">parameter 203 file</font></a><font color="#000000"> (described in </font><a 204 href="chapter_4.4.html"><font color="#000080">chapter 205 4.4</font></a>)<font color="#000000">. The parameter file must be 206 copied to<br> 111 </b>configuration file (described in </font><a href="chapter_3.2.html"><font color="#000080">chapter 112 3.2</font></a><font color="#000000">), as well as the </font><a href="http://www.muk.uni-hannover.de/%7Eraasch/PALM_group/INSTALL/example_p3d"><font color="#000080">parameter 113 file</font></a><font color="#000000"> (described in </font><a href="chapter_4.4.html"><font color="#000080">chapter 114 4.4</font></a>)<font color="#000000">. The parameter file must be 115 copied from the PALM working copy by<br> 207 116 </font></p> 208 <p style="line-height: 100%;"><tt><font color="#000000"> 209 ~/palm/current_version/JOBS/example/INPUT/example_p3d</font></tt><font 210 color="#000000"> . 211 </font></p> 117 <div style="margin-left: 40px;"><span style="font-family: monospace;"></span><font style="font-family: Courier New,Courier,monospace;" color="#000000">mkdir -p JOBS/example/INPUT<br>cp trunk/INSTALL/example_p3d JOBS/example/INPUT/example_p3d</font><font color="#000000"><span style="font-family: Courier New,Courier,monospace;"></span></font></div> 212 118 <p style="line-height: 100%;"><font color="#000000">The test run can 213 now be started by e ntering the command:</font>119 now be started by executing the command </font> 214 120 </p> 215 <pre 216 style="margin-left: 1cm; margin-right: 1cm; margin-bottom: 0.5cm; line-height: 100%;"><font 217 color="#000000">mrun -d example -h ibmh -K parallel -X 8 -T 8 -t 500 -q cdev -r d3# pr#</font></pre> 121 <pre style="margin-left: 1cm; margin-right: 1cm; margin-bottom: 0.5cm; line-height: 100%; font-family: Courier New,Courier,monospace;"><font color="#000000">mrun -d example -h ibmh -K parallel -X 8 -T 8 -t 500 -q cdev -r “d3# pr#”</font></pre> 218 122 <p style="line-height: 100%;"><font color="#000000">This specific run 219 123 will be carried out on 8 PEs and is allowed to use up to 500 seconds 220 124 CPU time. After pressing <return>, the most important settings of 221 125 the job are displayed at the terminal window 222 and the user is prompted for o.k. (</font><tt><font color="#000000">y</font></tt><font 223 color="#000000">). 224 Afterwards a message of the queuing system like <i>Request</i> 225 226 <i>Submitted to queue 227 by 228 </i>should be displayed. Now the job is 229 queued either started immediately or at a later time, depending on the 126 and the user is prompted for o.k. (“</font><font style="font-family: Courier New,Courier,monospace;" color="#000000">y</font><font color="#000000">”). Next, a message of the queuing system like “<i>Request</i> … 127 <i>Submitted to queue… by…” </i>should be displayed. Now the job is 128 queued and either started immediately or at a later time, depending on the 230 129 current workload of the remote host. Provided that it is executed 231 130 immediately and that all things work as designed, the job protocol of 232 this run will appear under the file name </font><tt><font 233 color="#000000">~/job_queue/ibmh_example</font></tt><font 234 color="#000000"> no more than 3 minutes later. The content of this 131 this run will appear under the file name<span style="font-family: Courier New,Courier,monospace;"> </span></font><font style="font-family: Courier New,Courier,monospace;" color="#000000">~/job_queue/ibmh_example</font><font color="#000000"><span style="font-family: Courier New,Courier,monospace;"> </span>no more than a few minutes later. The content of this 235 132 file should be carefully examined for any error messages.</font> 236 133 </p> 134 135 237 136 <p style="line-height: 100%;">Beside the job protocol and according to 238 137 the configuration file and arguments given for <b>mrun</b> 239 options <tt>-d</tt> and <tt>-r,</tt>further files should be found in138 options<span style="font-family: Courier New,Courier,monospace;"> -d </span>and<span style="font-family: Courier New,Courier,monospace;"> -r</span><tt>,</tt>further files should be found in 240 139 the 241 directories<br> 242 </p> 243 <p style="line-height: 100%; font-family: monospace;"> 244 ~/palm/current_version/JOBS/example/MONITORING 245 <br> 246 </p> 247 <p style="line-height: 100%;">and</p> 140 directories</p><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">~/palm/current_version/JOBS/example/MONITORING</div><p style="line-height: 100%;">and</p> 248 141 <p style="line-height: 100%;"><span style="font-family: monospace;"> 249 ~/palm/current_version/JOBS/example/OUTPUT . 250 </span><br> 142 </span><span style="font-family: Courier New,Courier,monospace;">~/palm/current_version/JOBS/example/OUTPUT</span><span style="font-family: monospace;"></span><br> 251 143 </p> 252 144 <p style="line-height: 100%;">Please compare the contents of file</p> 253 145 <p style="line-height: 100%;"><span style="font-family: monospace;"> 254 ~/palm/current_version/JOBS/example/MONITORING/ibmh_example_rc</span><br>146 </span><span style="font-family: Courier New,Courier,monospace;">~/palm/current_version/JOBS/example/MONITORING/ibmh_example_rc</span><br> 255 147 </p> 256 <p style="line-height: 100%;">with those of the <a 257 href="http://www.muk.uni-hannover.de/%7Eraasch/PALM_group/INSTALL/example_rc">result 258 example file</a> (e.g. with the help of the UNIX-command <span 259 style="font-family: monospace;">diff</span>). There should be not a 260 single difference between these two files. <font color="#000000">If 148 <p style="line-height: 100%;">with those of the example result file which can be found under<span style="font-family: Courier New,Courier,monospace;"> trunk/INSTALL/example_rc</span>., e.g. by using the<span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;"> standard</span> diff </span>command:</p><p style="line-height: 100%; margin-left: 40px; font-family: Courier New,Courier,monospace;">diff JOBS/example/MONITORING/ibmh_example_rc trunk/INSTALL/example_rc</p><p style="line-height: 100%;">where it is assumed that your working directory is<span style="font-family: Courier New,Courier,monospace;"> ~/palm/current_version</span>.</p><p style="line-height: 100%;"><span style="font-weight: bold;">You should not find any difference between these two files</span>, except of the run date and time displayed at the top of the file header. <font color="#000000">If 261 149 the file contents are identical, the installation is successfully 262 150 completed.</font> </p> … … 265 153 help you. </p> 266 154 <hr> 267 <p style="line-height: 100%;"><font color="#000080"><font 268 color="#000080"><a href="chapter_4.6.html"><font color="#000080"><img 269 src="left.gif" name="Grafik1" align="bottom" border="2" height="32" 270 width="32"></font></a><a href="Inhaltsverzeichnis.html"><font 271 color="#000080"><img src="up.gif" name="Grafik2" align="bottom" 272 border="2" height="32" width="32"></font></a><a href="chapter_5.1.html"><font 273 color="#000080"><img src="right.gif" name="Grafik3" align="bottom" 274 border="2" height="32" width="32"></font></a></font></font></p> 275 <p style="line-height: 100%;"><i>Last change: </i> 20/04/05 (SR) </p> 276 </body> 277 </html> 155 <p style="line-height: 100%;"><font color="#000080"><font color="#000080"><a href="chapter_4.6.html"><font color="#000080"><img src="left.gif" name="Grafik1" align="bottom" border="2" height="32" width="32"></font></a><a href="Inhaltsverzeichnis.html"><font color="#000080"><img src="up.gif" name="Grafik2" align="bottom" border="2" height="32" width="32"></font></a><a href="chapter_5.1.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> 156 <p style="line-height: 100%;"><i>Last change: </i> 02/03/07 (SR) </p> 157 </body></html> -
palm/trunk/DOC/app/chapter_5.1.html
r5 r40 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head> 2 3 <meta content="text/html; charset=windows-1252" http-equiv="CONTENT-TYPE"><title>PALM chapter 5.1</title> 3 4 … … 6 7 <meta content="20041103;12395815" name="CREATED"> 7 8 <meta content="20041119;12321236" name="CHANGED"> 8 <meta content="parallel LES model" name="KEYWORDS"></head> 9 10 < body lang="en-US" dir="ltr">11 <h3>5.1 Installation of new versions</h3> 12 <p>The PALM developer group announces code revisions within the9 <meta content="parallel LES model" name="KEYWORDS"></head><body dir="ltr" lang="en-US"> 10 <h3>5.1 Installation of new / other versions</h3> 11 <p>The PALM group announces code revisions by emails send to the 12 PALM mailing list. If you like to be put on this list, just send an 13 email to <a href="mailto:raasch@muk.uni-hannover.de">raasch@muk.uni-hannover.de</a>. Details about new releases can be found in the 13 14 <a href="../tec/technical_documentation.html">technical/numerical 14 documentation</a>. Users can carry out version updates by changing into 15 the working directory 16 <span style="font-family: monospace;">~/palm/current_version/SOURCE</span> 17 and entering </p> 18 <ul> 19 <pre style="margin-bottom: 0.5cm;">co *.f90.</pre> 20 </ul> 21 <p>This updates all source code files. </p> 22 <p><b>Note:</b> if the user should have changed this source code, then 23 these changes are certainly lost! This is one reason why 24 modifications of the basic source code should be omitted and 15 documentation</a>. Users can easily make version updates by changing into 16 the working directory<span style="font-family: Courier New,Courier,monospace;"> 17 ~/palm/current_version 18 </span>and executing<span style="font-family: Courier New,Courier,monospace;"></span></p><p style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">svn update</span></p><p><span style="font-family: Courier New,Courier,monospace;"></span>This updates all files in the PALM working copy in subdirectory<span style="font-family: Courier New,Courier,monospace;"> trunk</span>. The update may fail due the <span style="font-weight: bold;">subversion</span> rules, if you have modified the contents of<span style="font-family: Courier New,Courier,monospace;"> trunk</span>. In case of any conflicts, please refer to the <span style="font-weight: bold;">subversion</span> documentation on how to remove them. In order to avoid such conflicts, modifications of the default PALM code should be omitted and 25 19 be restricted to the user-interface only 26 20 (see <a href="chapter_3.5.html">chapter 27 3.5</a>). </p> 28 <p>After updating the source code the pre-compiled code must be updated 29 via </p> 30 <ul> 31 <pre style="margin-bottom: 0.5cm;">mbuild -h ibmh</pre> 21 3.5</a>).</p> 22 <ul style="font-family: Courier New,Courier,monospace;"> 32 23 </ul> 33 <p>on the IBM-Regatta "hanni" of the HLRN or via</p> 34 <blockquote style="font-family: monospace;">mbuild</blockquote> 35 <p>on all remote hosts listed in the configuration file 36 <span style="font-family: monospace;">.mrun.config</span>. </p> 24 25 <p>Alternatively, you can install new or other releases in a different directory, eg.</p><p style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">mkdir ~/palm/release-3.1c</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">cd ~/palm/release-3.1c</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">svn checkout --username <your username> svn://130.75.105.45:palm/tags/release-3.1c trunk</span></p> 26 <p>However, this would require to carry out again the complete 27 installation process described in chapter 5.0. So far, differet 28 versions of PALM cannot be used at the same time.</p><p>After updating the working copy, please check for any differences between your current configuration file (<span style="font-family: Courier New,Courier,monospace;">.mrun.config</span>) and the default configuration file under<span style="font-family: Courier New,Courier,monospace;"> trunk/SCRIPTS/.mrun.config.default </span>and adjust your current file, if neccessary.</p><p>The scripts and the pre-compiled code must then be updated 29 via</p><div style="margin-left: 40px; font-family: Courier New,Courier,monospace;">mbuild -u -h lcmuk<br>mbuild -u -h ibmh<br>mbuild -h ibmh</div><p>or via</p> 30 <ul style="font-family: Courier New,Courier,monospace;"> 31 </ul> 32 33 <blockquote style="font-family: Courier New,Courier,monospace;">mbuild -u<br>mbuild</blockquote> 34 <p>on all remote hosts listed in the configuration file<span style="font-family: Courier New,Courier,monospace;"> 35 .mrun.config</span>. </p> 37 36 <p>As a last step, a suitable test run should be carried out. It should 38 37 be carefully examined whether and how the results created by the new … … 40 39 which go beyond the ones announced in the <a href="../tec/technical_documentation.html">technical/numerical 41 40 documentation</a> 42 should be communicated as soon as possible to the PALM developergroup.41 should be communicated as soon as possible to the PALM group. 43 42 </p> 44 43 <hr> 45 44 <p><br> 46 <font color="#000080"><font color="#000080"><a href="chapter_5.0.html"><font color="#000080"><img width="32" height="32" border="2" align="bottom" name="Grafik1" src="left.gif"></font></a><a href="index.html"><font color="#000080"><img width="32" height="32" border="2" align="bottom" name="Grafik2" src="up.gif"></font></a></font></font><br>45 <font color="#000080"><font color="#000080"><a href="chapter_5.0.html"><font color="#000080"><img name="Grafik1" src="left.gif" align="bottom" border="2" height="32" width="32"></font></a><a href="index.html"><font color="#000080"><img name="Grafik2" src="up.gif" align="bottom" border="2" height="32" width="32"></font></a></font></font><br> 47 46 48 47 <br> 49 <span style="font-style: italic;">Last change:</span> 20/04/0548 <span style="font-style: italic;">Last change:</span> 02/03/07 50 49 (SR)<br> 51 50 </p>
Note: See TracChangeset
for help on using the changeset viewer.