@@ -188,7 +188,7 @@ int vif_main(int argc, char* argv[]) {
188188 main_state = " read data" ;
189189
190190 state = " properties" ;
191- props.resize (nmodel, ngal, 1 +nprop);
191+ props.resize (nmodel, 1 +nprop, ngal );
192192 in.read (props);
193193
194194 prepend (prop_names, vec1s{" chi2" });
@@ -197,11 +197,11 @@ int vif_main(int argc, char* argv[]) {
197197 return 1 ;
198198 }
199199
200- vec3f vgrid (nmodel, ngal, ngrid );
200+ vec3f vgrid (nmodel, ngrid, ngal );
201201 vec1u idm (ngrid);
202202 for (uint_t im = 0 ; im < nmodel; ++im) {
203203 for (uint_t ig : range (ngrid)) {
204- vgrid.safe (im,_,ig ) = grid.safe [ig].safe [idm.safe [ig]];
204+ vgrid.safe (im,ig,_ ) = grid.safe [ig].safe [idm.safe [ig]];
205205 }
206206
207207 increment_index_list (idm, grid_dims);
@@ -213,10 +213,10 @@ int vif_main(int argc, char* argv[]) {
213213 otbl.reach_hdu (1 );
214214
215215 for (uint_t i : range (prop_names)) {
216- otbl.write_column (prop_names[i], props (_,_,i ));
216+ otbl.write_column (prop_names[i], props (_,i,_ ));
217217 }
218218 for (uint_t i : range (grid_names)) {
219- otbl.write_column (grid_names[i], vgrid (_,_,i ));
219+ otbl.write_column (grid_names[i], vgrid (_,i,_ ));
220220 }
221221 } else if (ftype == ' B' ) {
222222 if (debug) {
0 commit comments