[Wrf-users] WRF V3.3.1 and MAX_DOMAINS

Zulauf, Michael Michael.Zulauf at iberdrolaren.com
Tue May 3 15:54:02 MDT 2016


Hi all...

I'm running WRF V3.3.1 for forecasting at work.  Our configuration covers the CONUS area at a moderate resolution, with quite a few nested grids over different areas for enhanced resolution.  Our currently working setup uses up to 10 total domains - d01 to d10.  This has been running without problem.

Due to new forecasting needs, I've been attempting to add two more domains to bring us up to 12 (ie, up to d12).  I've used exactly the same methodology to add these two new domains as I have in the past, but I'm hitting a snag.

Long story short, I found that having more than 11 values (domains) defined in any of the namelist.input variables that are dimensioned by max_dom causes real.exe to fail.  It fails with a very unhelpful error message I might add.  It doesn't even matter if max_dom is actually 11 or less, if you have more than 11 columns, it will fail.

After a little digging around, it appears to me that this is dictated by the parameter max_domains, which is defined from the preprocessing variable MAX_DOMAINS_F, which is set by utilizing the variable MAX_DOMAINS in configure.wrf.

My configure.wrf has:
                MAX_DOMAINS     =       21

This is utilized as a preprocessor directive during compilation:
                -DMAX_DOMAINS_F=$(MAX_DOMAINS)

Finally, in frame/module_driver_constants.F, we calculate max_domains:
                max_domains     =   ( MAX_DOMAINS_F - 1 ) / 2 + 1

So, plugging in the MAX_DOMAINS value of 21, I see that I get a max_domains parameter value of 11.  So that makes sense (sort of).

So now I wonder, can I simply rebuild WRF after increasing my value of MAX_DOMAINS in configure.wrf?  Say to 41?  That would yield a value of max_domains of 21, which should hold me for a while.

Is that ok, or will it break something else?  Will I need to tweak any other settings?

Thanks,
Mike

--
Mike Zulauf
Meteorologist, Lead Senior
Operational Meteorology
Iberdrola Renewables
1125 NW Couch, Suite 700
Portland, OR 97209
Office: 503-478-6304  Cell: 503-913-0403


==============================================================
  
Please consider the environment before printing this email.

If you have received this message in error, please notify the sender and immediately delete this message and any attachment hereto and/or copy hereof, as such message contains confidential information intended solely for the individual or entity to whom it is addressed. The use or disclosure of such information to third parties is prohibited by law and may give rise to civil or criminal liability.

The views presented in this message are solely those of the author(s) and do not necessarily represent the opinion of Iberdrola Renewables, LLC. or any company of its group. Neither Iberdrola Renewables, LLC. nor any company of its group guarantees the integrity, security or proper receipt of this message. Likewise, neither Iberdrola Renewables, LLC. nor any company of its group accepts any liability whatsoever for any possible damages arising from, or in connection with, data interception, software viruses or manipulation by third parties.

 ==============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20160503/d0c961f4/attachment.html 


More information about the Wrf-users mailing list