Changeset 336 for palm/trunk
- Timestamp:
- Jun 10, 2009 11:19:35 AM (15 years ago)
- Location:
- palm/trunk
- Files:
-
- 1 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/DOC/app/chapter_3.2.html
r97 r336 32 32 <p style="line-height: 100%;">The following configuration 33 33 data 34 exclusively applies to model runs on the IBM Regatta hanniof the34 exclusively applies to model runs on the SGI ICE system of the 35 35 HLRN when using several processing elements (i.e. for the parallel 36 36 version of the model). The proper installation of the model is … … 38 38 5.0</a>). Furthermore it is supposed that the user is located in 39 39 the 40 directory <tt><font style="font-size: 10pt;" size="2">$HOME/palm/current_version/SOURCE</font></tt> 41 on its local computer. There are the FORTRAN source codes of the 42 model (<tt><font style="font-size: 10pt;" size="2">*.f90</font></tt>) 43 as 44 well as the configuration file (name: <tt><font style="font-size: 10pt;" size="2">.mrun.config</font></tt>) 45 and the make file (name: <tt><font style="font-size: 10pt;" size="2">Makefile</font></tt>). 40 directory <tt><font style="font-size: 10pt;" size="2">$HOME/palm/current_version</font></tt> 41 on its local computer, where the configuration file (<tt><font style="font-size: 10pt;" size="2">.mrun.config</font></tt>) should reside. 46 42 The configuration file has the following contents (among other things): 47 43 <br> 48 </p><pre style="line-height: 100%;"><font style="font-size: 10pt;" size="2">% source_path <i>$HOME/palm/current_version/SOURCE</i></font><br><font style="font-size: 10pt;" size="2">% mainprog <i>palm.f90</i></font><br><font style="font-size: 10pt;" size="2">% use_makefile <i>true</i></font><br><font style="font-size: 10pt;" size="2">% fopts <i>-O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape ibmh parallel<span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></i></font><br><font style="font-size: 10pt;" size="2">% lopts <span style="font-style: italic;">-O3:-g:-qrealsize=8:-Q:-q64:-qmaxmem=-1:-qtune=pwr4:-qarch=pwr4:-qnosave:-qnoescape:-lesslsmp ibmh parallel</span></font><br><font style="font-size: 10pt;" size="2">#</font><br><font style="font-size: 10pt;" size="2">EC:[[ \$locat = execution]] & & <i>cat </i>RUN_CONTROL </font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#PARIN"><font style="font-size: 10pt;" size="2">PARIN</font></a><font style="font-size: 10pt;" size="2"> in:job:npe d3# ~/palm/current_version/JOBS/$fname/INPUT _p3d</font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#RUN_CONTROL"><font style="font-size: 10pt;" size="2">RUN_CONTROL</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# ~/palm/current_version/JOBS/$fname/MONITORING _rc</font><br><a href="chapter_3.4.html#HEADER"><font style="font-size: 10pt;" size="2">HEADER</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# ~/palm/current_version/JOBS/$fname/MONITORING _header</font><br><a href="chapter_3.4.html#PLOT1D_PAR"><font style="font-size: 10pt;" size="2">PLOT1D_PAR</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr_par</font><br><a href="chapter_3.4.html#PLOT1D_DATA"><font style="font-size: 10pt;" size="2">PLOT1D_DATA</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr_in</font></pre>44 </p><pre style="line-height: 100%;"><font style="font-size: 10pt;" size="2">%mainprog palm.f90<br>%base_directory $HOME/palm/current_version<br>%base_data ~/palm/current_version/JOBS<br>%source_path $base_directory/trunk/SOURCE<br>#<br></font><font style="font-size: 10pt;" size="2">%fopts -g:-w:-xT:-O3:-cpp:-r8:-ftz:-fno-alias:-no-prec-div:-no-prec-sqrt:-ip:-nbs:-convert:little_endian lcsgih parallel<br></font><font style="font-size: 10pt;" size="2">%lopts -g:-w:-xT:-O3:-cpp:-r8:-ftz:-fno-alias:-no-prec-div:-no-prec-sqrt:-ip:-nbs:-Vaxlib lcsgih parallel</font><font style="font-size: 10pt;" size="2"><br>#</font><br><font style="font-size: 10pt;" size="2">EC:[[ \$locat = execution]] & & <i>cat </i>RUN_CONTROL </font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#PARIN"><font style="font-size: 10pt;" size="2">PARIN</font></a><font style="font-size: 10pt;" size="2"> in:job d3# $base_data/$fname/INPUT _p3d</font><br><font style="font-size: 10pt;" size="2">#</font><br><a href="chapter_3.4.html#RUN_CONTROL"><font style="font-size: 10pt;" size="2">RUN_CONTROL</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# $base_data/$fname/MONITORING _rc</font><br><a href="chapter_3.4.html#HEADER"><font style="font-size: 10pt;" size="2">HEADER</font></a><font style="font-size: 10pt;" size="2"> out:loc:tr d3# $base_data/$fname/MONITORING _header</font><span style="font-family: mon;"><span style="text-decoration: underline;"><br></span><a href="chapter_3.4.html#DATA_1D_PR_NETCDF">DATA_1D_PR_NETCDF</a></span><font style="font-size: 10pt;" size="2"> out:loc:tr pr# ~/palm/current_version/JOBS/$fname/OUTPUT _pr nc</font></pre> 49 45 <p style="line-height: 100%;"><font face="Thorndale, serif">The first 50 46 five lines specify values of … … 56 52 variable. Again separated by blank t<font face="Thorndale, serif">he 57 53 so-called validity domain</font> can be indicated (later more). 58 With the first threevariables <b>mrun</b> gets to know in54 With the first four variables <b>mrun</b> gets to know in 59 55 which 60 56 directory the source code lies (</font><tt><i><font face="Thorndale, serif">source_path</font></i></tt><font face="Thorndale, serif">), 61 the file name of the main program (</font><tt><i><font face="Thorndale, serif">mainprog</font></i></tt><font face="Thorndale, serif">) 62 and that the <font face="Thorndale, serif">make mechanism 63 should be 64 used </font>for compiling (</font><tt><font face="Thorndale, serif"><i>use_makefile 65 =</i> <i>true</i></font></tt><font face="Thorndale, serif">). <b>mrun 57 the file name of the main program (</font><tt><i><font face="Thorndale, serif">mainprog</font></i></tt><font face="Thorndale, serif">)</font><font face="Thorndale, serif">. Also, two variables are defined which contain path informations used later in the file (<span style="font-style: italic;">base_directory</span>, <span style="font-style: italic;">base_data</span>). <b>mrun 66 58 </b>needs these information, <font color="#000000">because 67 59 for each 68 model run the executable is created by compiling the source files.</font>60 model run the executable is created by compiling the respective source file.</font> 69 61 Normally, only the main program (palm.f90) will be compiled while all 70 62 other object files are just linked. These object files have already … … 84 76 interpret these colons as blanks (2 colons written one behind the 85 77 other will be interpreted as a colon). Thus in the example above</font> fopts 86 has the value<tt><font face="Thorndale, serif"> </font></tt>“<font style="font-size: 10pt; font-family: monospace;" size="2"><i>-O3 87 -g 88 -qrealsize=8 -Q -q64 -qmaxmem=-1 -qtune=pwr4 -qarch=pwr4 -qnosave 89 -qnoescape</i></font><tt><i><font face="Thorndale, serif"><font color="#000000">”</font></font></i></tt><font face="Thorndale, serif"><font color="#000000">. 90 Thus a PALM executable is generated using high level optimization (</font></font><font color="#000000"><span style="font-style: italic; font-family: monospace;">-O3</span></font><font face="Thorndale, serif"><font color="#000000">).</font></font><font color="#000000"><font face="Thorndale, serif"> 78 has the value<tt><font face="Thorndale, serif"> </font></tt>“<tt>-g -w -xT -O3 -cpp -r8 -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -convert little_endian<i><font face="Thorndale, serif"><font color="#000000">”</font></font></i></tt><font face="Thorndale, serif"><font color="#000000">. 79 Thus a PALM executable is generated using high level optimization (</font></font><font color="#000000"><span style="font-family: monospace;">-O3</span></font><font face="Thorndale, serif"><font color="#000000">).</font></font><font color="#000000"><font face="Thorndale, serif"> 91 80 For all other options 92 see the compiler manual on the IBM (</font><font size="2"><font face="Cumberland, monospace">man</font></font></font><tt><font color="#000000"> 93 <font size="2"><font face="Cumberland, monospace">f90</font></font></font></tt><font face="Thorndale, serif"><font color="#000000">). 81 see the compiler manual on the SGI (</font><font size="2"><font face="Cumberland, monospace">man</font></font></font><tt><font color="#000000"> <span style="font-family: Cumberland,monospace;">ifort</span></font></tt><font face="Thorndale, serif"><font color="#000000">). 94 82 Additional libraries 95 which the compiler should use are describedby83 which the compiler should use may have to be given by 96 84 the environment variable </font></font><tt><font size="2"><font face="Cumberland, monospace"><font color="#000000">lopts</font></font></font></tt><font color="#000000"> 97 <font face="Thorndale, serif">(loader options).</font></font><font color="#800000"> 98 </font><font face="Thorndale, serif"><font color="#000000">Here you 99 have to indicate a special IBM library (ESSL, </font></font>Engineering 100 and Scientific Subroutine Library)<font face="Thorndale, serif"><font color="#000000">.</font><font color="#800000"> 101 </font>On the 102 IBM-Regatta, all compiler options have also to be given to the linker.</font><font color="#000000"><font face="Thorndale, serif"> </font></font> 85 <font face="Thorndale, serif">(loader options).</font></font><font color="#000000"><font face="Thorndale, serif"> </font></font> 103 86 </p><p style="line-height: 100%;"><font color="#000000">Compiler and 104 87 loader options usually differ from computer to computer. In the … … 111 94 the so-called validity domain which follows in the appropriate 112 95 variable lines after the value of variables.</font></font><font color="#000000"> 113 In the example above the entry “</font><font color="#000000"><font style="font-size: 11pt; font-style: italic; font-family: monospace;" size="2"> ibmh</font></font><tt><font color="#000000"><span style="font-style: italic; font-family: monospace;">96 In the example above the entry “</font><font color="#000000"><font style="font-size: 11pt; font-style: italic; font-family: monospace;" size="2">lcsgih</font></font><tt><font color="#000000"><span style="font-style: italic; font-family: monospace;"> 114 97 </span></font><font color="#000000"><i><font style="font-size: 11pt;" size="2">parallel</font></i></font></tt><font color="#000000">” 115 98 stands for </font><tt><font style="font-size: 10pt;" size="2"><font color="#000000">fopts</font></font></tt><font color="#000000"> 116 99 and </font><tt><font style="font-size: 10pt;" size="2"><font color="#000000">lopts</font></font></tt><font color="#000000">. 117 100 These lines only become active if a run on the parallel computer of 118 the HLRN (</font><tt><i><font style="font-size: 10pt;" size="2"> ibmh</font></i></tt><font color="#000000">)101 the HLRN (</font><tt><i><font style="font-size: 10pt;" size="2">lcsgih</font></i></tt><font color="#000000">) 119 102 on several <font color="#000000">(</font><tt><i><font style="font-size: 10pt;" size="2"><font color="#000000">parallel</font></font></i></tt><font color="#000000">) 120 103 </font>processors is started. The activation takes place when you … … 124 107 (see below). This way, the validity domain can be limited also for all 125 108 other environment-variables. If no validity domain 126 is indicated then the given values of variables are valid onall109 is indicated then the given values of variables are valid for all 127 110 computers. </font> 128 111 </p><p style="line-height: 100%;">After the value … … 208 191 indicated within the mrun <b>call</b> by the option <a href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#Opt-r">-r</a>. 209 192 Thus a call of the form </p> 210 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - h ibmh -d abcde -r d3</font></pre></ul>193 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - h lcsgih -d abcde -r "d3#"</font></pre></ul> 211 194 <p style="line-height: 100%;">would lead to the fact that 212 195 the input … … 217 200 these files are to be copied of <b>mrun</b> then the call 218 201 must be</p> 219 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h ibmh -d abcde -r "d3 pr"</font></pre></ul>202 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h lcsgih -d abcde -r "d3# pr#"</font></pre></ul> 220 203 <p style="line-height: 100%;">Instead of the option -r you 221 204 can … … 225 208 file all file connection statements are actually executed then 226 209 the call must be: </p> 227 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h ibmh -d abcde -i d3 -o "d3 pr"</font></pre></ul>210 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -h lcsgih -d abcde -i "d3#" -o "d3# pr#"</font></pre></ul> 228 211 <p style="line-height: 100%;"><font color="#000000">The 229 212 names of the … … 258 241 <p style="line-height: 100%;">The example configuration 259 242 file also 260 instructs <b>mrun</b> to copy fouroutput files of the243 instructs <b>mrun</b> to copy three output files of the 261 244 model to 262 245 appropriate permanent files of the user at the end of the run. … … 266 249 are located, as well as a file with data of horizontally averaged 267 250 vertical profiles 268 (<tt><a href="chapter_3.4.html#PLOT1D_DATA">PLOT1D_DATA</a></tt>) 269 and an associated parameter file (<tt><a href="chapter_3.4.html#PLOT1D_PAR">PLOT1D_PAR</a></tt>), 270 which can be used as input files for the plot program <a href="http://www.muk.uni-hannover.de/institut/software/profil_beschreibung.html">profil</a>. 251 (<tt><a href="chapter_3.4.html#DATA_1D_PR_NETCDF">DATA_1D_PR_NETCDF</a></tt>). 271 252 A model run does not presuppose neither the file connection statements 272 253 for … … 283 264 execution of a 284 265 model run 285 on several processors on the IBM Regatta "hanni"of the HLRN must be266 on several processors on the SGI ICE of the HLRN must be 286 267 supplemented by the following options in each case: </p> 287 <ul > <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - K parallel -X … -t … -m …</font></pre></ul>268 <ul style="font-family: monospace;"> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun - K parallel -X ... -T ... -t ... -m ---</font></pre></ul> 288 269 <p style="line-height: 100%;">Only the indication of <tt><font style="font-size: 11pt;" size="2">-K 289 270 parallel</font></tt> causes the parallel execution of the … … 294 275 option <tt><font style="font-size: 10pt;" size="2">-X</font> 295 276 </tt><font size="2">(</font><font style="font-size: 10pt;" size="2">e.g. 296 </font><tt><font style="font-size: 10pt;" size="2">-X 297 4</font></tt><font size="2">).</font> 277 </font><tt><font style="font-size: 10pt;" size="2">-X 32</font></tt><font size="2">) and the number of tasks (processors) on onde node have to be given by option -T.</font> 298 278 In each case the permitted CPU time in seconds and the required memory 299 279 size in MB must be indicated by the options <tt><font style="font-size: 11pt;" size="2">-t</font></tt> 300 280 and <tt><font style="font-size: 11pt;" size="2">-m</font></tt>, 301 281 respectively<font face="Thorndale, serif">.</font> 302 Alternatively, thesecan be set by the appropriate environment282 Alternatively, memory and cpu-time demands can be set by the appropriate environment 303 283 variables in the configuration file: </p> 304 <blockquote style="line-height: 100%;"><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">% 305 memory <i>1630</i> ibmh parallel</font></font></tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace"><br> </font></font><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">% 306 cputime <i>1000</i> ibmh parallel</font></font></tt></blockquote> 284 <blockquote style="line-height: 100%;"><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">%memory <i>1500</i> lcsgih parallel</font></font></tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace"><br> </font></font><tt><font style="font-size: 10pt;" size="2"><font face="Cumberland, monospace">%cputime <i>1000</i> lcsgih parallel</font></font></tt></blockquote> 307 285 <p style="line-height: 100%;">The values indicated there 308 286 can be 309 287 overridden with the values of the options <tt><font style="font-size: 10pt;" size="2">-t</font></tt> 310 288 and/or <tt><font style="font-size: 10pt;" size="2">-m</font></tt>, 311 respectivly. </p>289 respectivly.</p><p style="line-height: 100%;"><span style="font-weight: bold;">Warning: When changing the coniguration file, please never use the TAB key!</span> </p> 312 290 <hr><p style="line-height: 100%;"><br> 313 291 <font color="#000080"><font color="#000080"><a href="chapter_3.1.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.3.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p><p style="line-height: 100%;"><i>Last change: </i> -
palm/trunk/DOC/app/chapter_4.2.html
r291 r336 10663 10663 10664 10664 10665 <tr> 10665 <tr><td style="vertical-align: top;"><a name="groundplate_color"></a><span style="font-weight: bold;">groundplate_color</span></td><td style="vertical-align: top;">R(3)</td><td style="vertical-align: top;"><span style="font-style: italic;">0.0, 0.6, 0.0</span></td><td style="vertical-align: top;">Color of the ground plate.<br><br>The color is given in RGB (red/green/blue) portions. The default color of the ground plate is green.</td></tr><tr><td style="vertical-align: top;"><span style="font-weight: bold;"><a name="isosurface_color"></a>isosurface_color</span></td><td style="vertical-align: top;">R(3,10)</td><td style="vertical-align: top;"><span style="font-style: italic;">0.9, 0.9, 0.9</span><br style="font-style: italic;"><span style="font-style: italic;">0.8, 0.1, 0.1</span><br style="font-style: italic;"><span style="font-style: italic;">0.1, 0.1, 0.8<br>0.1, 0.8, 0.1<br>0.6, 0.1, 0.1<br>0.1, 0.1, 0.6<br>0.1, 0.6, 0.1<br>0.4, 0.1, 0.1<br>0.1, 0.1, 0.4<br>0.1, 0.4, 0.1</span></td><td style="vertical-align: top;">Color of the isosurface(s).<br><br>Colors 10666 are given in RGB (red/green/blue) portions. By default, the first 10667 isosurface has a gray color, the second a red color, the third a blue 10668 color, etc.</td></tr><tr> 10666 10669 10667 10670 … … 10742 10745 cross sections see <a href="#data_output">data_output</a>. 10743 10746 The theshold value for which the isosurface is 10744 to be created can be defined with parameter <a href="#threshold">threshold</a>. <br>10747 to be created can be defined with parameter <a href="#threshold">threshold</a>. The isosurface color is controlled by parameter <a href="#isosurface_color">isosurface_color</a>.<br> 10745 10748 10746 10749 … … 10782 10785 10783 10786 10784 The declaration color charts to be10787 The declaration of color charts to be 10785 10788 used still have to be given "manually" in subroutine <a href="chapter_3.4.html#user_dvrp_coltab"><span style="font-family: monospace;">user_dvrp_coltab</span></a> 10786 (file <tt><font style="font-size: 11pt;" size="2">user_interface.f90</font></tt>). 10787 <br> 10788 10789 10790 A change of particle colors and/or particle diameters (e.g. 10791 according 10792 to the local characteristics of the flow field) to be used for the 10793 visualization, must be carried out by adding respective code extensions 10794 to <a href="chapter_3.4.html#user_particle_attributes"><tt><font style="font-size: 11pt;" size="2">user_particle_attributes</font></tt></a> 10795 (in file <tt><font style="font-size: 11pt;" size="2">user_interface.f90</font></tt>). </td> 10789 (file <tt><font style="font-size: 11pt;" size="2">user_dvrp_coltab.f90</font></tt>). 10790 10791 10792 </td> 10796 10793 10797 10794 … … 11067 11064 11068 11065 11069 </tr> 11066 </tr><tr><td style="vertical-align: top;"><span style="font-weight: bold;"><a name="topography_color"></a>topography_color</span></td><td style="vertical-align: top;">R(3)</td><td style="vertical-align: top;"><span style="font-style: italic;">0.8, 0.7, 0.6</span></td><td style="vertical-align: top;">Color of the topography.<br><br>The color is given in RGB (red/green/blue) portions. If topograpy is switched on (see <a href="chapter_4.1.html#topography">topography</a>), its default color is a kind of gray.</td></tr> 11070 11067 11071 11068 -
palm/trunk/DOC/app/chapter_4.5.7.html
r62 r336 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM 4 chapter 4.5.7</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041029;14344622"> <meta name="CHANGED" content="20050119;9531085"> <meta name="KEYWORDS" content="parallel LES model"> <style> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM chapter 4.5.7</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041029;14344622"> <meta name="CHANGED" content="20050119;9531085"> <meta name="KEYWORDS" content="parallel LES model"> <style> 5 4 <!-- 6 5 @page { size: 21cm 29.7cm } 7 6 --> 8 7 </style></head> 9 10 8 <body style="direction: ltr;" lang="en-US"><h4 style="line-height: 100%;"><font size="4">4.5.7 11 9 Plots of 12 10 isosurfaces, 2d cross sections and particles with dvrp</font></h4> 13 <p style="line-height: 100%;">The <span style="font-weight: bold;">dvrp</span> 14 software developed by the RRZN 15 (Stephan Olbrich, Carsten Chmielewski) allows a creation of plot 16 sequences with PALM, 17 which can be animated via a special plugin for internet browsers. With 18 suitable graphic hardware even stereoscopic views are 19 possible. <br> 11 <p style="line-height: 100%;"><span style="font-weight: bold;">Preliminary note:</span></p><p style="line-height: 100%;">Usage of the <span style="font-weight: bold;">dvrp</span>-software requires installation of additional software components (dvrp-library, streaming-server, browser-plugin) which are <span style="font-weight: bold;">not</span> 12 part of the PALM distribution. Currently (May 2009), this software is 13 only available on the the HLRN/IMUK system and partly on RIAM's NEC 14 system. If you are interested in using <span style="font-weight: bold;">dvrp</span> on your system, please contact the PALM developers.</p><br><span style="font-weight: bold;">General remarks:</span><p style="line-height: 100%;">The <span style="font-weight: bold;">dvrp</span> 15 software was originally developed by the RRZN 16 (Stephan Olbrich, Carsten Chmielewski) and is meanwhile continuosly developed and improved under the name <span style="font-weight: bold;">dsvr</span> by the University of Düsseldorf (Prof. Stephan Olbrich, see webpage of the <a href="http://www.dsvr-software.de/">dsvr-software</a>). It allows to create 3d-animations with PALM, 17 which can be displayed via a special plugin for internet browsers. With 18 suitable graphic hardware (e.g. NVIDIA quattro FX cards) even stereoscopic views are 19 possible.</p><p style="line-height: 100%;"> 20 20 In contrast to the other kinds of visualization output realized 21 in PALM ( <b>profil</b>, <b>iso2d</b> and <b>AVS</b>),21 in PALM (1d-, 2d-, 3d-NetCDF output), 22 22 where the data 23 is output in a format suitable for the plot software, the creation of 24 plots via <span style="font-weight: bold;">dvrp</span> 23 is output in a format suitable for many kinds of post-processing graphic software, the creation of animations via <span style="font-weight: bold;">dvrp</span> 25 24 software is 26 25 integrated in PALM, i.e. respective routines are directly called within … … 46 45 the main focus of the BMBF project "Application of 47 46 tele-immersion in long-distance networks" (2001-2002), 48 which was a joint project of RRZN, ZIB and IMUK. This work is currently49 continued by RRZN in the new DFG-funded project "EVITA- Untersuchung47 which was a joint project of RRZN, ZIB and IMUK. This work was 48 continued by RRZN in the DFG-funded project "<a href="http://www.rrzn.uni-hannover.de/evita.html">EVITA</a> - Untersuchung 50 49 effizienter 51 <br>Methoden zur visuellen und haptischen tele-immersiven50 Methoden zur visuellen und haptischen tele-immersiven 52 51 Exploration 53 <br>komplexer Volumen- und Strömungsdaten aus52 komplexer Volumen- und Strömungsdaten aus 54 53 parallelisierten, 55 <br>dynamischen 3D-Simulationen" (2005-2007). </p>56 <p style="line-height: 100%;"> The calls of the <span style="font-weight: bold;">dvrp</span> routines are54 dynamischen 3D-Simulationen" (2005-2007). </p> 55 <p style="line-height: 100%;"></p><p style="line-height: 100%;"><span style="font-weight: bold;">Using dvrp with PALM:</span></p><p style="line-height: 100%;">The calls of the <span style="font-weight: bold;">dvrp</span> routines are 57 56 contained within a 58 57 PALM software package (see chapter <a href="chapter_3.7.html">3.7</a>). 59 To use this package, the additional option <tt><fontsize="2">-p60 “dvrp_graphics”</font></tt>61 has to be given in the <b>mrun</b> call. This58 To use this package, the additional option<tt style="font-family: monospace;"> </tt><font style="font-family: Courier New,Courier,monospace;" size="2">-p 59 <span style="font-family: Helvetica,Arial,sans-serif;">“</span>dvrp_graphics<span style="font-family: Helvetica,Arial,sans-serif;">”</span></font><span style="font-family: monospace;"> 60 </span>has to be given in the <b>mrun</b> call. This 62 61 automatically links the 63 62 required libraries. … … 67 66 graphic 68 67 data are not output to local files but directly to a special remote 69 computer which is defined via the package parameter <a href="chapter_4.2.html#dvrp_host">dvrp_host</a>. 70 The 71 default values of the dvrp parameters are cause the output to be 72 directed to a so-called streaming server at the 68 computer which is defined via the package parameter <a href="chapter_4.2.html#dvrp_host">dvrp_host</a>. If the default values of the dvrp parameters are used, data are send to a so-called <span style="font-style: italic;">streaming server</span> at the 73 69 RRZN. Apart from graphic data an additional html file is created, which 74 can be used by an internet browser to view the data (a special <span style="font-weight: bold;">dvrp</span> plugin is 75 needed). </p> 76 <p style="line-height: 100%;">Since July 2001, the basic 77 functionality 78 of the <span style="font-weight: bold;">dvrp</span> 79 software is 80 installed in PALM and steerable via the 81 package parameters. However, some code modifications may still need to 82 be done by the user (e.g. in 83 the subroutine <tt><font style="font-size: 10pt;" size="2">plot_dvrp</font></tt> 84 in order to define suitable color tables). 85 <br>For further detailed information please ask Siegfried Raasch. 86 </p> 70 can be opened by an internet browser to view the data (a special <span style="font-weight: bold;">dvrp</span> plugin is required for this).</p><p style="line-height: 100%;"></p><p style="line-height: 100%;"><span style="font-weight: bold;">Quickstart guide for using dvrp on the HLRN/IMUK-System (May 2009):</span> </p> 71 <ol><li> 72 Add the following define statements for environment variables to the configuration file (<span style="font-family: Courier New,Courier,monospace;">.mrun.config</span>):<br><br><span style="font-family: Courier New,Courier,monospace;"></span><span style="font-family: Courier New,Courier,monospace;"> %dvr_inc 73 -I/home/h/niksiraa/dvr_mvapich2/lib 74 lcsgih parallel</span><br style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;"> %dvr_lib -L/home/h/niksiraa/dvr_mvapich2/lib:-lDVRP2:-lftp lcsgih 75 parallel</span><br><br><br></li><li>Add the dvrp-steering parameters to your NAMELIST-parameter file, e.g.<br><br><span style="font-family: Courier New,Courier,monospace;"> &d3par end_time = 3600.0,<br> ... /<br><br> &dvrp_graphics_par dvrp_username = '<replace by your IMUK username>',<br> dvrp_host = '130.75.105.2',<br> 76 77 dvrp_directory = '<replace by a name of your choice>', ... /<br></span><br>For other dvrp-parameters see <a href="chapter_4.2.html#Paketparameter">chapter 4.2</a>. An example parameter file can be found in directory <span style="font-family: Courier New,Courier,monospace;">..../trunk/EXAMPLES/dvr_building</span>.<span style="font-family: Courier New,Courier,monospace;"><br><br></span></li><li>Submit the job with <span style="font-weight: bold;">mrun</span>-command<br><br><span style="font-family: Courier New,Courier,monospace;"> mrun .... -p dvrp_graphics ....</span><br><br></li><li><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;">After the job has finished, the dvrp-output can be found on the IMUK-cluster in a subdirectory under <span style="font-family: Courier New,Courier,monospace;">/data/raasch/Dvrp_daten</span>. The name of the subdirectory is determined by the dvrp-parameter <a href="chapter_4.2.html#dvrp_directory">dvrp_directory</a> (see above), i.e. if the user has set <span style="font-family: Courier New,Courier,monospace;">dvrp_directory</span> = <span style="font-style: italic;">'movie_1'</span>, the dvrp-data are stored under <span style="font-family: Courier New,Courier,monospace;">/data/raasch/Dvrp_daten/movie_1</span>.<br><br></span></span></li><li><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;">Change to this subdirectory (e.g. </span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;"><span style="font-family: Courier New,Courier,monospace;">/data/raasch/Dvrp_daten/movie_1</span></span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;">) and enter the command<br><br><span style="font-family: Courier New,Courier,monospace;"> process_dvr_output</span><br><br>It will create a file with name <span style="font-family: Courier New,Courier,monospace;">all_streams_streaming.html</span>.<br><br></span></span></li><li><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;">Call the opera-browser (i.e. enter the command <span style="font-family: Courier New,Courier,monospace;">opera</span>) and open the file </span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;"><span style="font-family: Courier New,Courier,monospace;">all_streams_streaming.html</span>.</span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Times New Roman,Times,serif;"></span><br><br></span>A complete example parameter file for ... can be found under .../trunk/.....<br></li></ol><span style="font-weight: bold;">Further features:<br></span>The script<span style="font-family: Courier New,Courier,monospace;"> process_dvr_output </span>has additional options:<br><br><span style="font-weight: bold; font-family: Courier New,Courier,monospace;">-s</span> : <span style="font-weight: bold;">create sequence output</span>. 78 All streams (and static scenes) are collected to one sequence (one 79 static scene), which can be displayed with a browser without using the 80 streaming server (the so-called sequence mode). This allows e.g. to 81 show animations on a notebook without beeing connected to the internet. 82 When the script is called with this option, the sequence is generated 83 in subdirectory sequence_data. Copy this subdirectory and the file 84 all_streams_sequence.html to a directory on your local computer and 85 open the file all_streams_sequence.html with your browser. For this, 86 you will need to install the the dvr-plugin (see webpage of the <a href="http://www.dsvr-software.de/">dsvr-software</a>) on your local computer, which is also available for Windows.<br><br><span style="font-weight: bold;">-a</span> : <span style="font-weight: bold;">acceleration factor</span>. If, in case of sequence mode, the performance of the animation is to slow, you can accelerate it. E.g., by using <span style="font-family: Courier New,Courier,monospace;">"-a 2</span>", only every second frame of the original streams will be used for the sequence.<br><br><br><br><br><span style="font-weight: bold;">Current limitations (May 09):</span><br>Only a special opera-version on host "bora" can be used. Log-in on "bora" and call <span style="font-family: Courier New,Courier,monospace;">/usr/local/bin/opera</span>. <span style="font-weight: bold;">Before that(!!!)</span>, enter the command "<span style="font-family: Courier New,Courier,monospace;">export LD_PRELOAD=libXm.so</span>" ! 87 87 <hr><p style="line-height: 100%;"><br> 88 88 <font color="#000080"><font color="#000080"><a href="chapter_4.5.6.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_4.6.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p><p style="line-height: 100%;"> <i>Last -
palm/trunk/DOC/app/chapter_4.6.html
r305 r336 6379 6379 6380 6380 6381 <tr> 6381 <tr><td align="undefined" valign="undefined"><a href="chapter_4.2.html#groundplate_color"><span style="font-weight: bold;">groundplate_color</span></a></td><td align="undefined" valign="undefined">P</td><td align="undefined" valign="undefined">R(3)</td><td align="undefined" valign="undefined"><span style="font-style: italic;">0.0, 0.6, 0.0</span></td><td align="undefined" valign="undefined">Color of the ground plate</td></tr><tr> 6382 6382 6383 6383 … … 6634 6634 6635 6635 6636 <tr> 6636 <tr><td align="undefined" valign="undefined"><a href="chapter_4.2.html#isosurface_color"><span style="font-weight: bold;">isosurface_color</span></a></td><td align="undefined" valign="undefined">P</td><td align="undefined" valign="undefined">R(3,10)</td><td align="undefined" valign="undefined"><span style="font-style: italic;">0.9, 0.9, 0.9</span><br style="font-style: italic;"><span style="font-style: italic;">0.8, 0.1, 0.1</span><br style="font-style: italic;"><span style="font-style: italic;">......</span></td><td align="undefined" valign="undefined">Color of the isosurface(s).</td></tr><tr> 6637 6637 6638 6638 … … 13789 13789 13790 13790 13791 <tr><td style="vertical-align: top;"><a style="font-weight: bold;" href="chapter_4.1.html#topography_grid_convention">topography_grid_convention</a></td><td style="vertical-align: top;">I</td><td style="vertical-align: top;">C * 11</td><td><span style="font-style: italic;">default depends on value of <a href="chapter_4.1.html#topography">topography</a>; see text for details</span><span style="font-style: italic;"></span></td><td style="vertical-align: top;">Convention for defining the topography grid.</td></tr><tr>13791 <tr><td align="undefined" valign="undefined"><a href="chapter_4.2.html#topography_color"><span style="font-weight: bold;">topography_color</span></a></td><td align="undefined" valign="undefined">P</td><td align="undefined" valign="undefined">R(3)</td><td align="undefined" valign="undefined"><span style="font-style: italic;">0.8, 0.7, 0.6</span></td><td align="undefined" valign="undefined">Color of the topography.</td></tr><tr><td style="vertical-align: top;"><a style="font-weight: bold;" href="chapter_4.1.html#topography_grid_convention">topography_grid_convention</a></td><td style="vertical-align: top;">I</td><td style="vertical-align: top;">C * 11</td><td><span style="font-style: italic;">default depends on value of <a href="chapter_4.1.html#topography">topography</a>; see text for details</span><span style="font-style: italic;"></span></td><td style="vertical-align: top;">Convention for defining the topography grid.</td></tr><tr> 13792 13792 13793 13793 -
palm/trunk/DOC/app/chapter_5.0.html
r290 r336 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM 4 chapter 5.0</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041103;12380720"> <meta name="CHANGED" content="20041123;15532356"> <meta name="KEYWORDS" content="parallel LES model"> <style> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM chapter 5.0</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041103;12380720"> <meta name="CHANGED" content="20041123;15532356"> <meta name="KEYWORDS" content="parallel LES model"> <style> 5 4 <!-- 6 5 @page { size: 21cm 29.7cm } … … 170 169 identifier></span>. 171 170 You only have to uncomment lines for those hosts on which you intend to 172 use PALM.</font></p><p style="line-height: 100%;"><font color="#000000">Beside the default configuration file</font><font style="font-family: Courier New,Courier,monospace;" color="#000000"> .mrun.config.default</font><font color="#000000">, the directory<span style="font-family: Courier New,Courier,monospace;"> 171 use PALM.</font></p><p style="line-height: 100%;"><font color="#000000"><span style="font-weight: bold;">Warning: 172 When editing the configuration file, please NEVER use the TAB key. 173 Otherwise, very confusing errors in mrun execution may occur.</span></font></p><p style="line-height: 100%;"><font color="#000000">Beside the default configuration file</font><font style="font-family: Courier New,Courier,monospace;" color="#000000"> .mrun.config.default</font><font color="#000000">, the directory<span style="font-family: Courier New,Courier,monospace;"> 173 174 trunk/SCRIPTS </span>contains additional configuration files 174 175 which are already adjusted for special hosts:<span style="font-family: Courier New,Courier,monospace;"> -
palm/trunk/SCRIPTS/process_dvr_output
r262 r336 14 14 # Variable declarations + default values 15 15 camera=false 16 create_config_file=false 16 17 create_sequence_output=false 17 18 data_catalog=`pwd` … … 19 20 file_identifier=all_streams 20 21 groundplate=false 21 palm_run_identifier=" "22 palm_run_identifier="unknown_run" 22 23 topography=false 23 24 24 typeset -i i j nstream nscenes25 typeset -i a acceleration=1 k i j nstream nscenes 25 26 26 27 27 28 # Read shellscript options 28 while getopts : d:f:ls option29 while getopts :a:cd:f:ls option 29 30 do 30 31 case $option in 32 (a) acceleration=$OPTARG;; 33 (c) create_config_file=true;; 31 34 (d) data_catalog=$OPTARG;; 32 35 (f) file_identifier=$OPTARG;; … … 40 43 41 44 45 # Create the config file for the streaming server; do nothing else 46 if [[ $create_config_file = true ]] 47 then 48 cp ${PALM_BIN}/.dvrserver.config . 49 50 # Entering the BASEDIR, UID and GID into this file 51 user_id=`id -u` 52 group_id=`id -g` 53 54 # data directory is always the current working directory 55 sed "s/<replace by dvr data directory>/./g" .dvrserver.config > .dvrserver.1 56 sed "s/<replace by user id>/$user_id/g" .dvrserver.1 > .dvrserver.2 57 sed "s/<replace by group id>/$group_id/g" .dvrserver.2 > .dvrserver.3 58 mv .dvrserver.3 .dvrserver.config 59 rm .dvrserver.1 .dvrserver.2 60 exit 61 fi 62 63 42 64 # Find out the PALM run identifier 43 65 if [[ -f CPU_MEASURES ]] … … 45 67 palm_run_identifier=`head -1 CPU_MEASURES` 46 68 fi 69 47 70 48 71 # Process the streaming server output … … 172 195 173 196 # Change path to the current file identifier 174 sed "s/DATA_DVR/${file_identifier}_dvr/g" $dvr_file > tmp_file 197 # Remove path because BASEDIR of streaming server is set to "." 198 # sed "s/DATA_DVR/${file_identifier}_dvr/g" $dvr_file > tmp_file 199 sed "s/DATA_DVR\///g" $dvr_file > tmp_file 175 200 mv tmp_file $dvr_file 176 201 177 202 178 203 # If there is a dvr configuration file, set the BASEDIR to the parent 179 # directory of the above given path 204 # directory of the above given path (i.e. ".") 180 205 if [[ -f .dvrserver.config ]] 181 206 then 182 207 old_path=`grep BASEDIR .dvrserver.config` 183 sed "s&${old_path}&BASEDIR=. .&g" .dvrserver.config > .dvrserver.config.new208 sed "s&${old_path}&BASEDIR=.&g" .dvrserver.config > .dvrserver.config.new 184 209 mv .dvrserver.config.new .dvrserver.config 185 210 fi … … 326 351 then 327 352 353 rm -rf sequence_data 328 354 mkdir sequence_data 329 355 … … 347 373 # Now, merge the data, frame by frame 348 374 (( j = 0 )) 375 (( k = 0 )) 376 (( a = 0 )) 349 377 while (( j < ${frames[1]} )) 350 378 do 351 379 352 nframe=`printf "%05d" $j` 353 354 (( i = 0 )) 355 while (( i < nstream )) 356 do 357 (( i = i + 1 )) 358 cat ${streamname[$i]}/$nframe.dvr >> sequence_data/$nframe.dvr 359 done 380 rframe=`printf "%05d" $j` 381 382 if (( a == 0 )) 383 then 384 385 wframe=`printf "%05d" $k` 386 (( k = k + 1 )) 387 388 (( i = 0 )) 389 while (( i < nstream )) 390 do 391 (( i = i + 1 )) 392 cat ${streamname[$i]}/$rframe.dvr >> sequence_data/$wframe.dvr 393 done 394 395 396 fi 397 398 (( a = a + 1 )) 399 if (( a == acceleration )) 400 then 401 (( a = 0 )) 402 fi 360 403 361 404 (( j = j + 1 )) … … 368 411 sed "s/camera.dvr/static_scenes.dvr/g" tmp1.html > tmp2.html 369 412 sed "s&${streamname[1]}&sequence_data&g" tmp2.html > tmp3.html 413 sed "s/;0-0/;0-$wframe/g" tmp3.html > tmp4.html 370 414 if [[ "$palm_run_identifier" = "" ]] 371 415 then 372 cp tmp 3.html ${file_identifier}_sequence.html416 cp tmp4.html ${file_identifier}_sequence.html 373 417 else 374 sed "s&DATA_DVR/sequence_data/\*\*\*\*\*.dvr (DVR 3D Sequence)&DVR 3D sequence generated by $palm_run_identifier&g" tmp 3.html > ${file_identifier}_sequence.html375 fi 376 rm tmp1.html tmp2.html tmp3.html 418 sed "s&DATA_DVR/sequence_data/\*\*\*\*\*.dvr (DVR 3D Sequence)&DVR 3D sequence generated by $palm_run_identifier&g" tmp4.html > ${file_identifier}_sequence.html 419 fi 420 rm tmp1.html tmp2.html tmp3.html tmp4.html 377 421 378 422 printf " data for using sequence mode generated" -
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r335 r336 78 78 skip_particles_for_tail (init_particles) 79 79 80 Value of vertical_particle_advection may differ for each particle group 81 (advec_particles, header, modules) 82 80 83 First constant in array den also defined as type double. (eqn_state_seawater) 81 84 … … 115 118 on. (time_integration) 116 119 120 Bugfix: qsws was calculated in case of constant heatflux = .FALSE. (prandtl_fluxes) 121 122 Bugfix: averaging along z is not allowed for 2d quantities (e.g. u* and z0) (data_output_2d) 123 117 124 Typographical errors (netcdf) 118 125 … … 122 129 Small bugfix concerning 3d 64bit netcdf output format (header) 123 130 131 Bugfix: dt_fixed removed from the restart file, because otherwise, no change 132 from a fixed to a variable timestep would be possible in restart runs. 133 (read_var_list, write_var_list) 124 134 125 advec_particles, check_parameters, cpu_log, header, init_3d_model, init_particles, modules, netcdf, time_integration135 advec_particles, check_parameters, cpu_log, data_output_2d, header, init_3d_model, init_particles, modules, netcdf, prandtl_fluxes, read_var_list, time_integration, write_var_list -
palm/trunk/SOURCE/advec_particles.f90
r276 r336 5 5 ! ----------------- 6 6 ! Particle attributes are set with new routine set_particle_attributes. 7 ! Vertical particle advection depends on the particle group. 7 8 ! Output of NetCDF messages with aid of message handling routine. 8 9 ! Output of messages replaced by message handling routine … … 898 899 !-- Same procedure for interpolation of the w velocity-component (adopt 899 900 !-- index i from v velocity-component) 900 IF ( vertical_particle_advection ) THEN901 IF ( vertical_particle_advection(particles(n)%group) ) THEN 901 902 j = particles(n)%y * ddy 902 903 k = particles(n)%z / dz + offset_ocean_nzt_m1 -
palm/trunk/SOURCE/data_output_2d.f90
r291 r336 6 6 ! simulated_time in NetCDF output replaced by time_since_reference_point. 7 7 ! Output of NetCDF messages with aid of message handling routine. 8 ! Bugfix: averaging along z is not allowed for 2d quantities (e.g. u* and z0) 8 9 ! Output of messages replaced by message handling routine. 9 10 ! … … 578 579 ! 579 580 !-- If required, carry out averaging along z 580 IF ( section(is,s) == -1 ) THEN581 IF ( section(is,s) == -1 .AND. .NOT. two_d ) THEN 581 582 582 583 local_2d = 0.0 -
palm/trunk/SOURCE/eqn_state_seawater.f90
r231 r336 76 76 ! 77 77 !-- Pressure is needed in dbar 78 p1 = hyp(0) * 1E-4 78 ! p1 = hyp(0) * 1E-4 79 ! p1 = 0.0 80 p1 = hyp(k) * 1E-4 79 81 p2 = p1 * p1 80 82 p3 = p2 * p1 … … 132 134 ! 133 135 !-- Pressure is needed in dbar 134 p1 = hyp(0) * 1E-4 136 ! p1 = hyp(0) * 1E-4 137 ! p1 = 0.0 138 p1 = hyp(k) * 1E-4 135 139 p2 = p1 * p1 136 140 p3 = p2 * p1 -
palm/trunk/SOURCE/header.f90
r328 r336 7 7 ! Coupling with independent precursor runs. 8 8 ! Output of messages replaced by message handling routine. 9 ! Output of cluster_size9 ! Output of several additional dvr parameters 10 10 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, 11 11 ! canyon_wall_south, conserve_volume_flow_mode, dp_external, dp_level_b, … … 108 108 109 109 INTEGER :: av, bh, blx, bly, bxl, bxr, byn, bys, ch, cwx, cwy, cxl, cxr, & 110 cyn, cys, i, ihost, io, j, l, ll, m pi_type110 cyn, cys, i, ihost, io, j, l, ll, m, mpi_type 111 111 REAL :: cpuseconds_per_simulated_second 112 112 … … 1019 1019 i = 1 1020 1020 l = 0 1021 m = 0 1021 1022 DO WHILE ( mode_dvrp(i) /= ' ' ) 1022 1023 IF ( mode_dvrp(i)(1:10) == 'isosurface' ) THEN … … 1024 1025 l = l + 1 1025 1026 IF ( do3d(0,j) /= ' ' ) THEN 1026 WRITE ( io, 361 ) TRIM( do3d(0,j) ), threshold(l) 1027 WRITE ( io, 361 ) TRIM( do3d(0,j) ), threshold(l), & 1028 isosurface_color(:,l) 1027 1029 ENDIF 1028 1030 ELSEIF ( mode_dvrp(i)(1:6) == 'slicer' ) THEN 1029 1031 READ ( mode_dvrp(i), '(6X,I2)' ) j 1030 IF ( do2d(0,j) /= ' ' ) WRITE ( io, 362 ) TRIM( do2d(0,j) ) 1032 m = m + 1 1033 IF ( do2d(0,j) /= ' ' ) THEN 1034 WRITE ( io, 362 ) TRIM( do2d(0,j) ), & 1035 slicer_range_limits_dvrp(:,m) 1036 ENDIF 1031 1037 ELSEIF ( mode_dvrp(i)(1:9) == 'particles' ) THEN 1032 WRITE ( io, 363 ) 1038 WRITE ( io, 363 ) dvrp_psize 1039 IF ( particle_dvrpsize /= 'none' ) THEN 1040 WRITE ( io, 364 ) 'size', TRIM( particle_dvrpsize ), & 1041 dvrpsize_interval 1042 ENDIF 1043 IF ( particle_color /= 'none' ) THEN 1044 WRITE ( io, 364 ) 'color', TRIM( particle_color ), & 1045 color_interval 1046 ENDIF 1033 1047 ENDIF 1034 1048 i = i + 1 1035 1049 ENDDO 1036 1050 1037 IF ( TRIM( topography ) /= 'flat' .AND. cluster_size > 1 ) THEN 1038 WRITE ( io, 364 ) cluster_size 1051 WRITE ( io, 365 ) groundplate_color, superelevation_x, & 1052 superelevation_y, superelevation, clip_dvrp_l, & 1053 clip_dvrp_r, clip_dvrp_s, clip_dvrp_n 1054 1055 IF ( TRIM( topography ) /= 'flat' ) THEN 1056 WRITE ( io, 366 ) topography_color 1057 IF ( cluster_size > 1 ) THEN 1058 WRITE ( io, 367 ) cluster_size 1059 ENDIF 1039 1060 ENDIF 1040 1061 … … 1301 1322 IF ( particles_per_point > 1 ) WRITE ( io, 489 ) particles_per_point 1302 1323 WRITE ( io, 495 ) total_number_of_particles 1303 IF ( .NOT. vertical_particle_advection ) WRITE ( io, 482 )1304 1324 IF ( maximum_number_of_tailpoints /= 0 ) THEN 1305 1325 WRITE ( io, 483 ) maximum_number_of_tailpoints … … 1343 1363 WRITE ( io, 493 ) psl(i), psr(i), pss(i), psn(i), psb(i), pst(i), & 1344 1364 pdx(i), pdy(i), pdz(i) 1365 IF ( .NOT. vertical_particle_advection(i) ) WRITE ( io, 482 ) 1345 1366 ENDDO 1346 1367 … … 1602 1623 ' Directory: ',A// & 1603 1624 ' The sequence contains:') 1604 361 FORMAT (' Isosurface of ',A,' Threshold value: ', E12.3) 1605 362 FORMAT (' Sectional plane ',A) 1606 363 FORMAT (' Particles') 1607 364 FORMAT (/' Polygon reduction for topography: cluster_size = ', I1) 1625 361 FORMAT (' Isosurface of ',A,' Threshold value: ', E12.3/ & 1626 ' Isosurface color: (',F4.2,',',F4,2,',',F4.2,') (R,G,B)') 1627 362 FORMAT (' Slicer plane ',A/ & 1628 ' Slicer limits: [',F6.2,',',F6.2,']') 1629 363 FORMAT (' Particles'/ & 1630 ' particle size: ',F7.2,' m') 1631 364 FORMAT (' particle ',A,' controlled by "',A,'" with interval [', & 1632 F6.2,',',F6.2,']') 1633 365 FORMAT (/' Groundplate color: (',F4.2,',',F4,2,',',F4.2,') (R,G,B)'/ & 1634 ' Superelevation along (x,y,z): (',F4.1,',',F4.1,',',F4.1, & 1635 ')'/ & 1636 ' Clipping limits: from x = ',F9.1,' m to x = ',F9.1,' m'/ & 1637 ' from y = ',F9.1,' m to y = ',F9.1,' m') 1638 366 FORMAT (/' Topography color: (',F4.2,',',F4,2,',',F4.2,') (R,G,B)') 1639 367 FORMAT (' Polygon reduction for topography: cluster_size = ', I1) 1608 1640 #endif 1609 1641 #if defined( __spectra ) … … 1715 1747 ' Particles are sorted every ',F9.1,' s'/) 1716 1748 481 FORMAT (' Particles have random start positions'/) 1717 482 FORMAT (' Particles are advected only horizontally'/)1749 482 FORMAT (' Particles are advected only horizontally'/) 1718 1750 483 FORMAT (' Particles have tails with a maximum of ',I3,' points') 1719 1751 484 FORMAT (' Number of tails of the total domain: ',I10/ & -
palm/trunk/SOURCE/init_ocean.f90
r139 r336 24 24 USE control_parameters 25 25 USE eqn_state_seawater_mod 26 USE pegrid 26 27 USE grid_variables 27 28 USE indices … … 29 30 IMPLICIT NONE 30 31 31 INTEGER :: k 32 INTEGER :: k, n 32 33 33 34 REAL :: sa_l, pt_l, rho_l 35 36 REAL, DIMENSION(nzb:nzt+1) :: rho_init 34 37 35 38 ALLOCATE( hyp(nzb:nzt+1) ) … … 45 48 46 49 hyp(nzt) = hyp(nzt+1) + rho_surface * g * 0.5 * dzu(nzt+1) 47 rho_ reference = rho_surface * 0.5 * dzu(nzt+1)50 rho_init(nzt) = rho_surface 48 51 49 52 DO k = nzt-1, 0, -1 53 hyp(k) = hyp(k+1) + rho_surface * g * dzu(k) 54 ENDDO 50 55 51 sa_l = 0.5 * ( sa_init(k) + sa_init(k+1) ) 52 pt_l = 0.5 * ( pt_init(k) + pt_init(k+1) ) 56 IF ( myid == 0 ) THEN 57 print*,'hydro pres using rho_surface' 58 DO k = nzt+1, 0, -1 59 print*, 'k = ', k, ' hyp = ', hyp(k) 60 ENDDO 61 print*, ' ' 62 ENDIF 53 63 54 rho_l = eqn_state_seawater_func( hyp(k+1), pt_l, sa_l )64 DO n = 1, 5 55 65 56 hyp(k) = hyp(k+1) + rho_l * g * dzu(k+1) 57 rho_reference = rho_reference + rho_l * dzu(k+1) 66 rho_reference = rho_surface * 0.5 * dzu(nzt+1) 67 68 DO k = nzt-1, 0, -1 69 70 sa_l = 0.5 * ( sa_init(k) + sa_init(k+1) ) 71 pt_l = 0.5 * ( pt_init(k) + pt_init(k+1) ) 72 73 rho_init(k) = eqn_state_seawater_func( hyp(k), pt_l, sa_l ) 74 75 rho_reference = rho_reference + rho_init(k) * dzu(k+1) 76 77 ENDDO 78 79 rho_reference = rho_reference / ( zw(nzt) - zu(nzb) ) 80 81 DO k = nzt-1, 0, -1 82 hyp(k) = hyp(k+1) + g * 0.5 * ( rho_init(k) + rho_init(k+1 ) ) * & 83 dzu(k+1) 84 ENDDO 85 86 IF ( myid == 0 ) THEN 87 print*,'hydro pres / rho n = ', n 88 DO k = nzt+1, 0, -1 89 print*, 'k = ', k, ' hyp = ', hyp(k), ' rho = ', rho_init(k) 90 ENDDO 91 print*, ' ' 92 ENDIF 58 93 59 94 ENDDO 60 61 rho_reference = rho_reference / ( zw(nzt) - zu(nzb) )62 95 63 96 ! … … 70 103 71 104 prho_reference = prho_reference + dzu(k+1) * & 72 eqn_state_seawater_func( hyp(0), pt_l, sa_l )105 eqn_state_seawater_func( 0.0, pt_l, sa_l ) 73 106 74 107 ENDDO -
palm/trunk/SOURCE/init_particles.f90
r277 r336 54 54 USE arrays_3d 55 55 USE control_parameters 56 USE dvrp_variables 56 57 USE grid_variables 57 58 USE indices … … 441 442 442 443 ! 444 !-- Particles will probably become none-uniform, if their size and color 445 !-- will be determined by flow variables 446 IF ( particle_color /= 'none' .OR. particle_dvrpsize /= 'none' ) THEN 447 uniform_particles = .FALSE. 448 ENDIF 449 450 ! 443 451 !-- Set the beginning of the particle tails and their age 444 452 IF ( use_particle_tails ) THEN -
palm/trunk/SOURCE/modules.f90
r318 r336 10 10 ! interval_*_dvrp_prt, isosurface_color, particle_color, particle_dvrpsize, 11 11 ! topography color in dvrp_variables, 12 ! vertical_particle_advection is a 1d-array, 12 13 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, 13 14 ! canyon_wall_south, conserve_volume_flow_mode, coupling_start_time, … … 971 972 uniform_particles = .TRUE., use_particle_tails = .FALSE., & 972 973 use_sgs_for_particles = .FALSE., & 973 vertical_particle_advection = .TRUE., &974 974 write_particle_statistics = .FALSE. 975 976 LOGICAL, DIMENSION(max_number_of_particle_groups) :: & 977 vertical_particle_advection = .TRUE. 978 975 979 LOGICAL, DIMENSION(:), ALLOCATABLE :: particle_mask, tail_mask 976 980 -
palm/trunk/SOURCE/package_parin.f90
r284 r336 52 52 dt_dvrp, dvrpsize_interval, dvrp_directory, & 53 53 dvrp_file, dvrp_host, dvrp_output, & 54 dvrp_password, dvrp_ username,&54 dvrp_password, dvrp_psize, dvrp_username, & 55 55 groundplate_color, isosurface_color, & 56 56 mode_dvrp, particle_color, particle_dvrpsize,& … … 67 67 density_ratio, radius, dt_dopts, & 68 68 dt_min_part, dt_prel, dt_sort_particles, & 69 dt_write_particle_data, dvrp_psize,&69 dt_write_particle_data, & 70 70 end_time_prel, initial_weighting_factor, & 71 71 maximum_number_of_particles, & -
palm/trunk/SOURCE/read_var_list.f90
r328 r336 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! dt_fixed is read into a dummy variable. 6 7 ! Output of messages replaced by message handling routine. 7 8 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, … … 77 78 CHARACTER (LEN=10) :: binary_version, version_on_file 78 79 CHARACTER (LEN=30) :: variable_chr 80 81 LOGICAL :: ldum 79 82 80 83 … … 266 269 READ ( 13 ) drag_coefficient 267 270 CASE ( 'dt_fixed' ) 268 READ ( 13 ) dt_fixed 271 READ ( 13 ) ldum ! restart files created before rev 333 272 ! contained dt_fixed by mistake; it is still 273 ! read here in order to allow usage of these 274 ! older restart files; can be removed in a 275 ! later version 269 276 CASE ( 'dt_pr_1d' ) 270 277 READ ( 13 ) dt_pr_1d -
palm/trunk/SOURCE/write_var_list.f90
r291 r336 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! bugfix: -dt_fixed, because otherwise, restart runs cannot change from a 7 ! fixed to a free timestep. 6 8 ! +canyon_height, canyon_width_x, canyon_width_y, canyon_wall_left, 7 9 ! canyon_wall_south, conserve_volume_flow_mode, coupling_start_time, … … 194 196 WRITE ( 14 ) 'drag_coefficient ' 195 197 WRITE ( 14 ) drag_coefficient 196 WRITE ( 14 ) 'dt_fixed '197 WRITE ( 14 ) dt_fixed198 198 WRITE ( 14 ) 'dt_pr_1d ' 199 199 WRITE ( 14 ) dt_pr_1d
Note: See TracChangeset
for help on using the changeset viewer.