ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/branches/sync4pymol12/src/mengine/src/active.c
(Generate patch)
# Line 1 | Line 1
1 < #define EXTERN extern
2 <
3 < #include "pcwin.h"
4 < #include "pcmod.h"
5 <
6 < void set_active()
7 < {
8 <   int i;
9 <   long int minflag;
10 <
11 <   minflag = (1L << MIN_MASK);
12 <  
13 <   for (i=1; i <= natom; i++)
14 <   {
15 <       if (atom[i].flags & minflag)
16 <          atom[i].use = FALSE;
17 <       else
18 <          atom[i].use = TRUE;
19 <   }
20 < }
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 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines