# Hr2day not generating output

**URL:** https://forum.cmascenter.org/t/hr2day-not-generating-output/2120
**Category:** Post-processing
**Created:** [February 23, 2021, 2:56pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120 "2021-02-23T14:56:23Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 2:56pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/1 "2021-02-23T14:56:23Z")

</div>

Hi all,

I used benchmark to test hr2day, but it always return 0 time step, any suggestions?  
I also attached my run script, log file, and input/output files

Thanks  
Joey

```auto
     "OUTFILE" opened as OLD:READ-WRITE
     File name "/usr/apps/CMAQ/CMAQ_v5.3/data/CMAQv5.3_Benchmark_2Day_Output/POST/daily_COMBINE_ACONC_v53_gcc_Bench_2016_12SE1_201607.nc"
     File type GRDDED3
     Execution ID "????????????????"
     Grid name "2016_12SE1"
     Dimensions: 80 rows, 100 cols, 1 lays, 0 vbles
     NetCDF ID: 131072 opened as READWRITE
     Starting date and time 2016183:000000 (0:00:00 July 1, 2016)
     Timestep 240000 (24:00:00 hh:mm:ss)
     Maximum current record number 0

```

Here is my input header:

```auto
netcdf COMBINE_ACONC_v53_gcc_Bench_2016_12SE1_201607 {
dimensions:
        TSTEP = UNLIMITED ; // (48 currently)
        DATE-TIME = 2 ;
        LAY = 1 ;
        VAR = 134 ;
        ROW = 80 ;
        COL = 100 ;

```

[run\_hr2day.csh](https://forum.cmascenter.org/uploads/short-url/drgR23PMLje0ueLGIBHnrwVlYQr.csh) (4.0 KB) [run\_hr2day.log.txt](https://forum.cmascenter.org/uploads/short-url/h38hVSOpnTdeAJaPdqguDtLIUnU.txt) (4.6 KB)  
input and output

> **[daily\_COMBINE\_ACONC\_v53\_gcc\_Bench\_2016\_12SE1\_201607.nc](https://drive.google.com/file/d/1yRajbVfKli8qpBzoKsDw2U14x3HGx8wM/view?usp=sharing)**
>
> Google Drive file.

---

<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: [February 23, 2021, 5:18pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/2 "2021-02-23T17:18:54Z")

</div>

The 0 is the number of time steps in the file before you’ve written anything.

The program is dying before it gets around to writing anything: that’s what the “ieee\_inexact is signaling” is about in the log. Is the input data bad? – a quick check would be to run M3Tools program _m3stat_ on that input-file and see what it says about the input data…

---

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 6:22pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/3 "2021-02-23T18:22:04Z")

</div>

Charlie,

I did not see any significant issue in input file, I also double check I have the species I need. Any other suggestion?

Thanks!

```auto
setenv SPEICES_1 "ATOTIJ,ug/m3,ATOTIJ,AVG"

```

```auto
        float ATOTIJ(TSTEP, LAY, ROW, COL) ;
                ATOTIJ:long_name = "ATOTIJ " ;
                ATOTIJ:units = "ug m-3 " ;
                ATOTIJ:var_desc = "ATOTI[0]+ATOTJ[0] " ;

```

```auto
     AUNSPEC1IJ (ug m-3 ): ATOTIJ[0] - (ASOILJ[0] + ANO3IJ[0] + ASO4IJ[0]
     ANCOMIJ (ug m-3 ): AOMIJ[0]-AOCIJ[0]
     AUNSPEC2IJ (ug m-3 ): AUNSPEC1IJ[0] - ANCOMIJ[0]

     --->> Normal Completion of program M3STAT
     Program M3STAT completed successfully

```

[REPORT.txt](https://forum.cmascenter.org/uploads/short-url/fMWncPmBd3fTw9Iaei79uhCZFmk.txt) (774.9 KB)

> **[COMBINE\_ACONC\_v53\_gcc\_Bench\_2016\_12SE1\_201607.nc](https://drive.google.com/file/d/1Y-svhs3S6Ukbvk8vv1fMYOV3vHH0XC8P/view?usp=sharing)**
>
> Google Drive file.

---

<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: [February 23, 2021, 9:02pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/4 "2021-02-23T21:02:46Z")

</div>

Your run script has a typo.

`setenv SPEICES_1 "ATOTIJ,ug/m3,ATOTIJ,AVG"`

should be

`setenv SPECIES_1 "ATOTIJ,ug/m3,ATOTIJ,AVG"`

If this doesn’t solve the problem, please compile and run in debug mode and report back.

It’s also good practice to use `M3_FILE_1` instead of `INFILE` in case you want to specify multiple input files, though `INFILE` is a recognized option for backward compatibility.

---

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 9:36pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/5 "2021-02-23T21:36:57Z")

</div>

Christian,

Thanks, after editing the species, it gives another error

```auto
     >>--->> WARNING in subroutine WRITE3
     Time step error writing file: OUTFILE
     M3WARN: DTBUF 0:00:00 <DATE ERROR> ( ******* :000000)

```

How to compile and run in debug mode?

Also, I tested the m3tproc I compiled and a precompiled version from EMP 2016, both ran through successfully but there is no time step in the outfile.

Thank you  
Joey

---

<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: [February 23, 2021, 9:47pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/6 "2021-02-23T21:47:33Z")

</div>

Does the same error occur if you remove OUTFILE first before rerunning the script?

To compile in debug mode, cd to the hr2day BLD directory (i.e. `${CMAQ_HOME}/POST/hr2day/scripts/BLD_hr2day_${VRSN}_pgi2018` based on the run script you posted), then type  
`make clean`  
`make DEBUG = TRUE`

---

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 10:08pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/7 "2021-02-23T22:08:23Z")

</div>

Christian,  
here is the message:

Thanks for you help.  
Joey  
[Makefile.txt](https://forum.cmascenter.org/uploads/short-url/uGGwOqKn5DejqQbr1gTaVxU8pQl.txt) (3.1 KB)

```auto
[jhuang@SOL BLD_hr2day_v532_pgi2018]$ make clean
rm -f module_file.o module_tstep.o module_evaluator.o module_grid.o module_spec.o module_envvar.o ck_ctms.o getTZ.o hr2day.o parser.o *.mod
[jhuang@SOL BLD_hr2day_v532_pgi2018]$ make DEBUG = TRUE
make: *** empty variable name. Stop.

```

but hr2day\_v532.exe was built.

and yes, removing previous output it still gives me the same error.

---

<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: [February 23, 2021, 10:25pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/8 "2021-02-23T22:25:42Z")

</div>

My bad, it should be `make DEBUG=TRUE`, not `make DEBUG = TRUE`.

Sorry about that, please try again.

---

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 10:48pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/9 "2021-02-23T22:48:03Z")

</div>

there is no issue during the build, and it still gives me the same error.

```auto
[jhuang@SOL BLD_hr2day_v532_pgi2018]$ make clean
rm -f module_file.o module_tstep.o module_evaluator.o module_grid.o module_spec.o module_envvar.o ck_ctms.o getTZ.o hr2day.o parser.o *.mod
[jhuang@SOL BLD_hr2day_v532_pgi2018]$ make DEBUG=TRUE
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_file.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_tstep.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_evaluator.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_grid.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_spec.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include module_envvar.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include ck_ctms.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include getTZ.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include hr2day.F
mpif90 -c -Mfixed -Mextend -mcmodel=medium -tp px -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/include_files -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/include -I /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/include parser.F
mpif90 module_file.o module_tstep.o module_evaluator.o module_grid.o module_spec.o module_envvar.o ck_ctms.o getTZ.o hr2day.o parser.o -L/usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/ioapi/lib -lioapi -L/usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdff/lib -lnetcdff -L/usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018/netcdf/lib -lnetcdf -o hr2day_v532.exe

```

---

<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: [February 23, 2021, 11:51pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/10 "2021-02-23T23:51:15Z")

</div>

I think I see the problem now, there is another error in your run script. The start and end dates need to be provided in YYYYJJJ format, not YYYYMMDD.

Change

`setenv START_DATE 20160701`  
`setenv END_DATE 20160702`

back to the original YYYYJJJ format used in the script we distributed for this benchmark case

`setenv START_DATE 2016182`  
`setenv END_DATE 2016183`

---

<div class="post-metadata">

### Author: ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)
#### Post date: [February 23, 2021, 11:56pm UTC](https://forum.cmascenter.org/t/hr2day-not-generating-output/2120/11 "2021-02-23T23:56:05Z")

</div>

Christian,

Thanks, it works.

Best,  
Joey
