MAINT: Removed superfluous code.
This commit is contained in:
@ -325,18 +325,6 @@ void DumpNetCDF::openfile()
|
|||||||
|
|
||||||
// variables specified in the input file
|
// variables specified in the input file
|
||||||
for (int i = 0; i < n_perat; i++) {
|
for (int i = 0; i < n_perat; i++) {
|
||||||
nc_type xtype;
|
|
||||||
|
|
||||||
// Type mangling
|
|
||||||
if (vtype[perat[i].field[0]] == INT) {
|
|
||||||
xtype = NC_INT;
|
|
||||||
} else {
|
|
||||||
if (double_precision)
|
|
||||||
xtype = NC_DOUBLE;
|
|
||||||
else
|
|
||||||
xtype = NC_FLOAT;
|
|
||||||
}
|
|
||||||
|
|
||||||
NCERRX( nc_inq_varid(ncid, perat[i].name, &perat[i].var),
|
NCERRX( nc_inq_varid(ncid, perat[i].name, &perat[i].var),
|
||||||
perat[i].name );
|
perat[i].name );
|
||||||
}
|
}
|
||||||
|
|||||||
@ -321,19 +321,6 @@ void DumpNetCDFMPIIO::openfile()
|
|||||||
|
|
||||||
// variables specified in the input file
|
// variables specified in the input file
|
||||||
for (int i = 0; i < n_perat; i++) {
|
for (int i = 0; i < n_perat; i++) {
|
||||||
nc_type xtype;
|
|
||||||
|
|
||||||
// Type mangling
|
|
||||||
if (vtype[perat[i].field[0]] == INT) {
|
|
||||||
xtype = NC_INT;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (double_precision)
|
|
||||||
xtype = NC_DOUBLE;
|
|
||||||
else
|
|
||||||
xtype = NC_FLOAT;
|
|
||||||
}
|
|
||||||
|
|
||||||
NCERRX( ncmpi_inq_varid(ncid, perat[i].name, &perat[i].var),
|
NCERRX( ncmpi_inq_varid(ncid, perat[i].name, &perat[i].var),
|
||||||
perat[i].name );
|
perat[i].name );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user