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[] ){ |
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 |
|
|
33 |
< |
int i,j,k; |
24 |
< |
|
33 |
> |
|
34 |
|
// initialize the arrays |
35 |
|
|
36 |
|
for(i=0;i<nLipids;i++){ |
37 |
|
|
38 |
|
atoms[nLipAtoms*i+0].type = HEAD; |
39 |
+ |
atoms[nLipAtoms*i+0].u[0] = 0.0; |
40 |
+ |
atoms[nLipAtoms*i+0].u[1] = 0.0; |
41 |
+ |
atoms[nLipAtoms*i+0].u[2] = 1.0; |
42 |
+ |
|
43 |
|
|
44 |
|
atoms[nLipAtoms*i+1].type = CH2; |
45 |
|
|
78 |
|
atoms[nLipAtoms*i+18].type = CH3; |
79 |
|
} |
80 |
|
|
81 |
< |
for(i=;i<nAtoms;i++){ |
81 |
> |
for(i=(nLipAtoms*nLipids);i<nAtoms;i++){ |
82 |
|
atoms[i].type = SSD; |
83 |
+ |
atoms[i].u[0] = 0.0; |
84 |
+ |
atoms[i].u[1] = 0.0; |
85 |
+ |
atoms[i].u[2] = 1.0; |
86 |
|
} |
87 |
+ |
|
88 |
+ |
// read and set the frames |
89 |
+ |
|
90 |
+ |
nFrames = setFrames( inName ); |
91 |
+ |
|