static at2vsitebond_t *make_at2vsitebond(int natoms,t_params plist[])
{
- bool *bVSI;
+ gmx_bool *bVSI;
int ftype,i,j,nrcheck,nr;
t_iatom *aa;
at2vsitebond_t *at2vb;
static at2vsitecon_t *make_at2vsitecon(int natoms,t_params plist[])
{
- bool *bVSI;
+ gmx_bool *bVSI;
int ftype,i,j,ai,aj,nr;
at2vsitecon_t *at2vc;
return angle;
}
-static bool calc_vsite3_param(gpp_atomtype_t atype,
+static gmx_bool calc_vsite3_param(gpp_atomtype_t atype,
t_param *param, t_atoms *at,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles )
* k,l = 2nd bonded atoms | `l
*/
- bool bXH3,bError;
+ gmx_bool bXH3,bError;
real bjk,bjl,a=-1,b=-1;
/* check if this is part of a NH3 , NH2-umbrella or CH3 group,
* i.e. if atom k and l are dummy masses (MNH* or MCH3*) */
return bError;
}
-static bool calc_vsite3fd_param(t_param *param,
+static gmx_bool calc_vsite3fd_param(t_param *param,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles)
{
* k,l = 2nd bonded atoms | `l
*/
- bool bError;
+ gmx_bool bError;
real bij,bjk,bjl,aijk,aijl,rk,rl;
bij = get_bond_length(nrbond, bonds, param->AI, param->AJ);
return bError;
}
-static bool calc_vsite3fad_param(t_param *param,
+static gmx_bool calc_vsite3fad_param(t_param *param,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles)
{
* l = 3d bonded heavy atom |
*/
- bool bSwapParity,bError;
+ gmx_bool bSwapParity,bError;
real bij,aijk;
bSwapParity = ( param->C1 == -1 );
return bError;
}
-static bool calc_vsite3out_param(gpp_atomtype_t atype,
+static gmx_bool calc_vsite3out_param(gpp_atomtype_t atype,
t_param *param, t_atoms *at,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles)
* NOTE: i is out of the j-k-l plane!
*/
- bool bXH3,bError,bSwapParity;
+ gmx_bool bXH3,bError,bSwapParity;
real bij,bjk,bjl,aijk,aijl,akjl,pijk,pijl,a,b,c;
/* check if this is part of a NH2-umbrella, NH3 or CH3 group,
return bError;
}
-static bool calc_vsite4fd_param(t_param *param,
+static gmx_bool calc_vsite4fd_param(t_param *param,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles)
{
* k,l,m = 2nd bonded atoms | `l
*/
- bool bError;
+ gmx_bool bError;
real bij,bjk,bjl,bjm,aijk,aijl,aijm,akjm,akjl;
real pk,pl,pm,cosakl,cosakm,sinakl,sinakm,cl,cm;
}
-static bool
+static gmx_bool
calc_vsite4fdn_param(t_param *param,
int nrbond, t_mybonded *bonds,
int nrang, t_mybonded *angles)
* k,l,m = 2nd bonded atoms | `l
*/
- bool bError;
+ gmx_bool bError;
real bij,bjk,bjl,bjm,aijk,aijl,aijm;
real pk,pl,pm,a,b;
-int set_vsites(bool bVerbose, t_atoms *atoms, gpp_atomtype_t atype,
+int set_vsites(gmx_bool bVerbose, t_atoms *atoms, gpp_atomtype_t atype,
t_params plist[])
{
int i,j,ftype;
int nvsite,nrbond,nrang,nridih,nrset;
- bool bFirst,bSet,bERROR;
+ gmx_bool bFirst,bSet,bERROR;
at2vsitebond_t *at2vb;
t_mybonded *bonds;
t_mybonded *angles;
return nvsite;
}
-void set_vsites_ptype(bool bVerbose, gmx_moltype_t *molt)
+void set_vsites_ptype(gmx_bool bVerbose, gmx_moltype_t *molt)
{
int ftype,i;
int nra,nrd;
int nconverted,nremoved;
atom_id atom,oatom,constr,at1,at2;
atom_id vsiteatoms[MAXATOMLIST];
- bool bKeep,bRemove,bUsed,bPresent,bThisFD,bThisOUT,bAllFD,bFirstTwo;
+ gmx_bool bKeep,bRemove,bUsed,bPresent,bThisFD,bThisOUT,bAllFD,bFirstTwo;
t_params *ps;
if (cftype == F_CONNBONDS)
int i,j,parnr,k,l,m,n,nvsite,kept_i,vsnral,vsitetype;
atom_id atom,constr,at1,at2;
atom_id vsiteatoms[MAXATOMLIST];
- bool bKeep,bUsed,bPresent,bAll3FAD,bFirstTwo;
+ gmx_bool bKeep,bUsed,bPresent,bAll3FAD,bFirstTwo;
t_params *ps;
ps = &(plist[cftype]);
int ftype,i,parnr,k,l,m,n,nvsite,kept_i,vsnral;
atom_id atom,constr;
atom_id vsiteatoms[3];
- bool bKeep,bUsed,bPresent;
+ gmx_bool bKeep,bUsed,bPresent;
t_params *ps;
ps = &(plist[cftype]);
ps->nr=kept_i;
}
-void clean_vsite_bondeds(t_params *plist, int natoms, bool bRmVSiteBds)
+void clean_vsite_bondeds(t_params *plist, int natoms, gmx_bool bRmVSiteBds)
{
int i,k,nvsite,ftype,vsite,parnr;
int *vsite_type;