11 #ifndef CDELPHIDATA_H_
12 #define CDELPHIDATA_H_
19 #include "../misc/misc_grid.h"
20 #include "../misc/misc_timer.h"
21 #include "../io/io_datatype.h"
22 #include "../interface/environment.h"
23 #include "../interface/interface_datacontainer.h"
36 shared_ptr<CDelphiDataMarshal> pddm;
46 virtual void setMap();
63 cout <<
"****************************************************************\n";
64 cout <<
"* CDelphiData is constructed *\n";
65 cout <<
"****************************************************************\n";
72 pddm->read(pddm->strParamFile);
74 pddm->updateParameters();
78 #ifdef DEBUG_DELPHI_MAP
79 showMap(
"delphicpp_datacontainer.dat");
98 cout <<
"****************************************************************\n";
99 cout <<
"* CDelphiData is constructed *\n";
100 cout <<
"****************************************************************\n";
114 pddm->iGrid = mcce_data->gsize;
115 if (5 > pddm->iGrid || 2000 < pddm->iGrid)
COutOfRange_GSIZE warning(pddm->iGrid);
118 pddm->fScale = (mcce_data->grids_per_ang+0.01*(float)mcce_data->n_retry)/pow(2,mcce_data->del_runs-1);
119 if (0.0 >= pddm->fScale || 40.0 <= pddm->fScale)
COutofRange_SCALE warning(pddm->fScale);
122 pddm->strPdbFile = mcce_data->pdbfile;
123 pddm->iPdbFormatIn = mcce_data->pdbformat;
126 pddm->fInDielec = mcce_data->indi;
130 pddm->fExDielec = mcce_data->exdi;
131 if (0.0 >= pddm->fExDielec || 1000.0 < pddm->fExDielec)
COutOfRange_EXDI warning(pddm->fExDielec);
134 pddm->fIonRadius = mcce_data->ionrad;
135 if (0.0 > pddm->fIonRadius || 10.0 < pddm->fIonRadius)
COutOfRange_IONRAD warning(pddm->fIonRadius);
138 pddm->vctfProbeRadius[0] = mcce_data->prbrad;
139 if (0.0 > pddm->vctfProbeRadius[0] || 10.0 <= pddm->vctfProbeRadius[0])
COutOfRange_PRBRAD warning(pddm->vctfProbeRadius[0]);
142 pddm->vctfSalt[0] = mcce_data->salt;
143 if (0.0 > pddm->vctfSalt[0] || 10.0 < pddm->vctfSalt[0])
COutOfRange_SALT warning(pddm->vctfSalt[0]);
146 pddm->iBndyType = mcce_data->bndcon;
160 pddm->gfOffCenter.nX = mcce_data->center[0]; pddm->gfOffCenter.nY = mcce_data->center[1]; pddm->gfOffCenter.nZ = mcce_data->center[2];
163 pddm->bSiteOut =
true;
169 pddm->bAtomInSite =
true; pddm->bCoulombPotentialInSite =
true; pddm->bGridPotentialInSite =
true;
172 pddm->bGridEng =
true; pddm->bSolvEng =
true;
175 pddm->bSpectralRadius =
true; pddm->fSpectralRadius = 0.8;
177 pddm->updateParameters();
191 cout <<
"****************************************************************\n";
192 cout <<
"* CDelphiData is destroyed *\n";
193 cout <<
"****************************************************************\n";
204 virtual void showMap(
const string& strMapFile);
213 virtual void reset(
const string& strF95File);
217 #endif // CDELPHIDATA_H_
Definition: delphi_exceptions.h:317
~CDelphiData()
Definition: delphi_data.h:187
Definition: delphi_exceptions.h:261
CDelphiData(SMCCE *mcce_data, shared_ptr< CTimer > pTimer)
Definition: delphi_data.h:94
Definition: interface_datacontainer.h:31
Definition: delphi_data.h:30
Definition: delphi_exceptions.h:471
Definition: delphi_constants.h:73
CDelphiData(int argc, char *argv[], shared_ptr< CTimer > pTimer)
Definition: delphi_data.h:59
Definition: delphi_exceptions.h:331
Definition: delphi_datamarshal.h:38
Definition: delphi_exceptions.h:303
Definition: delphi_exceptions.h:387
Definition: delphi_exceptions.h:345