# Error when running ICON and BCON

**URL:** <https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270>\
**Category:** CMAQ\
**Created:** [January 31, 2020, 8:38am UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270 "2020-01-31T08:38:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rainzmh](https://avatars.discourse-cdn.com/v4/letter/r/b5a626/32.png) [@Rainzmh](https://forum.cmascenter.org/u/Rainzmh)\
**Post date:** [January 31, 2020, 8:38am UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/1 "2020-01-31T08:38:01Z")

</div>

Dear Sir,I have a error when I am running run\_icon.csh,the setting of run\_icon.csh and log file are as follows.I hope you can help me to solve the problem!Thanks a lot!  
[run\_icon.txt](https://forum.cmascenter.org/uploads/short-url/iUfkuSp8C6TY39AdGVvXlYg44iv.txt) (5.0 KB)  
[icon.log.txt](https://forum.cmascenter.org/uploads/short-url/ngs6bGyMHz9IpiZ3w0pTRshiIW2.txt) (2.8 KB)

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [January 31, 2020, 1:49pm UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/2 "2020-01-31T13:49:01Z")

</div>

The `unlimit` command is giving you an error. This depends on the flavor of unix you have installed and how your sysadmin has configured it.  
Often by default processes on multi-user systems are limited in terms of how much memory they can take up. The purpose of that command is to free up as much memory as possible. You can try commenting it out and seeing whether the job will run, but it is possible it will crash with an out of memory error.  
If that does not work, you will have to get some help from your system administrator.

---

<div class="post-metadata">

**Author:** ![Duyen](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Duyen](https://forum.cmascenter.org/u/Duyen)\
**Post date:** [March 26, 2020, 10:22am UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/5 "2020-03-26T10:22:11Z")

</div>

Hi, i try to run ICON and BCON with CMAQ 5.2.1 but it have some problem  
Input data path, CMAQ\_DATA set to /home/Build\_WRF/WRFV3/run/metdata\_Phong/demo1

-rwxrwxr-x. 1 roott roott 4442368 Nov 7 2018 /home/roott/dwong/src/CMAQ521/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc/ICON\_v52\_profile.exe  
text data bss dec hex filename  
670967 3714292 7036232 11421491 ae4733 /home/roott/dwong/src/CMAQ521/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc/ICON\_v52\_profile.exe  
cputime unlimited  
filesize unlimited  
datasize unlimited  
stacksize 8192 kbytes  
coredumpsize 0 kbytes  
memoryuse unlimited  
vmemoryuse unlimited  
descriptors 1024  
memorylocked 64 kbytes  
maxproc 63367  
maxlocks unlimited  
maxsignal 63367  
maxmessage 819200  
maxnice 0  
maxrtprio 0  
maxrttime unlimited

```
 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3      
 I/O Applications Programming Interface, [I/O API] which is      
 built on top of the netCDF I/O library (Copyright 1993, 1996    
 University Corporation for Atmospheric Research/Unidata         
 Program) and the PVM parallel-programming library (from         
 Oak Ridge National Laboratory). Copyright (C) 1992-2002 MCNC,  
 (C) 1992-2013 Carlie J. Coats, Jr., and (C) 2003-2012 Baron     
 Advanced Meteorological Systems, LLC and released under the     
 GNU LGPL License, version 2.1. See URL                        
                                                                 
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.1: $Id:: init3.F 321 2016-02-26 16:00:20Z coats $
 Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
 netCDF version 4.1.3 of Aug 3 2018 09:06:23 $
  
  
 EXECUTION_ID: ICON_v52_profile.exe
 Value for GRID_NAME: 'SE52BENCH'
 Value for GRID_NAME: 'SE52BENCH'

 File "GRIDDESC" opened for input on unit: 99
 /home/Build_WRF/WRFV3/run/metdata_Phong/demo1/GRIDDESC

 
 >>--->> WARNING in subroutine HGRD_INIT
 Failure retrieving horizontal grid parameters
 
 
 *** ERROR ABORT in subroutine ICON
 *** Failure defining horizontal domain

```

I dont know how to fix.

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [March 26, 2020, 1:25pm UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/6 "2020-03-26T13:25:19Z")

</div>

Hi Duyen,

Please create a new post for this issue after reviewing the following instructions.

> [@PLEASE READ before posting](https://forum.cmascenter.org/t/please-read-before-posting/1321):
>
> Welcome to the CMAS Forum! Here, users and developers can discuss issues related to the U.S. EPA’s [CMAQ](http://www.epa.gov/cmaq) modeling system and associated [software](https://github.com/USEPA/CMAQ) maintained by the U.S. EPA and the CMAS Center. Please review all five steps prior to submitting requests for assistance to the CMAS Center Forum. [Search](https://forum.cmascenter.org/search?expanded=true) the CMAS Forum and review the [CMAQ FAQ](https://www.epa.gov/cmaq/frequent-cmaq-questions) for an error or problem similar to the one in your log file. If you need help identifying your error please review the [Debug Tutorial](https://github.com/USEPA/CMAQ/blob/master/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_debug.md) If you don’t see a sim…

We will respond this after you post a new issue.

Thank you,  
Liz

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [March 26, 2020, 6:25pm UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/7 "2020-03-26T18:25:36Z")

</div>

Hi Duyen,

I agree with @lizadams’ suggestion to open a new post for your issue since it does not appear to be related to the problem reported in the first post of the current thread.

That said, based on looking at the [HGRD\_DEFN.F code](https://github.com/USEPA/CMAQ/blob/5.2.1/PREP/icon/src/common/HGRD_DEFN.F), it appears the error occurs because the call to `DSCGRID` fails. The two reasons I can think of are that either the `GRID_NAME` environment variable you set in your run script (`SE52BENCH`) is not defined in your `GRIDDESC` file (/home/Build\_WRF/WRFV3/run/metdata\_Phong/demo1/GRIDDESC) or that your `GRIDDESC` file isn’t formatted properly.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [March 26, 2020, 7:20pm UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/8 "2020-03-26T19:20:51Z")

</div>

Most likely the second reason: _ioapi/dscgrid.f_ is carefully coded ([see the fifth item under “Coding” in Models-3 Coding Standards document](https://cjcoats.github.io/ioapi/STANDARDS.html)) so that **any** I/O error will generate a detailed log message. In the absence of such a message, we may be quite sure that the `GNAME` argument to the `DSCGRID` call is not a name present in the _GRIDDESC_ file.

---

<div class="post-metadata">

**Author:** ![Duyen](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Duyen](https://forum.cmascenter.org/u/Duyen)\
**Post date:** [March 27, 2020, 2:52am UTC](https://forum.cmascenter.org/t/error-when-running-icon-and-bcon/1270/9 "2020-03-27T02:52:39Z")

</div>

thanks so much i opened a new post.
