Definition at line 25 of file DumpRestart.c.
25 {
26 char DUMP[256];
27 FILE *fpDUMP;
28 sprintf(DUMP,
"%s.Restart",
prefix);
29 fpDUMP = fopen(DUMP, "w");
30 if(fpDUMP == NULL) {
31 fprintf(stderr, "Error opening file %s for writing\n", DUMP);
32 return;
33 }
34
35 fprintf(fpDUMP,
"timeNow %lf\n",
timeNow);
36 fprintf(fpDUMP,
"nAtom %d\n",
nAtom);
37 fprintf(fpDUMP,
"nBond %d\n",
nBond);
38 fprintf(fpDUMP,
"nAtomType %d\n",
nAtomType);
39 fprintf(fpDUMP,
"nBondType %d\n",
nBondType);
40 fprintf(fpDUMP,
"region[1] %0.16lf\n",
region[1]);
41 fprintf(fpDUMP,
"region[2] %0.16lf\n",
region[2]);
42
43 int n;
44 fprintf(fpDUMP, "Atoms\n");
45 for(n = 1; n <=
nAtom; n ++)
47
48
49 fprintf(fpDUMP, "Bonds\n");
50 for(n=1; n<=
nBond; n++)
52
53 fclose(fpDUMP);
54}
References atom1, atom2, atomID, atomRadius, atomType, BondID, BondType, kb, molID, nAtom, nAtomType, nBond, nBondType, prefix, region, ro, rx, ry, timeNow, vx, and vy.
Referenced by main().