Page 1 of 1

Option to not write out CHG

Posted: Tue Nov 24, 2026 6:31 pm
by asrosen

Hi all,

I come to you with another feature request... :)

It would be great if there were a way to avoid writing out the CHG file but to keep CHGCAR. As I understand it, CHGCAR has all of the same information as CHG plus more digits and some metadata. In high-throughput campaigns, this means a lot of unnecessary I/O to keep a file (CHG) that is generally useless. It would be nice to disable the writing of this file to disk.


Re: Option to not write out CHG

Posted: Wed Nov 25, 2026 11:24 am
by manuel_engel1

Hey :) Welcome back, and thank you for the suggestion. For a single-point calculation, CHG is indeed a lower-precision copy of CHGCAR. It can be useful during relaxations and MD runs, where it stores a density snapshot every 10 ionic steps.

For high-throughput work, we recommend the HDF5 output (requires a build with -DVASP_HDF5):

In VASP 6.6.1, follow-up runs can restart the wavefunctions from vaspwave.h5 (with LH5 = True), but they cannot yet read the charge density from it. Keep LCHARG = True (CHGCAR) in steps whose density feeds a later ICHARG = 1 or 11 calculation. Reading the density from vaspwave.h5 is implemented in our development version and will be available in a future release.

In all cases, an empty CHG file is still created but it can be ignored and should contribute to the IO pressure in any measurable way.

Let me know if that addresses your concerns.