41
41
#include " green/GreenData.hpp"
42
42
#include " solver/SolverData.hpp"
43
43
#include " PCMInput.h"
44
- #include " utils/PhysicalConstants.hpp"
45
44
#include " utils/Solvent.hpp"
46
45
#include " utils/Sphere.hpp"
47
46
@@ -65,6 +64,7 @@ void Input::reader(const std::string & filename)
65
64
Getkw input_ = Getkw (filename, false , true );
66
65
units_ = input_.getStr (" UNITS" );
67
66
CODATAyear_ = input_.getInt (" CODATA" );
67
+ initBohrToAngstrom (bohrToAngstrom, CODATAyear_);
68
68
69
69
const Section & mol = input_.getSect (" MOLECULE" );
70
70
if (mol.isDefined ()) geometry_ = mol.getDblVec (" GEOMETRY" );
@@ -149,7 +149,7 @@ void Input::reader(const std::string & filename)
149
149
} else {
150
150
solvent_ = solvents ()[name];
151
151
}
152
- probeRadius_ = solvent_.probeRadius * angstromToBohr (CODATAyear_ );
152
+ probeRadius_ = solvent_.probeRadius * angstromToBohr ();
153
153
// Specification of the solvent by name means isotropic PCM
154
154
// We have to initialize the Green's functions data here, Solvent class
155
155
// is an helper class and should not be used in the core classes.
@@ -187,27 +187,29 @@ std::string trim_and_upper(const char * src)
187
187
void Input::reader (const PCMInput & host_input)
188
188
{
189
189
CODATAyear_ = 2010 ;
190
+ std::cout << " Calling initBohrToAngstrom" << std::endl;
191
+ initBohrToAngstrom (bohrToAngstrom, CODATAyear_);
190
192
191
193
type_ = trim_and_upper (host_input.cavity_type );
192
- area_ = host_input.area * angstrom2ToBohr2 (CODATAyear_ );
194
+ area_ = host_input.area * angstrom2ToBohr2 ();
193
195
patchLevel_ = host_input.patch_level ;
194
- coarsity_ = host_input.coarsity * angstromToBohr (CODATAyear_ );
195
- minDistance_ = host_input.min_distance * angstromToBohr (CODATAyear_ );
196
+ coarsity_ = host_input.coarsity * angstromToBohr ();
197
+ minDistance_ = host_input.min_distance * angstromToBohr ();
196
198
derOrder_ = host_input.der_order ;
197
199
if (type_ == " RESTART" ) {
198
200
cavFilename_ = trim (host_input.restart_name ); // No case conversion here!
199
201
}
200
202
201
203
scaling_ = host_input.scaling ;
202
204
radiiSet_ = trim_and_upper (host_input.radii_set );
203
- minimalRadius_ = host_input.min_radius * angstromToBohr (CODATAyear_ );
205
+ minimalRadius_ = host_input.min_radius * angstromToBohr ();
204
206
mode_ = std::string (" IMPLICIT" );
205
207
206
208
std::string name = trim_and_upper (host_input.solvent );
207
209
if (name.empty ()) {
208
210
hasSolvent_ = false ;
209
211
// Get the probe radius
210
- probeRadius_ = host_input.probe_radius * angstromToBohr (CODATAyear_ );
212
+ probeRadius_ = host_input.probe_radius * angstromToBohr ();
211
213
// Get the contents of the Green<inside> section...
212
214
// ...and initialize the data members
213
215
greenInsideType_ = trim_and_upper (host_input.inside_type );
@@ -223,7 +225,7 @@ void Input::reader(const PCMInput & host_input)
223
225
// Just initialize the solvent object in this class
224
226
hasSolvent_ = true ;
225
227
solvent_ = solvents ()[name];
226
- probeRadius_ = solvent_.probeRadius * angstromToBohr (CODATAyear_ );
228
+ probeRadius_ = solvent_.probeRadius * angstromToBohr ();
227
229
// Specification of the solvent by name means isotropic PCM
228
230
// We have to initialize the Green's functions data here, Solvent class
229
231
// is an helper class and should not be used in the core classes.
@@ -266,7 +268,7 @@ void Input::initMolecule()
266
268
j += 4 ;
267
269
}
268
270
// 3. list of atoms and list of spheres
269
- double factor = angstromToBohr (CODATAyear_ );
271
+ double factor = angstromToBohr ();
270
272
std::vector<Atom> radiiSet, atoms;
271
273
if ( radiiSet_ == " UFF" ) {
272
274
radiiSet = initUFF ();
0 commit comments