Guide · VASP · LAMMPS · 18 min read
Should I start fresh or continue from a previous run?
Checked against the docs · VASP wiki and VASP tutorial Bulk systems part 1 and LAMMPS stable release 30 Sep 2026 · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
Continue when the next run is the same calculation carried further, or a close variant of it. In VASP, copy CONTCAR to POSCAR and, to save electronic steps, reuse the CHGCAR (ICHARG = 1) or the WAVECAR (ISTART = 1); after a cell relaxation, restart with ISTART = 1 so the basis is rebuilt for the new cell. In LAMMPS, read a binary restart file to carry the dynamics on exactly, or a data file to start a new run from the final positions. Start fresh when the structure, the k-points or the bands changed enough that old files no longer fit.
What does it mean to continue from a previous run?
Every run you finish leaves files behind that describe where it ended. Continuing (also called restarting) means giving the next run some of those files, so it starts where the last one stopped instead of from your original input. Starting fresh means giving it only a structure and letting it work out everything else again.
In VASP, three files matter:
CONTCAR, the structure at the end of the run, written in the same format asPOSCAR. In molecular dynamics it also holds the atoms' velocities.CHGCAR, the charge density (where the electrons are, on a grid through the cell), together with some extra numbers the PAW method keeps for each atom.WAVECAR, the wavefunctions (the electron orbitals themselves), with the band energies and occupations.
Two INCAR tags decide what VASP does with them: ISTART says whether to read the WAVECAR, and ICHARG says where the starting charge density comes from. The VASP wiki calls WAVECAR and CHGCAR (with TAUCAR and POT for a few special methods) the restart files; files such as DOSCAR, CHG or vasprun.xml are results and are never read back.
In LAMMPS, two kinds of file carry a run on:
- A restart file, a binary snapshot of the whole simulation written by
restartorwrite_restartand read byread_restart. - A data file, a text description of the box and the atoms written by
write_dataand read byread_data, the same command you used to read your first structure.
When does the choice matter?
When a relaxation stops before it converges. The job ran out of walltime, or hit its step limit (NSW). Continuing from CONTCAR keeps the progress; starting again from the original POSCAR throws it away.
After a cell relaxation. VASP keeps the set of plane waves it built for the starting cell for the whole relaxation, so the final cell is described by a basis that no longer matches your cutoff. How you restart decides whether that error stays or goes. The section on cell relaxations below explains it.
When the next run needs the charge density. A band structure or a density of states is calculated on a finished run's charge density, held fixed. Without the CHGCAR there is nothing to calculate on.
When time is short. A good starting density or set of wavefunctions saves electronic steps at the start of every run. The wiki recommends starting from the CHGCAR when you repeat a calculation with small changes, such as a different k-point mesh.
When long dynamics must carry on. A LAMMPS run that is cut off by the walltime only loses the steps since its last restart file, if it writes one. The manual describes the binary restart file as built for exact restarts: the continued trajectory matches the one the original run would have produced.
What does each VASP restart keep, and what does it cost?
| What you carry over | How | What it keeps | What to watch |
|---|---|---|---|
| The structure only | cp CONTCAR POSCAR, with no WAVECAR in the folder | The positions and the cell; in molecular dynamics, the velocities too | The electrons start from scratch, so the first ionic step needs more electronic steps. |
| The structure and the charge density | CHGCAR in the folder, ICHARG = 1 | The density, extrapolated by VASP from the old positions to the new ones | The per-atom PAW part is written only up to LMAXMIX, so energies can differ slightly from a fully converged run, and a lot for DFT+U. |
| The structure and the wavefunctions | WAVECAR in the folder, ISTART = 1 | The orbitals, from which VASP builds the starting density | If the WAVECAR has a different number of bands or k-points, VASP quietly falls back to ISTART = 0 and starts from scratch. A WAVECAR holds every band at every k-point, so it can be large; check its size with du -sh before you copy it. |
| The charge density, held fixed | CHGCAR in the folder, ICHARG = 11 | The density, unchanged for the whole run | Not a continuation: a non-self-consistent run for a band structure or a density of states. See How do I calculate a band structure or density of states? |
What the tags do, from their wiki pages:
ISTART = 0starts the orbitals from scratch.ISTART = 1reads theWAVECARand rebuilds the plane waves for the current cell and cutoff, which the wiki calls a "restart with constant energy cut-off".ISTART = 2reads theWAVECARand keeps the old set of plane waves even if the cell or the cutoff changed, a "restart with constant basis set".ISTART = 3also reads aTMPCARfor molecular dynamics split into very short pieces; the wiki does not recommend it in general.ICHARG = 2starts from a superposition of atomic charge densities,ICHARG = 1readsCHGCAR, andICHARG = 0builds the density from the starting wavefunctions. Adding 10 (ICHARG = 11,12) keeps the density fixed.
The defaults read what they find. If you leave ISTART out, it is 1 when a WAVECAR exists in the folder and 0 otherwise; ICHARG is then 0 (from the wavefunctions) when ISTART is not 0, and 2 (from atoms) when it is. So a WAVECAR left in the folder is read whether you meant it or not. The VASP tutorial puts it plainly: delete the WAVECAR to start a fresh calculation, or set ISTART and ICHARG yourself.
Only a run that wrote the files can be continued from them. LWAVE writes the WAVECAR and LCHARG the CHGCAR; both default to .TRUE. in current VASP. Many INCAR files set them to .FALSE. to save disk, and then there is nothing to continue from. With LH5 = .TRUE. the restart data go to vaspwave.h5 instead, and the wiki notes that a fixed-density restart (ICHARG = 11) cannot read the charge density from it yet: write the CHGCAR for those.
How do I continue a relaxation that stopped?
Copy the final structure over the starting one and run again in a fresh folder:
mkdir step2
cp INCAR KPOINTS POTCAR step2/
cp CONTCAR step2/POSCAR
cp WAVECAR step2/ # optional: saves electronic steps; leave it out to start the electrons fresh
cd step2The wiki's CONTCAR page says to do exactly this when a relaxation has not converged. Keep your first folder: its OUTCAR and OSZICAR are the record of the first part. If the relaxation keeps failing to converge rather than running out of time, a restart only repeats the problem; see How do I fix a relaxation that won't converge?
How do I restart after a cell relaxation? (the constant-basis problem)
When the cell may change (ISIF = 3 and kin), VASP fixes the number of plane waves for the starting cell and keeps it. As the cell grows or shrinks, that basis no longer matches your cutoff, and the stress comes out wrong in a predictable direction: the Pulay stress, which makes the relaxed cell too small (see What cutoff energy should I use?).
The wiki's volume relaxation procedure is to relax, copy CONTCAR to POSCAR, and relax again with:
ISTART = 1 # keep the energy cutoff, rebuild the plane waves for the new cellWith ISTART = 2 the old basis is kept, and with it the Pulay stress: the wiki calls that an exact restart of the first calculation "with identically poor settings". If the cell barely moves in the second relaxation, the first one was close; if it keeps moving, raise ENCUT.
There is one place where the wiki asks for ISTART = 2: when you want a consistent continuation of the same relaxation, with the same basis as before (for example to carry on a cell relaxation exactly as it was). The ISTART page puts the rule this way: for an equilibrium volume, restart with constant cutoff (ISTART = 1) unless you know you need the constant basis.
How do I continue VASP molecular dynamics?
For dynamics (IBRION = 0), CONTCAR holds three blocks: the positions and cell, the velocities, and the predictor-corrector coordinates VASP's integrator needs. Copy it to POSCAR and the trajectory carries on. The wiki adds that the WAVECAR and CHGCAR of a dynamics run are the predictions for the next step, consistent with CONTCAR, so all three can be used together to continue.
Two warnings from the wiki:
- Changing the ensemble (for example from NVT to NpT) on a
CONTCARrequires deleting the predictor-corrector block first; otherwise the calculation crashes. - Without velocities in the
POSCAR, VASP draws random ones from a Maxwell-Boltzmann distribution atTEBEG, which starts the dynamics afresh.
Because the dynamics files describe a predicted next step, the wiki warns against a band structure straight from a dynamics run's CHGCAR. To use the wavefunctions for anything else, it says to copy CONTCAR to POSCAR first and make one static continuation (ISTART = 1, NSW = 0, ICHARG = 1).
How do I continue a LAMMPS run?
The manual gives three ways: several run commands in one script (each continues where the last stopped), a binary restart file read by read_restart in a new script, or a data file read by read_data.
Writing restart files. Ask for them in the original script:
restart 10000 restart.a restart.b # every 10 000 steps, alternating between two files
run 100000
write_restart final.restart # the state at the very endWith one file name, restart writes a new file each time, with the step number appended; with two, it toggles between them, so only two files ever exist. The step count here is an example. A file is written only on steps that are a multiple of N, never on the first step of a run, and not on the last step unless it is a multiple of N, which is why a write_restart after the run is worth having. The default is restart 0: no restart files at all.
Reading one. The new script starts with read_restart in place of units, atom_style and read_data:
read_restart final.restart
# pair_coeff ... # repeat it here if your pair style does not store its coefficients (see below)
neighbor 2.0 bin
fix 1 all nvt temp 300.0 300.0 0.1
timestep 0.001
run 100000What a restart file carries and what it does not, from the read_restart page:
| Stored in the restart file | Not stored: set it again in the new script |
|---|---|
units, atom_style, the box and its boundaries | fix commands |
| The time step size and the step number | compute commands and variable definitions |
| Every atom's attributes, groups, masses and bonds | region commands |
The force field styles (pair_style and kin), pair_modify, special_bonds | Neighbor settings (neighbor, neigh_modify) |
| The pair coefficients, for many pair styles | kspace_style, and all thermo, dump and restart output |
Three things to know before you rely on it:
- Many-body and tabulated potentials read their parameters from separate files and often do not store their coefficients in the restart file, so
pair_coeffmust be given again;pair_style hybridnever stores them. Each pair style's page says which it is. In LAMMPS's source, a pair style that stores no restart information at all (Tersoff is one) is not restored either: the log sayspair style tersoff stores no restart info, and you givepair_styleas well aspair_coeffagain. - A thermostat continues only if you name it the same way. Some fixes save an internal state in the restart file;
fix nvtandfix nptsave their thermostat and barostat variables. That state is picked up only if the new script defines a fix of the same style with the same fix ID; otherwise LAMMPS prints a list of discarded fix states before the first run. - Exact means the same build on the same machine. The binary format is only expected to be read correctly by the same LAMMPS executable on the same platform. A different number of processors, or a few settings, make the trajectories slowly diverge (LAMMPS warns), and some fixes such as
fix langevinnever restart exactly, though their statistics stay the same.
Two conveniences: read_restart restart.* reads the newest file whose name matches with a step number in place of the *, and run 1000000 upto runs until step 1 000 000 whatever step the restart file starts at, so the same script can be resubmitted until the run is done.
Starting from a data file instead. write_data final.data at the end of a run, or the command-line switch -restart2data applied to a restart file, gives a text file that any LAMMPS build can read. It starts a new run rather than continuing the old one:
- The new script must set
units,atom_style, the pair style and everything else again; only the coefficients the file lists come with it, and some styles (hybrid styles, and styles that need a singlepair_coeffline) do not get their coefficients written, so you give them again. - Groups and fixes are not stored.
read_datasets the step counter to 0; usereset_timestepif the step number matters.- Because the file is text, the new run starts slightly off the old one's final state and diverges from what the original would have done.
The velocities do travel with the data file. LAMMPS's source (write_data.cpp) writes a Velocities section whenever the atoms have IDs, which is the default; only with atom_modify id no does it leave the section out, with a warning. That is why the manual's restart how-to continues from a converted data file with no new velocity command. To start dynamics afresh from the same positions, issue velocity all create 300.0 4928459 (the temperature and the random seed are examples) after read_data.
Should I start fresh or continue?
Starting points for the common cases. The right choice depends on what changed between the runs.
| Your situation | Start with | Why |
|---|---|---|
VASP relaxation stopped by walltime or NSW | CONTCAR as POSCAR; WAVECAR or CHGCAR if you have them | The positions are progress worth keeping; the electronic files save steps. |
| VASP cell relaxation finished | CONTCAR as POSCAR, relax again with ISTART = 1 | Rebuilds the plane waves for the new cell, so the Pulay stress goes. |
| A static, band or DOS run on a relaxed structure | CONTCAR as POSCAR; CHGCAR with ICHARG = 1 for a static run, ICHARG = 11 for bands or a DOS | The static run needs a density converged for this structure; bands and DOS then hold it fixed. |
| VASP dynamics, continuing in the same ensemble | CONTCAR (with velocities) as POSCAR, plus WAVECAR and CHGCAR | The wiki says the three are consistent for a dynamics continuation. |
| LAMMPS dynamics cut off, same build and machine | read_restart of the latest restart file, fixes redefined with the same IDs | An exact continuation, thermostat state included. |
| LAMMPS: new conditions, another machine or another LAMMPS version | read_data of a data file, new velocity if you want new velocities | Portable text; a new run from the old positions. |
| The structure changed a lot, or the k-points or bands changed | Start fresh: no WAVECAR, or ISTART = 0 and ICHARG = 2 | Old wavefunctions no longer fit, and VASP may drop them silently anyway. |
Choose yours:
| Your situation | Start with | Why |
|---|---|---|
| VASP relaxation stopped | CONTCAR as POSCAR, WAVECAR if kept | The wiki's CONTCAR page: copy it to POSCAR before continuing an unconverged relaxation. The WAVECAR saves electronic steps; with it in the folder VASP reads it by default. |
| VASP cell relaxation finished | CONTCAR as POSCAR, ISTART = 1 | The wiki's volume relaxation procedure: relax again with ISTART = 1, which keeps the cutoff and rebuilds the basis for the new cell. ISTART = 2 would keep the Pulay stress. |
| Bands or DOS next | CHGCAR with ICHARG = 11 | Bands and densities of states are calculated on a converged charge density, held fixed. The CHGCAR must come from a static run or a relaxation, never from dynamics. |
| VASP dynamics, carry on | CONTCAR, WAVECAR and CHGCAR together | For dynamics, the wiki says the three files are consistent with each other and continue the trajectory. Delete the predictor-corrector block of CONTCAR before changing the ensemble. |
| LAMMPS dynamics, carry on | read_restart, fixes redefined with the same IDs | The binary restart file carries the box, atoms, styles and step number; fixes, computes, neighbor settings and output are set again. A thermostat's state comes back only for a fix of the same style and ID. |
| LAMMPS, new run from the end | read_data of a written data file | A text file any LAMMPS build reads. Set units, atom_style and the potential again; the step counter starts at 0; add velocity ... create for new velocities. |
What it depends on:
- What changed. The same calculation carried on wants every file; a new cell wants a rebuilt basis; new k-points or bands make the
WAVECARunusable. - What the earlier run wrote.
LWAVE,LCHARGand, in LAMMPS,restartorwrite_restartdecide what you can continue from. - Whether the result must be identical. A LAMMPS restart file is exact on the same build and machine; a data file and a VASP restart give a new, close start.
How do I know the restart did what I meant?
Read what VASP says at start-up. Just before the line entering main loop, VASP writes to its standard output (on a cluster, the file your job script sends it to) which restart files it read. The wiki's cheat sheet gives the lines: WAVECAR not read for a fresh start, the WAVECAR file was read successfully and initial charge from wavefunction for ISTART = 1, and charge density read from file: CHGCAR when ICHARG = 1 read the density. Search for them in the log:
grep -E "WAVECAR|CHGCAR|initial charge" vasp.out # the file your job writes VASP's output to; the name is an exampleCheck the tags VASP used. OUTCAR starts with VASP's reading of your INCAR:
grep -E "ISTART|ICHARG" OUTCARWatch the first ionic step. The wiki gives no rule for how many electronic steps a restart should save, so the start-up lines above are the reliable check; if the first electronic loop takes as many steps as a fresh start, read them again.
In LAMMPS, read the log after read_restart. LAMMPS prints a message for each fix it re-enables from the restart file, and a list of fix states it discarded. A discarded thermostat means its fix ID or style did not match. The first thermo line should show the step number the restart file was written at.
What goes wrong when continuing a run?
| Mistake | What you would see | What to do |
|---|---|---|
A WAVECAR from another structure left in the folder | VASP reads it by default; the start can be poor or the run may drop it and start over. | Delete it, or set ISTART = 0 and ICHARG = 2 for a fresh start. |
Restarting a cell relaxation with ISTART = 2 | The second relaxation reproduces the first, Pulay stress and all. | ISTART = 1 for the second relaxation. |
A new k-point mesh or NBANDS with an old WAVECAR | VASP reverts to ISTART = 0 without stopping. | Expected: reuse the CHGCAR instead, which the wiki recommends for small changes such as the k-point mesh. |
LCHARG = .FALSE. or LWAVE = .FALSE. in the run you wanted to continue | No CHGCAR or WAVECAR to copy. | Rerun the static step with the file written, or continue from the structure only. |
ICHARG = 11 with a CHGCAR from molecular dynamics | A band structure on a density that is not self-consistent for any structure. | Make a static run on the final structure first, then take its CHGCAR. |
Removing MAGMOM when restarting a magnetic run | The wiki warns the magnetisation is likely to be symmetrised away. | Keep MAGMOM in the restart; see How do I set up a magnetic calculation? |
A VASP dynamics CONTCAR used with a new ensemble | The calculation crashes. | Delete the predictor-corrector block first. |
| LAMMPS: the thermostat fix renamed in the new script | A list of discarded fix states in the log; the thermostat starts over. | Use the same fix style and ID as the original script. |
LAMMPS: a many-body potential after read_restart | Must re-specify non-restarted pair style (tersoff) after read_restart when the pair style itself was not stored (Tersoff here as the example), or All pair coeffs are not set when the style is set but its coefficients are not. | Give pair_style and pair_coeff again after read_restart. |
| LAMMPS: a restart file moved to another cluster or LAMMPS version | It may not read, or may read wrongly. | Convert it with the build that wrote it (-restart2data) and use read_data. |
| LAMMPS: no restart file in a long run | A walltime limit costs the whole run. | Add restart (see How do I keep long LAMMPS runs safe?). |
Continue from here starts a new run from a finished one's end: for VASP you choose the final structure only, the structure with the charge density, or both with the wavefunctions too; for LAMMPS, the final structure or the restart file. Set up shows ISTART as "Starting orbitals" and ICHARG as "Starting charge", each explained, and pre-flight checks the new run before you submit.