Rev 14179 | Rev 14626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14179 | Rev 14249 | ||
---|---|---|---|
Line 6503... | Line 6503... | ||
6503 | if (bond[get_bond (a_ref, nb[i]) - 1].btype == 'S') { |
6503 | if (bond[get_bond (a_ref, nb[i]) - 1].btype == 'S') { |
6504 | strcpy (nb_el, atom[nb[i] - 1].element); |
6504 | strcpy (nb_el, atom[nb[i] - 1].element); |
6505 | if (!strcmp (nb_el, "C ")) |
6505 | if (!strcmp (nb_el, "C ")) |
6506 | c_count++; |
6506 | c_count++; |
6507 | else |
6507 | else |
6508 | if (strcmp (nb_el, "H ") /*&& strcmp (nb_el, "D ") */ && |
6508 | if (strcmp (nb_el, "H ") /*&& strcmp (nb_el, "D ") */ && strcmp (nb_el, "LP")) |
6509 | strcmp (nb_el, "LP")) |
- | |
6510 | /* v0.3n: D */ |
6509 | /* v0.3n: D */ |
6511 | het_count++; |
6510 | het_count++; |
6512 |
|
6511 | if (is_hydroxy (a_ref, nb[i])) |
6513 |
|
6512 | oh_count++; |
6514 |
|
6513 | if (is_alkoxy (a_ref, nb[i]) || is_aryloxy (a_ref, nb[i])) |
6515 |
|
6514 | /* fixed in v0.3b */ |
6516 |
|
6515 | or_count++; |
6517 |
|
6516 | if (!strcmp (nb_el, "N ")) |
6518 |
|
6517 | n_count++; |
6519 |
|
6518 | if (!strcmp (nb_el, "F ") || !strcmp (nb_el, "CL") || |
6520 |
|
6519 | !strcmp (nb_el, "BR") || !strcmp (nb_el, "I ") |
6521 |
|
6520 | || !strcmp (nb_el, "AT")) |
6522 |
|
6521 | hal_count++; |
6523 | } |
6522 | } |
6524 | } |
6523 | } |
6525 | het_count = oh_count + or_count + hal_count + n_count; |
6524 | het_count = oh_count + or_count + hal_count + n_count; |
6526 | /* fixed in v0.3b */ |
6525 | /* fixed in v0.3b */ |
6527 | if (c_count != 1 || het_count != 2) |
6526 | if (c_count != 1 || het_count != 2) |