hiddenSymmetries / VMEC2000

MIT License
8 stars 5 forks source link

Fixed netcdf warnings. #12

Closed landreman closed 2 years ago

landreman commented 2 years ago

This PR fixes error messages that were being printed whenever VMEC runs:

% cdfPurVar_1d--E-- A netCDF error has occurred in: nf_put_var_double
while processing: DMerc
 NetCDF: Start+count exceeds dimension bound                                    

% cdfPurVar_1d--E-- A netCDF error has occurred in: nf_put_var_double
while processing: DShear
 NetCDF: Start+count exceeds dimension bound                                    

% cdfPurVar_1d--E-- A netCDF error has occurred in: nf_put_var_double
while processing: DWell
 NetCDF: Start+count exceeds dimension bound                                    

% cdfPurVar_1d--E-- A netCDF error has occurred in: nf_put_var_double
while processing: DCurr
 NetCDF: Start+count exceeds dimension bound                                    

% cdfPurVar_1d--E-- A netCDF error has occurred in: nf_put_var_double
while processing: DGeod
 NetCDF: Start+count exceeds dimension bound 

Also, the tests were updated to use scipy.io.netcdf_file instead of scipy.io.netcdf.netcdf_file, consistent with the latter being deprecated in scipy. Finally, a typo vn_qfact -> vn_iotaf was fixed, matching a fix in the stellopt version of vmec.