1 |
+ |
#define _FILE_OFFSET_BITS 64 |
2 |
+ |
|
3 |
|
#include <stdio.h> |
4 |
|
#include <stdlib.h> |
5 |
|
|
6 |
|
|
7 |
|
#include "params.h" |
8 |
|
#include "tcProps.h" |
9 |
+ |
#include "readWrite.h" |
10 |
|
|
11 |
|
|
12 |
|
int main( int argC, char *argV[] ){ |
13 |
|
|
14 |
|
// list of 'a priori' constants |
15 |
|
|
16 |
< |
const int nLipAtoms = 19; |
17 |
< |
const int nBonds = 18; |
18 |
< |
const int nLipids = NLIPIDS; |
19 |
< |
const int nSSD = NSSD; |
20 |
< |
const int nAtoms = nLipAtoms * nLipids + nSSD; |
16 |
> |
const int nLipAtoms = NL_ATOMS; |
17 |
> |
const int nBonds = NBONDS; |
18 |
> |
const int nLipids = NLIPIDS; |
19 |
> |
const int nSSD = NSSD; |
20 |
> |
const int nAtoms = nLipAtoms * nLipids + nSSD; |
21 |
> |
|
22 |
> |
// different needed variables |
23 |
|
|
24 |
|
struct atomCoord atoms[nAtoms]; |
25 |
+ |
int i,j,k; |
26 |
+ |
char* inName; |
27 |
+ |
int nFrames; |
28 |
|
|
29 |
+ |
// system initialization |
30 |
|
|
31 |
+ |
isScanned = 0; |
32 |
+ |
fileOpen = 0; |
33 |
+ |
nFrames = 0; |
34 |
+ |
frameTimes = NULL; |
35 |
|
|
36 |
< |
int i,j,k; |
24 |
< |
|
36 |
> |
|
37 |
|
// initialize the arrays |
38 |
|
|
39 |
|
for(i=0;i<nLipids;i++){ |
40 |
|
|
41 |
|
atoms[nLipAtoms*i+0].type = HEAD; |
42 |
+ |
atoms[nLipAtoms*i+0].u[0] = 0.0; |
43 |
+ |
atoms[nLipAtoms*i+0].u[1] = 0.0; |
44 |
+ |
atoms[nLipAtoms*i+0].u[2] = 1.0; |
45 |
+ |
|
46 |
|
|
47 |
|
atoms[nLipAtoms*i+1].type = CH2; |
48 |
|
|
81 |
|
atoms[nLipAtoms*i+18].type = CH3; |
82 |
|
} |
83 |
|
|
84 |
< |
for(i=;i<nAtoms;i++){ |
84 |
> |
for(i=(nLipAtoms*nLipids);i<nAtoms;i++){ |
85 |
|
atoms[i].type = SSD; |
86 |
+ |
atoms[i].u[0] = 0.0; |
87 |
+ |
atoms[i].u[1] = 0.0; |
88 |
+ |
atoms[i].u[2] = 1.0; |
89 |
|
} |
90 |
+ |
|
91 |
+ |
// read and set the frames |
92 |
+ |
|
93 |
+ |
setFrames( inName ); |
94 |
+ |
|