@@ -110,8 +110,7 @@ namespace CoefClasses
110110
111111 copyfields (ret);
112112
113- assert ((" CylStruct::deepcopy dimension mismatch" ,
114- (mmax+1 )*nmax == store.size ()));
113+ assert ((mmax+1 )*nmax == store.size () && " CylStruct::deepcopy dimension mismatch" );
115114
116115 ret->C = C;
117116 ret->coefs = std::make_shared<coefType>(ret->store .data (), mmax+1 , nmax);
@@ -128,8 +127,7 @@ namespace CoefClasses
128127
129128 copyfields (ret);
130129
131- assert ((" SphStruct::deepcopy dimension mismatch" ,
132- (lmax+1 )*(lmax+2 )/2 *nmax == store.size ()));
130+ assert ((lmax+1 )*(lmax+2 )/2 *nmax == store.size () && " SphStruct::deepcopy dimension mismatch" );
133131
134132 ret->C = C;
135133 ret->coefs = std::make_shared<coefType>
@@ -149,7 +147,7 @@ namespace CoefClasses
149147
150148 copyfields (ret);
151149
152- assert ((" SlabStruct::deepcopy dimension mismatch " , dim == store.size ()));
150+ assert ((dim == store.size ()) && " SlabStruct::deepcopy dimension mismatch " );
153151
154152 ret->C = C;
155153 ret->coefs = std::make_shared<coefType>(ret->store .data (), nx, ny, nz);
@@ -171,7 +169,7 @@ namespace CoefClasses
171169
172170 copyfields (ret);
173171
174- assert ((" CubeStruct::deepcopy dimension mismatch " , dim == store.size ()));
172+ assert ((dim == store.size ()) && " CubeStruct::deepcopy dimension mismatch " );
175173
176174 ret->C = C;
177175 ret->coefs = std::make_shared<coefType>(ret->store .data (), nx, ny, nz);
@@ -193,8 +191,7 @@ namespace CoefClasses
193191
194192 copyfields (ret);
195193
196- assert ((" TblStruct::deepcopy dimension mismatch" ,
197- cols == store.size ()));
194+ assert ((cols == store.size ()) && " TblStruct::deepcopy dimension mismatch" );
198195
199196 ret->C = C;
200197 ret->coefs = std::make_shared<coefType>(ret->store .data (), cols);
@@ -209,8 +206,7 @@ namespace CoefClasses
209206
210207 copyfields (ret);
211208
212- assert ((" TrajStruct::deepcopy dimension mismatch" ,
213- traj*rank == store.size ()));
209+ assert ((traj*rank == store.size ()) && " TrajStruct::deepcopy dimension mismatch" );
214210
215211 ret->C = C;
216212 ret->coefs = std::make_shared<coefType>(ret->store .data (), traj, rank);
@@ -226,8 +222,7 @@ namespace CoefClasses
226222
227223 copyfields (ret);
228224
229- assert ((" SphFldStruct::deepcopy dimension mismatch" ,
230- nfld*(lmax+1 )*(lmax+2 )/2 *nmax == store.size ()));
225+ assert (nfld*(lmax+1 )*(lmax+2 )/2 *nmax == store.size () && " SphFldStruct::deepcopy dimension mismatch" );
231226
232227 ret->C = C;
233228 ret->coefs = std::make_shared<coefType>
@@ -246,8 +241,7 @@ namespace CoefClasses
246241
247242 copyfields (ret);
248243
249- assert ((" CylFldStruct::deepcopy dimension mismatch" ,
250- nfld*(mmax+1 )*nmax == store.size ()));
244+ assert ((nfld*(mmax+1 )*nmax == store.size ()) && " CylFldStruct::deepcopy dimension mismatch" );
251245
252246 ret->C = C;
253247 ret->coefs = std::make_shared<coefType>
0 commit comments