ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/branches/sync4pymol12/src/mengine/src/active.c
Revision: 58
Committed: Mon Dec 1 06:44:59 2008 UTC (13 years, 6 months ago) by wdelano
Original Path: trunk/src/mengine/src/active.c
File size: 446 byte(s)
Log Message:
code merge 20081130
Line File contents
1 #define EXTERN extern
2
3 #include "pcwin.h"
4 #include "pcmod.h"
5 #include "fix.h"
6
7 void set_active()
8 {
9 int i;
10 long int minflag;
11
12 minflag = (1L << MIN_MASK);
13
14 for (i=1; i <= natom; i++)
15 {
16 if (atom[i].flags & minflag)
17 atom[i].use = FALSE;
18 else
19 atom[i].use = TRUE;
20 }
21 // fixed atoms
22 for (i=0; i < fx_atom.natom_fix; i++)
23 atom[fx_atom.katom_fix[i]].use = FALSE;
24 }