[Wrf-users] WRF V3.3.1 and MAX_DOMAINS

Zulauf, Michael Michael.Zulauf at iberdrolaren.com
Thu May 5 12:58:28 MDT 2016


Just to follow up on my own question, I think I found the solution.

When I increased MAX_DOMAINS from 21 to 41 in config.wrf, I then got errors from real.exe stating the following:
                get_config_rec_as_buffer: buffer size too small for config_rec

A bit more poking around showed this was controlled by CONFIG_BUF_LEN in config.wrf.  The original value was 32768.  Since I essentially doubled MAX_DOMAINS, I figured that a doubling of CONFIG_BUF_LEN was in order, to 65536.

After rebuilding, things seem to be working as I'd like.  I can now run WRF with 12 domains, and hopefully more when needed.  I'll revisit if I come across any other issues.

Later,
Mike

From: Zulauf, Michael
Sent: Tuesday, May 03, 2016 2:54 PM
To: 'wrf-users at ucar.edu'
Cc: 'wrfhelp at ucar.edu'
Subject: WRF V3.3.1 and MAX_DOMAINS

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/20160505/adcf11f8/attachment.html 


More information about the Wrf-users mailing list