ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/branches/sync4pymol12/src/mengine/src/active.c
Revision: 93
Committed: Sat Jan 17 23:24:55 2009 UTC (13 years, 5 months ago) by wdelano
File size: 446 byte(s)
Log Message:
branch created
Line User Rev File contents
1 wdelano 58 #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     }