/* This program calculates for each residu the difference of G when the protein is at the membran and when it is translocated in the solvant. This program works with the charmm output file. To use it you will have to extract the data given by the eef1 print command and then take the residu number and the G value in a separate file wich will be analazed here. */ #include #include #include #include int main(int argc, char **argv){ if(argc!=2){ printf("Usage: ./e1.o filename\n"); exit(1); } char *filename=argv[1]; int nbres=223; int nbstep=2000; int nbatom=1722; float G[nbstep][nbres]; int resNumber=0; float val=0.0; int i,j; int step=0; int ind=0; for(i=0;i