Welcome to the new DiscussCESM forum!
We are still working on the website migration, so you may experience downtime during this process.

Existing users, please reset your password before logging in here: https://xenforo.cgd.ucar.edu/cesm/index.php?lost-password/

ERROR M50: component_mod:check_fields NaN found in ATM instance

Hi, I only run CLM50 and build it successfully. However, when I ./case.submit, there is an error and the cesm.log showed:84  (t_initf) Read in prof_inparm namelist from: drv_in 85  (t_initf) Using profile_disable=          F 86  (t_initf)       profile_timer=                      4 87  (t_initf)       profile_depth_limit=                4 88  (t_initf)       profile_detail_limit=               2 89  (t_initf)       profile_barrier=          F 90  (t_initf)       profile_outpe_num=                  1 91  (t_initf)       profile_outpe_stride=               0 92  (t_initf)       profile_single_file=      F 93  (t_initf)       profile_global_stats=     T 94  (t_initf)       profile_ovhd_measurement= F 95  (t_initf)       profile_add_detail=       F 96  (t_initf)       profile_papi_enable=      F 97  ERROR: 98  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo 99  bal index:     4578100  ERROR:101  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo102  bal index:     6782103  ERROR:104  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo105  bal index:     9155106  ERROR:107  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo108  bal index:    11344109  ERROR:110  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo111  bal index:    12538112  ERROR:113  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo114  bal index:    14727115  ERROR:116  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo117  bal index:     3392118  ERROR:119  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo120  bal index:     5772121  ERROR:122  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo123  bal index:    15921124  ERROR:125  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo126  bal index:    17115127  ERROR:128  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo129  bal index:    18110130  ERROR:131  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo132  bal index:    19304133  ERROR:134  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo135  bal index:    21493136  ERROR:137  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo138  bal index:    22687139  ERROR:140  component_mod:check_fields NaN found in ATM instance:    1 field Sa_dens 1d glo141  bal index:    24876 I dont know this is because my forcing data or clm. 
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
This is an atm forcing data problem.  Sa_dens is air density.
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
If you are using 'CLMNCEP' mode for your forcing, then air density is calculated in cime/src/components/data_comps/datm/datm_comp_mod.F90 as:           !--- density ---          vp = (a2x%rAttr(kshum,n)*pbot) / (0.622_R8 + 0.378_R8 * a2x%rAttr(kshum,n))          a2x%rAttr(kdens,n) = (pbot - 0.378_R8 * vp) / (tbot*rdair) So maybe some combination of humidity, pressure, temperature is giving you a bad value of density?
 
I used CLMNCEP! I saw air temperature used in this formula! So Can I have missing values in my forcing data to drive CLM model because I think this error maybe due to missing values of air temeprature from NLDAS-2
 
I checked the missing values in NLDAS data and set it as _Fillvalue (-1.e+36). I run the model again, but I found another error: 2548  NetCDF: Variable not found2549  ENDRUN:2550  ENDRUN:2551  lnd_import                       ERROR: Longwave down sent from the atmosphere2552  model is negative or zero2553  ERROR: Unknown error submitted to shr_abort_abort.2554  ENDRUN:2555  lnd_import                       ERROR: Longwave down sent from the atmosphere2556  model is negative or zero2557  ERROR: Unknown error submitted to shr_abort_abort.2558  lnd_import                       ERROR: Longwave down sent from the atmosphere2559  ENDRUN:2560  lnd_import                       ERROR: Longwave down sent from the atmosphere2561  model is negative or zero2562  ERROR: Unknown error submitted to shr_abort_abort.2563  model is negative or zero2564  ERROR: Unknown error submitted to shr_abort_abort.2565  ENDRUN:  
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
Maybe your domain file is not consistent with the NLDAS2 data.  The "mask" field on that file should have ones where there is valid forcing data and zeros where there is not.The model is probably interpreting -1.e36 as a valid downward longwave value (longwave down sent from the atmosphere is negative or zero).
 

jack

jack
Member
Maybe your domain file is not consistent with the NLDAS2 data. The "mask" field on that file should have ones where there is valid forcing data and zeros where there is not.The model is probably interpreting -1.e36 as a valid downward longwave value (longwave down sent from the atmosphere is negative or zero).
Hi,oleson, I also met the same problem, when I ./case.submit, there is an error in cesm.log : ERROR: component_mod:check_fields NaN found in ATM instance: 1 field Sa_u 1d global index: 398. I want to ask what does Sa_u means? The atmospheric forcing dataset I'm using is CLDAS, and using ‘CLMGSWP3v1’ mode. Strangely, I can successfully run in another study area (i.e. with another domain file and surface data). It's the matter of atmospheric forcing or domain file?
 
Top