<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to run an ideal LES simulation as a parallel process (i.e. using option 'smpar'). I have an 8 core machine but I would like to limit the number of threads to 4. I tried setting the environment variable 'OMP_NUM_THREADS=4' prior to configuration and compilation. However, when I run wrf.exe I get the following just before the simulation begins:<br><br>WRF NUMBER OF TILES FROM OMP_GET_MAX_THREADS = 8<br>WRF TILE 1 IS 1 IE 100 JS 1 JE 13<br>WRF TILE 2 IS 1 IE 100 JS 14 JE 26<br>WRF TILE 3 IS 1 IE 100 JS 27 JE 38<br>WRF TILE 4 IS 1 IE 100 JS 39 JE 50<br>WRF TILE 5 IS 1 IE 100 JS 51 JE 62<br>WRF TILE 6 IS 1 IE 100 JS 63 JE 74<br>WRF TILE 7 IS 1 IE 100 JS 75 JE 87<br>WRF TILE 8 IS 1 IE 100 JS 88 JE 100<br>WRF NUMBER OF TILES = 8<br><br>I looked in 'module_tiles.F' and it appears that the variable 'num_tiles' is assigned by the OMP_GET_MAX_THREADS function. Perhaps this is overriding the environment setting??? Note that when I check my system performance the code is running on all 8 cores, but this is not efficient since I want to run other process on my machine. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I also messed with some of the parameters in the namelist, e.g. ‘tile_sz_x’, ‘tile_sz_y’, ‘numtiles’, ‘nproc_x’, ‘nproc_y’, but to no avail.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any suggestions will be most appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anders<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.5pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='border:none;padding:0in'><o:p> </o:p></p></div><p class=MsoNormal>Anders Nottrott<o:p></o:p></p><p class=MsoNormal><i>PhD Student, Mechanical and Environmental Engineering<o:p></o:p></i></p><p class=MsoNormal>University of California, San Diego<o:p></o:p></p><p class=MsoNormal>Department of Mechanical and Aerospace Engineering<o:p></o:p></p><p class=MsoNormal>Website: <solar.ucsd.edu/nottrott><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>