Option to not write out CHG

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
asrosen
Newbie
Newbie
Posts: 33
Joined: Wed Oct 18, 2023 4:51 pm

Option to not write out CHG

#1 Post by asrosen » Tue Nov 24, 2026 6:31 pm

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.


manuel_engel1
Global Moderator
Global Moderator
Posts: 279
Joined: Mon May 08, 2023 4:08 pm

Re: Option to not write out CHG

#2 Post by manuel_engel1 » Wed Nov 25, 2026 11:24 am

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.

Manuel Engel
VASP developer


Post Reply