@@ -95,32 +95,27 @@ void Cavity::loadCavity(const std::string & fname) {
95
95
// 1. Get the weights
96
96
cnpy::NpyArray raw_weights = loaded_cavity[" weights" ];
97
97
if (raw_weights.shape [0 ] != nElements_)
98
- PCMSOLVER_ERROR (" elementArea_: incoherent dimensions read in" ,
99
- BOOST_CURRENT_FUNCTION);
98
+ PCMSOLVER_ERROR (" elementArea_: incoherent dimensions read in" );
100
99
elementArea_ = cnpy::custom::npy_to_eigen<double >(raw_weights);
101
100
// 2. Get the element sphere center
102
101
cnpy::NpyArray raw_elSphCenter = loaded_cavity[" elSphCenter" ];
103
102
if (raw_elSphCenter.shape [1 ] != nElements_)
104
- PCMSOLVER_ERROR (" elementSphereCenter_: incoherent dimensions read in" ,
105
- BOOST_CURRENT_FUNCTION);
103
+ PCMSOLVER_ERROR (" elementSphereCenter_: incoherent dimensions read in" );
106
104
elementSphereCenter_ = cnpy::custom::npy_to_eigen<double >(raw_elSphCenter);
107
105
// 3. Get the element radius
108
106
cnpy::NpyArray raw_elRadius = loaded_cavity[" elRadius" ];
109
107
if (raw_elRadius.shape [0 ] != nElements_)
110
- PCMSOLVER_ERROR (" elementRadius_: incoherent dimensions read in" ,
111
- BOOST_CURRENT_FUNCTION);
108
+ PCMSOLVER_ERROR (" elementRadius_: incoherent dimensions read in" );
112
109
elementRadius_ = cnpy::custom::npy_to_eigen<double >(raw_elRadius);
113
110
// 4. Get the centers
114
111
cnpy::NpyArray raw_centers = loaded_cavity[" centers" ];
115
112
if (raw_centers.shape [1 ] != nElements_)
116
- PCMSOLVER_ERROR (" elementCenter_: incoherent dimensions read in" ,
117
- BOOST_CURRENT_FUNCTION);
113
+ PCMSOLVER_ERROR (" elementCenter_: incoherent dimensions read in" );
118
114
elementCenter_ = cnpy::custom::npy_to_eigen<double >(raw_centers);
119
115
// 5. Get the normal vectors
120
116
cnpy::NpyArray raw_normals = loaded_cavity[" normals" ];
121
117
if (raw_normals.shape [1 ] != nElements_)
122
- PCMSOLVER_ERROR (" elementNormal_: incoherent dimensions read in" ,
123
- BOOST_CURRENT_FUNCTION);
118
+ PCMSOLVER_ERROR (" elementNormal_: incoherent dimensions read in" );
124
119
elementNormal_ = cnpy::custom::npy_to_eigen<double >(raw_normals);
125
120
126
121
// Reconstruct the elements_ vector
0 commit comments