# Afdust does not finish

**URL:** <https://forum.cmascenter.org/t/afdust-does-not-finish/5751>\
**Category:** SMOKE\
**Created:** [April 18, 2025, 1:24pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751 "2025-04-18T13:24:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [April 18, 2025, 1:24pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/1 "2025-04-18T13:24:34Z")

</div>

I want to run afdust for the whole January month of 2019, but my afdust run stopped at day 13. The log file is attached here([afdust.log.txt](https://forum.cmascenter.org/uploads/short-url/3fHGiyD715vdSJAUFZ66SrezBM8.txt) (81.5 KB)). In the /intermed/afdust/logs i have the following files:  
grdmat\_afdust\_2019ge\_cb6\_19k\_12US1.log smkmerge\_afdust\_2019ge\_cb6\_19k\_20190108\_12US1\_cmaq\_cb6ae7.log smkreport\_afdust\_2019ge\_cb6\_19k\_invgrid.log  
helper\_scripts\_list\_afdust\_2019ge\_cb6\_19k\_12US1\_all.txt smkmerge\_afdust\_2019ge\_cb6\_19k\_20190109\_12US1\_cmaq\_cb6ae7.log smkreport\_afdust\_2019ge\_cb6\_19k\_inv.log  
smkinven\_afdust\_2019ge\_cb6\_19k.log smkmerge\_afdust\_2019ge\_cb6\_19k\_20190110\_12US1\_cmaq\_cb6ae7.log smkreport\_afdust\_2019ge\_cb6\_19k\_temporal.log  
smkmerge\_afdust\_2019ge\_cb6\_19k\_20190101\_12US1\_cmaq\_cb6ae7.log smkmerge\_afdust\_2019ge\_cb6\_19k\_20190111\_12US1\_cmaq\_cb6ae7.log spcmat\_afdust\_2019ge\_cb6\_19k\_cmaq\_cb6ae7.log  
smkmerge\_afdust\_2019ge\_cb6\_19k\_20190102\_12US1\_cmaq\_cb6ae7.log smkmerge\_afdust\_2019ge\_cb6\_19k\_20190112\_12US1\_cmaq\_cb6ae7.log temporal\_afdust\_2019ge\_cb6\_19k\_20190101.log  
smkmerge\_afdust\_2019ge\_cb6\_19k\_20190107\_12US1\_cmaq\_cb6ae7.log smkmerge\_afdust\_2019ge\_cb6\_19k\_20190113\_12US1\_cmaq\_cb6ae7.log timelog\_afdust\_2019ge\_cb6\_19k\_12US1\_all.txt

Everyone of them ends with “Normal Completion”. In temporal\_afdust\_2019ge\_cb6\_19k\_20190101.log, the file ends on day 13 (attached here  
[temporal\_afdust\_2019ge\_cb6\_19k\_20190101.log.txt](https://forum.cmascenter.org/uploads/short-url/4FGHa8MaalHdLUUmaqlbGmVJeyo.txt) (73.3 KB))

I have no idea what caused this stop and how to fix it. Can you help with it?

Thanks,  
Lin

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [April 18, 2025, 2:50pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/2 "2025-04-18T14:50:37Z")

</div>

It looks like SMOKE ran successfully.

The afdust sector uses a “week” temporal approach, meaning that the temporal profile varies by day of the week. For the month, emissions on all Mondays will be the same, all Tuesdays will be the same, etc. Because the emissions are the same only one file per day of the week is output by SMOKE for this temporal approach. The first week of January includes two days classified as holidays, 1/1 and 1/2, which are written as separate files because this is a holiday inclusive approach (“week\_Y”). The annual representative date assignments for each temporal approach can be found in the merge dates files.

Afdust is a special case because it is usually post-processed with transport and meteorological adjustments (“afdust\_adj”) that bring down the total primary PM. If the adjustments are applied the resulting emissions files will be daily because the meteorology, and thus the emissions, will vary across all days of the month. As a next step you should run the adjustment scripts .

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [April 18, 2025, 5:42pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/3 "2025-04-18T17:42:16Z")

</div>

Thanks so much! I ran afdust\_adj and met the error below:

 ![Screenshot 2025-04-18 at 1.38.29 PM](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/7/701a8917172fc3343a6beb216bdaab9ec882b29d.png)  
I followed [Afdust\_adj NCVGT Error (NetCDF dimension) - #2 by bbaek](https://forum.cmascenter.org/t/afdust-adj-ncvgt-error-netcdf-dimension/2845/2) but my problem still exists. Could you help with this?  
Thanks,  
Lin

---

<div class="post-metadata">

**Author:** ![james.beidler](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@james.beidler](https://forum.cmascenter.org/u/james.beidler)\
**Post date:** [April 18, 2025, 6:23pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/4 "2025-04-18T18:23:10Z")

</div>

Unfortunately it looks like the pre-compiled executables are not compatible with your system.  
(See #2 under Troubleshooting at [Running SMOKE using EPA's Emissions Modeling Platforms · CEMPD/SMOKE Wiki · GitHub](https://github.com/CEMPD/SMOKE/wiki/Running-SMOKE-using-EPA's-Emissions-Modeling-Platforms))

If you are using the 2019 modeling platform you will need to recompile smoke4.8.1/scripts/afdust\_adj/apply\_precip\_adj.f and smoke4.8.1/scripts/afdust\_adj/mult.x on your system.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [April 18, 2025, 8:10pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/5 "2025-04-18T20:10:20Z")

</div>

I recompiled it and now it works. Thanks!  
Lin

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [April 23, 2025, 6:37pm UTC](https://forum.cmascenter.org/t/afdust-does-not-finish/5751/6 "2025-04-23T18:37:03Z")

</div>

Since there is no error, we believe that this is due to the use of representative days…

The initial afdust job (pre-adjustment) only creates emissions for representative dates.

So there should be 9 days’ worth of emissions in January (one per day of week, plus 1/1 and 1/2 holidays), which is looks like there is.

The second afdust job which applies the xportfrac and met adjustments should create emissions for every day.
