#include "largefiles.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "InfoStream.h"
#include "Molecule.h"
#include "strlib.h"
#include "MStream.h"
#include "Communicate.h"
#include "Node.h"
#include "ObjectArena.h"
#include "Parameters.h"
#include "PDB.h"
#include "SimParameters.h"
#include "Hydrogen.h"
#include "UniqueSetIter.h"
#include "charm++.h"
#include "ComputeGridForce.h"
#include "GridForceGrid.h"
#include "MGridforceParams.h"
#include "Debug.h"
#include "CompressPsf.h"
#include "ParallelIOMgr.h"
#include <deque>
#include <algorithm>
Go to the source code of this file.
#define GROMACS_EXCLUSIONS 1 |
#define M_PI 3.14159265358979323846 |
#define MIN_DEBUG_LEVEL 3 |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 46 of file Molecule.C.
int getLCPOTypeAmber |
( |
char |
atomType[11], |
|
|
int |
numBonds |
|
) |
| |
|
inline |
Definition at line 2640 of file Molecule.C.
2643 if (atomType[0] ==
'H' || atomType[0] ==
'h') {
2647 }
else if (atomType[0] ==
'C' || atomType[0] ==
'c') {
2650 strcmp(atomType,
"CT" )==0 )
2658 else if (numBonds == 2)
2660 else if (numBonds == 3)
2662 else if (numBonds == 4)
2670 else if (numBonds == 3)
2677 }
else if (atomType[0] ==
'N' || atomType[0] ==
'n') {
2678 if ( strcmp(atomType,
"N3" ) == 0 ) {
2681 else if (numBonds == 2)
2683 else if (numBonds == 3)
2691 else if (numBonds == 2)
2693 else if (numBonds == 3)
2700 }
else if (atomType[0] ==
'O' || atomType[0] ==
'o') {
2702 if ( strcmp(atomType,
"O" )==0) {
2704 }
else if (strcmp(atomType,
"O2" )==0) {
2709 else if (numBonds == 2)
2716 }
else if (atomType[0] ==
'S' || atomType[0] ==
's') {
2717 if ( strcmp(atomType,
"SH" )==0) {
2724 }
else if (atomType[0] ==
'P' || atomType[0] ==
'p') {
2727 else if (numBonds == 4)
2731 }
else if (atomType[0] ==
'Z') {
2733 }
else if ( strcmp(atomType,
"MG" )==0) {
int getLCPOTypeCharmm |
( |
char |
atomType[11], |
|
|
int |
numBonds |
|
) |
| |
|
inline |
Definition at line 2741 of file Molecule.C.
2744 if (atomType[0] ==
'H') {
2748 }
else if (atomType[0] ==
'C') {
2750 atomType[1] ==
'T' ||
2751 strcmp(atomType,
"CP1" )==0 ||
2752 strcmp(atomType,
"CP2" )==0 ||
2753 strcmp(atomType,
"CP3" )==0 ||
2754 strcmp(atomType,
"CS" )==0 ) {
2757 else if (numBonds == 2)
2759 else if (numBonds == 3)
2761 else if (numBonds == 4)
2767 strcmp(atomType,
"C" )==0 ||
2768 strcmp(atomType,
"CA" )==0 ||
2769 strcmp(atomType,
"CC" )==0 ||
2770 strcmp(atomType,
"CD" )==0 ||
2771 strcmp(atomType,
"CN" )==0 ||
2772 strcmp(atomType,
"CY" )==0 ||
2773 strcmp(atomType,
"C3" )==0 ||
2774 strcmp(atomType,
"CE1" )==0 ||
2775 strcmp(atomType,
"CE2" )==0 ||
2776 strcmp(atomType,
"CST" )==0 ||
2777 strcmp(atomType,
"CAP" )==0 ||
2778 strcmp(atomType,
"COA" )==0 ||
2779 strcmp(atomType,
"CPT" )==0 ||
2780 strcmp(atomType,
"CPH1")==0 ||
2781 strcmp(atomType,
"CPH2")==0
2785 else if (numBonds == 3)
2794 }
else if (atomType[0] ==
'N') {
2799 strcmp(atomType,
"NH3" )==0 ||
2802 strcmp(atomType,
"NP" )==0
2806 else if (numBonds == 2)
2808 else if (numBonds == 3)
2814 strcmp(atomType,
"NY" )==0 ||
2815 strcmp(atomType,
"NC2" )==0 ||
2816 strcmp(atomType,
"N" )==0 ||
2817 strcmp(atomType,
"NH1" )==0 ||
2818 strcmp(atomType,
"NH2" )==0 ||
2819 strcmp(atomType,
"NR1" )==0 ||
2820 strcmp(atomType,
"NR2" )==0 ||
2821 strcmp(atomType,
"NR3" )==0 ||
2822 strcmp(atomType,
"NPH" )==0 ||
2823 strcmp(atomType,
"NC" )==0
2827 else if (numBonds == 2)
2829 else if (numBonds == 3)
2838 }
else if (atomType[0] ==
'O') {
2840 strcmp(atomType,
"OH1" )==0 ||
2841 strcmp(atomType,
"OS" )==0 ||
2842 strcmp(atomType,
"OC" )==0 ||
2843 strcmp(atomType,
"OT" )==0
2847 else if (numBonds == 2)
2852 strcmp(atomType,
"O" )==0 ||
2853 strcmp(atomType,
"OB" )==0 ||
2854 strcmp(atomType,
"OST" )==0 ||
2855 strcmp(atomType,
"OCA" )==0 ||
2856 strcmp(atomType,
"OM" )==0
2860 strcmp(atomType,
"OC" )==0
2868 }
else if (atomType[0] ==
'S') {
2875 }
else if (atomType[0] ==
'P') {
2878 else if (numBonds == 4)