# Is it possible to continue simulation in the same file by -noappend option?

**URL:** <https://gromacs.bioexcel.eu/t/is-it-possible-to-continue-simulation-in-the-same-file-by-noappend-option/1068>\
**Category:** User discussions\
**Created:** [November 10, 2020, 6:42pm UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-continue-simulation-in-the-same-file-by-noappend-option/1068 "2020-11-10T18:42:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JakubH](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@JakubH](https://gromacs.bioexcel.eu/u/JakubH)\
**Post date:** [November 10, 2020, 6:42pm UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-continue-simulation-in-the-same-file-by-noappend-option/1068/1 "2020-11-10T18:42:38Z")

</div>

GROMACS version: 2018.4  
GROMACS modification: No  
Hi, I have questions. I hope yuo will help me.

1. In the past I used -append when I run the simulation. For example:  
First I prepared .tpr file  
`gmx grompp -f eq4.mdp -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
Then I run a simulation  
`gmx mdrun -deffnm eq1 -v`  
Then for example I stop simulation by ctrl+C and run my simulation again  
`gmx mdrun -deffnm eq1 -cpi eq1.cpt -append -v` - so my trajectory and energies was add to my eq1.edr and eq1.xtc files

Now I have a bigger system and I need to use -noappend, because I will transfer my files quite often. For example, I will make new files (part1,part2 etc) every 100 ns.  
So ok the beginning is the same  
gmx grompp -f eq4.mdp -c eq2\_333temp.gro -r eq2\_333temp.gro -p system.top -o eq1.tpr  
gmx mdrun -deffnm eq1 -v  
then I changed in my mdp file number of steps 100mln -\> 200 mln  
ok so I change them and I run my simulation  
`gmx grompp -f eq4.mdp (in .mdp file I change number of steps) -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
then I use -noappend  
`gmx grompp -f eq4.mdp -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
so I will get files like eq1.part0002.edr/trr/xtc  
but for example my simulation will stop at 150 mln, because I use ctrl+C or there is a problem with clusters etc.  
But when I run  
`gmx mdrun -deffnm eq1 -cpi eq1.cpt -noappend -v`  
It will create another files eq1.part000 **3**.edr/trr/xtcfrom 150 to 200 mln steps instead of adding to files eq1.part0002.edr/trr/xtc  
Is it possible to continue to writing in the same file by -noappend option?

1. and I have also a question about backing up my files - is it enough to keep checkpoints files or I should better have a copy of all my files (it will be hard because I would need a lot of space).
2. Is it true that a sudden power cut can damage my .edr and trajectory files? Because last time my .edr file was damaged but my disk was good and I had enough space, so maybe a power cut could damage my simulation when I continue them on the next day?

Thank you in advance  
Jakub

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [November 11, 2020, 9:39am UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-continue-simulation-in-the-same-file-by-noappend-option/1068/2 "2020-11-11T09:39:34Z")

</div>

Hi,  
In general, If your run generates very large files, you can consider to tune the save frequency for xtc edr and log files according your needs, and if you need to generate a trr file and which information you need to have in trr file (position, velocity, force). See mdp option for output control

> [@JakubH](#):
>
> 1. In the past I used -append when I run the simulation. For example:  
> First I prepared .tpr file  
> `gmx grompp -f eq4.mdp -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
> Then I run a simulation  
> `gmx mdrun -deffnm eq1 -v`  
> Then for example I stop simulation by ctrl+C and run my simulation again  
> `gmx mdrun -deffnm eq1 -cpi eq1.cpt -append -v` - so my trajectory and energies was add to my eq1.edr and eq1.xtc files  
> Now I have a bigger system and I need to use -noappend, because I will transfer my files quite often. For example, I will make new files (part1,part2 etc) every 100 ns.  
> So ok the beginning is the same  
> gmx grompp -f eq4.mdp -c eq2\_333temp.gro -r eq2\_333temp.gro -p system.top -o eq1.tpr  
> gmx mdrun -deffnm eq1 -v  
> then I changed in my mdp file number of steps 100mln → 200 mln  
> ok so I change them and I run my simulation  
> `gmx grompp -f eq4.mdp (in .mdp file I change number of steps) -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
> then I use -noappend  
> `gmx grompp -f eq4.mdp -c eq2_333temp.gro -r eq2_333temp.gro -p system.top -o eq1.tpr`  
> so I will get files like eq1.part0002.edr/trr/xtc  
> but for example my simulation will stop at 150 mln, because I use ctrl+C or there is a problem with clusters etc.  
> But when I run  
> `gmx mdrun -deffnm eq1 -cpi eq1.cpt -noappend -v`  
> It will create another files eq1.part000 **3**.edr/trr/xtcfrom 150 to 200 mln steps instead of adding to files eq1.part0002.edr/trr/xtc  
> Is it possible to continue to writing in the same file by -noappend option?
> 
> > No
> 
> 1. and I have also a question about backing up my files - is it enough to keep checkpoints files or I should better have a copy of all my files (it will be hard because I would need a lot of space).
> 
> > checkpoint file has the information of the last frame. Thus it depends on which information you need to save.
> 
> 1. Is it true that a sudden power cut can damage my .edr and trajectory files? Because last time my .edr file was damaged but my disk was good and I had enough space, so maybe a power cut could damage my simulation when I continue them on the next day?
> 
> > if the power cut occurs in the moment the files are saved, the files are damaged. You can recover the last frame information from the checkpoint file (if it is not damaged)

You can find some help also here  
[http://manual.gromacs.org/current/user-guide/managing-simulations.html](http://manual.gromacs.org/current/user-guide/managing-simulations.html)

Best regards  
Alessandra
