From f2baed74ec391f1d4231ba05ad740d985596b6cc Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Dec 2009 14:55:01 +0100 Subject: [PATCH] Fixed name clashes with pre-defined names in our favorite operating system from Redmond, WA --- include/types/fcdata.h | 2 +- src/gmxlib/orires.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/types/fcdata.h b/include/types/fcdata.h index 05ca16fe0b..da947909fd 100644 --- a/include/types/fcdata.h +++ b/include/types/fcdata.h @@ -73,7 +73,7 @@ typedef struct { typedef struct { real fc; /* Force constant for the restraints */ real edt; /* Multiplication factor for time averaging */ - real edt1; /* 1 - edt */ + real edt_1; /* 1 - edt */ real exp_min_t_tau; /* Factor for slowly switching on the force */ int nr; /* The number of orientation restraints */ int nex; /* The number of experiments */ diff --git a/src/gmxlib/orires.c b/src/gmxlib/orires.c index 0b7dfec4cc..0708c11075 100644 --- a/src/gmxlib/orires.c +++ b/src/gmxlib/orires.c @@ -111,13 +111,13 @@ void init_orires(FILE *fplog,const gmx_mtop_t *mtop, { od->Dtav = od->Dins; od->edt = 0.0; - od->edt1 = 1.0; + od->edt_1= 1.0; } else { snew(od->Dtav,od->nr); od->edt = exp(-ir->delta_t/ir->orires_tau); - od->edt1 = 1.0 - od->edt; + od->edt_1= 1.0 - od->edt; /* Extend the state with the orires history */ state->flags |= (1<edt != 0); edt = od->edt; - edt1 = od->edt1; + edt_1= od->edt_1; S = od->S; Dinsl= od->Dinsl; Dins = od->Dins; @@ -475,7 +475,7 @@ real calc_orires_dev(const gmx_multisim_t *ms, */ for(i=0; i<5; i++) { - Dtav[d][i] = edt*hist->orire_Dtav[d*5+i] + edt1*Dins[d][i]; + Dtav[d][i] = edt*hist->orire_Dtav[d*5+i] + edt_1*Dins[d][i]; } } -- 2.22.0