type=plumed
arg="pdbrenumber --ipdb in.pdb --opdb out.pdb"

# this is to avoid storing a huge pdb file
# just to have >100k atoms
function plumed_regtest_before(){
  awk 'BEGIN{
    n=100100;
    for(i=1;i<=n;i++) {
      printf("ATOM      1  A   XXX     2    %8.3f%8.3f%8.3f  1.00  1.00\n",(i%100)*0.01,(int(i/100)%100)*0.01,int(i/100000)%100*0.01);
    }
  }' > in.pdb
}

function plumed_regtest_after(){
  tail -n 200 out.pdb > ref.pdb
}


